/* Horizon's shared presentation. Existing forms, ownership and data renderers stay authoritative. */
@media screen {
  body.horizon-v2 {
    --color-primary: #065bff;
    --color-primary-hover: #0347cf;
    --color-primary-soft: #edf5ff;
    --color-text: #0b1455;
    --color-text-muted: #6274a7;
    --color-border: #e0ecfb;
    --font: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
    --horizon-hero:
      linear-gradient(90deg, #e8f4ff30, #ffffff38 55%, #e9f3ff20),
      url("/assets/horizon-office-hero.png") center / cover no-repeat;
    background: linear-gradient(180deg, #f6fbff, #fff 650px);
    color: var(--color-text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
  }
  .horizon-v2 :is(h1, h2, h3, h4):not(.cv-pages *) {
    color: #090f50;
    font-weight: 600;
    letter-spacing: -0.035em;
  }
  .horizon-v2 :is(button, a) {
    -webkit-tap-highlight-color: transparent;
  }
  .horizon-v2 .app-view,
  .horizon-v2 .app-view.active,
  .horizon-v2 .app-view.active:not([data-view="overview"]) {
    animation: none;
    max-width: none;
    width: 100%;
  }
  .horizon-v2 .app-shell {
    min-height: 100dvh;
  }
  .horizon-v2 .main-content {
    width: 100%;
    max-width: 1600px;
    padding: 0 46px 28px;
    margin: 0 auto;
    scroll-margin-top: 90px;
  }
  .horizon-v2 .demo-banner {
    position: static;
    min-height: 18px;
    height: 18px;
    padding: 2px;
    font-size: 9px;
    background: #f9fbff;
    color: #71819b;
  }
  .horizon-v2 .demo-banner strong {
    font-size: 9px;
    padding: 0 6px;
  }
  .horizon-v2 .primary-button {
    background: linear-gradient(105deg, #267aff, #0053ff);
    border: 1px solid transparent;
    border-radius: 24px;
    min-height: 44px;
    color: white;
    box-shadow: none;
  }
  .horizon-v2 .primary-button:hover:not(:disabled) {
    background: #004ae0;
  }
  .horizon-v2 .secondary-button {
    min-height: 44px;
    border-radius: 22px;
    color: #065bff;
    border: 1px solid #dceaff;
    box-shadow: none;
  }
  .horizon-v2
    :is(.section-block, .card, .rail-panel, .job-offer-card, .training-card, .recommendation-list) {
    border: 1px solid #e0ecfb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px #2465ad06;
  }
  .horizon-v2
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
    border: 1px solid #dce9fa;
    background: #f5f9ff;
    border-radius: 10px;
    color: #17275d;
    font-size: 14px;
  }
  .horizon-v2 :is(input, select, textarea):focus {
    border-color: #6fa9ff;
    background: #fff;
  }
  .horizon-v2 :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid #437dfa;
    outline-offset: 3px;
  }
  .horizon-v2 .section-label {
    letter-spacing: 0.04em;
    color: #3375cf;
    font-size: 11px;
    font-weight: 600;
  }
  .horizon-v2 .section-header h2 {
    font-size: 21px;
    line-height: 1.3;
  }
  .horizon-v2 .section-header-note {
    font-size: 12px;
  }
  .horizon-v2 .workspace-topbar {
    display: none !important;
  }
  .horizon-handnote {
    font-family: "Noteworthy", "Bradley Hand", cursive;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: #2758b3;
    transform: rotate(-7deg);
  }
  .horizon-handnote::after {
    content: "";
    display: block;
    width: 66px;
    height: 2px;
    margin: 9px auto;
    background: #1664ff;
    border-radius: 50%;
    transform: rotate(-7deg);
  }
  .horizon-mascot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .horizon-v2 .product-v2-mascot > svg,
  .horizon-v2 .coach-widget-medallion > svg {
    display: none;
  }
  .horizon-v2 .product-v2-welcome {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 16px;
    min-height: 298px;
    margin: 0 -46px 28px;
    padding: 32px 46px 18px;
    border: 0;
    border-radius: 0;
    background: var(--horizon-hero);
    isolation: isolate;
  }
  .horizon-v2 .product-v2-mascot {
    position: absolute;
    left: max(65px, 7.7%);
    bottom: 0;
    width: 290px;
    height: 258px;
    margin: 0;
    z-index: -1;
    overflow: hidden;
  }
  .horizon-v2 .product-v2-mascot .horizon-mascot {
    transform-origin: 50% 95%;
  }
  .horizon-v2 .product-v2-welcome-copy {
    display: block;
    grid-column: 2;
    text-align: center;
    min-width: 0;
  }
  .horizon-v2 .product-v2-eyebrow {
    display: none;
  }
  .horizon-v2 .product-v2-welcome h1 {
    font-size: clamp(29px, 2.6vw, 40px);
    line-height: 1.15;
    margin: 0 0 14px;
    font-weight: 600;
    text-align: center;
  }
  .horizon-v2 .product-v2-welcome-copy > p:not(.product-v2-eyebrow) {
    color: #273d85;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 auto 20px;
  }
  .horizon-v2 .product-v2-command {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    margin: 0;
    padding: 6px 7px 6px 23px;
    border: 1px solid #edf4ff;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 7px 25px #2c77d317;
    color: #7586b4;
    font-size: 20px;
    font-weight: 400;
  }
  .horizon-v2 .product-v2-command > span:first-child {
    color: #065bff;
    font-size: 25px;
  }
  .horizon-v2 .product-v2-command > span:last-child {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-left: auto;
    background: linear-gradient(140deg, #288bff, #004dff);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
  }
  .horizon-v2 .product-v2-command:hover {
    border-color: #a8caff;
  }
  .horizon-v2 .product-v2-command #horizon-command-input {
    min-width: 0;
    flex: 1;
    height: 48px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #253e7b;
    font-size: 20px;
    font-weight: 400;
  }
  .horizon-v2 #horizon-command-input::placeholder {
    color: #7d8db5;
  }
  .horizon-v2 .product-v2-command > button {
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(140deg, #288bff, #004dff);
    color: #fff;
    font-size: 30px;
  }
  .horizon-v2 .product-v2-intentions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .horizon-v2 .product-v2-intentions button {
    min-height: 37px;
    padding: 8px 14px;
    border: 1px solid #e7f0ff;
    border-radius: 13px;
    background: #ffffffeb;
    color: #234288;
    font-size: 12px;
  }
  .hero-note-left {
    position: absolute;
    top: 42px;
    left: 25px;
    width: 120px;
    margin: 0;
    text-align: center;
    font-size: 16px;
  }
  .hero-note-right {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    width: 155px;
    text-align: center;
    margin: 0;
  }
  .horizon-v2 .product-v2-modules {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
  }
  .horizon-v2 .product-v2-modules > button {
    min-height: 103px;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e0ecfb;
    border-radius: 14px;
    background: white;
    box-shadow: 0 5px 15px #2165bf06;
    align-items: center;
    flex-wrap: nowrap;
  }
  .horizon-v2 .product-v2-modules > button:hover {
    transform: translateY(-2px);
    border-color: #a7cbff;
    box-shadow: 0 7px 18px #3874b510;
  }
  .horizon-v2 .product-v2-modules [data-view-target="studio-cv"] {
    order: 2;
  }
  .horizon-v2 .product-v2-modules [data-view-target="journey"] {
    order: 3;
  }
  .horizon-v2 .product-v2-modules [data-view-target="results"] {
    order: 4;
  }
  .horizon-v2 .product-v2-modules strong {
    color: #09124e;
    font-size: 15px;
    font-weight: 600;
  }
  .horizon-v2 .product-v2-modules small {
    margin-top: 5px;
    color: #687bac;
    font-size: 12px;
    line-height: 1.5;
  }
  .horizon-v2 .product-v2-module-icon {
    flex: none;
    width: 57px;
    height: 64px;
    border-radius: 20px;
    font-size: 30px;
    background: #eaf5ff;
    color: #0874ff;
  }
  .horizon-v2 .product-v2-modules [data-view-target="trainings"] .product-v2-module-icon {
    color: #f66b10;
    background: #fff1e7;
  }
  .horizon-v2 .product-v2-modules [data-view-target="journey"] .product-v2-module-icon {
    color: #009b85;
    background: #e4faf3;
  }
  .horizon-v2 .product-v2-modules [data-view-target="studio-cv"] .product-v2-module-icon {
    color: #7544f4;
    background: #f0ebff;
  }
  .horizon-v2 .product-v2-modules > button > span:last-child {
    display: grid;
    place-items: center;
    flex: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #edf5ff;
    color: #065bff;
    margin-left: auto;
    font-size: 18px;
  }
  .horizon-start {
    padding: 20px 18px 18px;
    border-radius: 15px;
    background: linear-gradient(110deg, #eff6ff, #f7fbff);
    margin-bottom: 24px;
  }
  .horizon-start > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px 16px;
    gap: 20px;
  }
  .horizon-start h2 {
    font-size: 24px;
    margin: 0 0 3px;
  }
  .horizon-start header p {
    color: #647bac;
    margin: 0;
    font-size: 14px;
  }
  .horizon-start-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .horizon-start-steps button {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    border: 1px solid #e7f0fb;
    background: #fff;
    padding: 20px 16px;
    border-radius: 14px;
    color: #065bff;
  }
  .horizon-start-steps .start-number {
    align-self: start;
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #eaf4ff;
    border-radius: 50%;
    font-size: 18px;
  }
  .horizon-start-steps .icon {
    flex: none;
    width: 34px;
    height: 34px;
  }
  .horizon-start-steps strong {
    display: block;
    font-size: 15px;
    color: #0b1455;
  }
  .horizon-start-steps small {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: #687bac;
    margin-top: 5px;
  }
  .horizon-start-steps button > span:last-child {
    margin-left: auto;
    font-size: 28px;
  }
  .horizon-start-steps button:nth-child(2) {
    color: #7143df;
  }
  .horizon-start-steps button:nth-child(3) {
    color: #009781;
  }
  .horizon-v2 .overview-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
  }
  .horizon-v2 .overview-main-flow {
    gap: 18px;
  }
  .horizon-v2 .recommended-actions {
    order: -1;
  }
  .horizon-v2 .horizon-start strong,
  .horizon-v2 .dashboard-actions strong {
    font-weight: 600;
  }
  .horizon-v2 :is(#onboarding-card, #assessment-overview).horizon-hero {
    padding: 18px 22px;
    min-height: 0;
    border: 1px solid #e0ecfb;
    border-radius: 14px;
    background: #fff;
  }
  .horizon-v2 #onboarding-card .horizon-hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 20px;
  }
  .horizon-v2 #onboarding-card .component-kicker {
    display: none;
  }
  .horizon-v2 #onboarding-card h2 {
    margin: 0;
    font-size: 21px;
  }
  .horizon-v2 #onboarding-card .hero-description {
    grid-column: 1;
    margin: 0;
    font-size: 13px;
  }
  .horizon-v2 #onboarding-card .hero-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  .horizon-v2 #assessment-overview .hero-identity h1 {
    font-size: 22px;
  }
  .horizon-v2 .home-dashboard {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e0ecfb;
    background: #fff;
  }
  .horizon-v2 .progress-strip-heading h2 {
    font-size: 20px;
    text-transform: none;
    letter-spacing: -0.03em;
  }
  .horizon-v2 .progress-strip {
    padding-top: 16px;
    gap: 0;
  }
  .horizon-v2 .progress-step {
    padding: 8px 12px;
  }
  .horizon-v2 .dashboard-tile-label {
    font-size: 12px;
    color: #19285d;
  }
  .horizon-v2 .dashboard-tile-value {
    font-size: 16px;
  }
  .horizon-v2 .dashboard-tile-note {
    font-size: 11px;
    line-height: 1.5;
  }
  .horizon-v2 .recommended-actions {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .horizon-v2 .home-section-header h2 {
    font-size: 21px;
    text-transform: none;
    letter-spacing: -0.03em;
    color: #0b1455;
  }
  .horizon-v2 .home-section-header p {
    font-size: 12px;
  }
  .horizon-v2 .dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .horizon-v2 .dashboard-actions button {
    min-height: 100px;
    padding: 15px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e0ecfb;
  }
  .horizon-v2 .dashboard-actions strong {
    font-size: 14px;
  }
  .horizon-v2 .dashboard-actions .dashboard-action-description {
    font-size: 12px;
  }
  .horizon-v2 .overview-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .horizon-v2 .horizon-coach-panel {
    border: 1px solid #dfeaff;
    border-radius: 17px;
    background: linear-gradient(140deg, #eff8ff, #edf0ff);
    padding: 20px;
    color: #173665;
    box-shadow: none;
  }
  .horizon-v2 .coach-widget-main {
    padding: 0;
    color: inherit;
  }
  .horizon-v2 .coach-widget-intro {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .horizon-v2 .coach-widget-medallion {
    width: 155px;
    height: 132px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .horizon-v2 .coach-widget-title {
    color: #0b1455;
    font-size: 22px;
  }
  .horizon-v2 .coach-eyebrow {
    display: none;
  }
  .horizon-v2 .coach-widget-description {
    text-align: center;
    color: #5d73a1;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 15px;
  }
  .horizon-v2 .coach-primary-action {
    background: #065bff;
    color: white;
    border: 0;
    border-radius: 24px;
    min-height: 44px;
  }
  .horizon-v2 .coach-widget-trust {
    font-size: 10px;
    color: #647ba3;
    border-color: #dae5f7;
  }
  .horizon-v2 .watch-panel {
    padding: 17px;
  }
  .horizon-v2 .trust-panel {
    padding: 15px;
    font-size: 11px;
  }
  .horizon-v2 .recommendation-list {
    padding: 15px;
  }
  .horizon-v2 .recommendation-list h2 {
    font-size: 15px;
  }
  .horizon-v2 .recommendation-state {
    font-size: 12px;
  }

  /* Each page keeps its own real controls inside the same visual hero. */
  .horizon-v2 .app-view > .core-page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    min-height: 225px;
    padding: 30px 230px 26px 280px;
    margin: 0 -46px 20px;
    border: 0;
    border-radius: 0;
    background: var(--horizon-hero);
    text-align: center;
  }
  .horizon-v2 .app-view > .core-page-header > .horizon-robot-page {
    position: absolute;
    z-index: -1;
    left: 65px;
    bottom: 0;
    width: 235px;
    height: 205px;
  }
  .horizon-v2 .core-page-header .core-page-mark,
  .horizon-v2 .core-page-header .eyebrow {
    display: none;
  }
  .horizon-v2 .core-page-heading {
    display: block;
  }
  .horizon-v2 .core-page-header h1 {
    font-size: clamp(30px, 3vw, 43px);
    margin: 0 0 10px;
    line-height: 1.15;
  }
  .horizon-v2 .core-page-header .core-page-heading p:last-child {
    font-size: 17px;
    line-height: 1.5;
    color: #40569a;
    max-width: 720px;
  }
  .horizon-v2 .core-page-header > .secondary-button {
    position: absolute;
    right: 35px;
    bottom: 25px;
    max-width: 210px;
    font-size: 12px;
  }
  .horizon-v2 .core-page-header > .job-source-assurance,
  .horizon-v2 .core-page-header > .training-freshness {
    position: absolute;
    top: 30px;
    right: 28px;
    max-width: 185px;
    text-align: left;
    font-size: 10px;
    padding: 12px;
    border: 1px solid #ffffffaa;
    border-radius: 15px;
    background: #ffffff80;
  }
  .horizon-v2 :is(.job-source-assurance, .training-freshness) p {
    font-size: 10px;
  }
  .horizon-v2 :is(.job-source-assurance, .training-freshness) strong {
    font-size: 11px;
  }
  .horizon-v2 .page-coach-action {
    position: absolute;
    right: 30px;
    bottom: 24px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 24px;
    border: 1px solid #b8d4ff;
    background: #fff;
    color: #065bff;
    font-size: 12px;
  }
  .horizon-v2 :is(.job-search-panel, .training-search-panel) {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 22px;
  }
  .horizon-v2 :is(.job-search-intro, .training-search-intro) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .horizon-v2 :is(.job-search-form, .training-search-form) {
    display: block;
  }
  .horizon-v2 :is(.job-query-row, .training-search-primary) {
    position: relative;
    max-width: 900px;
    margin: -38px auto 20px;
    padding: 10px;
    border-radius: 36px;
    border: 1px solid #ddebff;
    background: #fff;
    box-shadow: 0 6px 20px #146bc90d;
    z-index: 1;
  }
  .horizon-v2 .job-query-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px auto;
    align-items: end;
    gap: 10px;
  }
  .horizon-v2 .job-query-row label > span {
    font-size: 10px;
    padding-left: 14px;
  }
  .horizon-v2 .job-query-row input {
    height: 37px;
    border: 0;
    border-radius: 20px;
    background: white;
    font-size: 16px;
    padding: 8px 14px;
  }
  .horizon-v2 .job-query-row #job-department {
    border-left: 1px solid #e5edf8;
    border-radius: 0;
  }
  .horizon-v2 .job-query-row .primary-button {
    height: 50px;
    min-width: 115px;
    margin: 0;
  }
  .horizon-v2 .job-quick-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 14px;
  }
  .horizon-v2 .job-quick-filters label {
    display: grid;
    gap: 5px;
    border: 1px solid #e0ecfb;
    border-radius: 14px;
    background: #fff;
    padding: 12px 16px;
  }
  .horizon-v2 .job-quick-filters label > span {
    color: #0b1455;
    font-size: 13px;
    font-weight: 700;
  }
  .horizon-v2 .job-quick-filters :is(select, input) {
    min-height: 34px;
    padding: 5px 0;
    border: 0;
    background: #fff;
    color: #687eaf;
    font-size: 13px;
  }
  .horizon-v2 .job-skill-suggestions {
    margin: 12px 0;
    padding: 12px 0;
    border: 0;
  }
  .horizon-v2 .job-skill-suggestions legend {
    color: #677dab;
    font-size: 11px;
  }
  .horizon-v2 .job-skill-suggestions button {
    border: 1px solid #dfeafb;
    background: #f5f9ff;
    color: #3665a8;
    font-size: 11px;
    border-radius: 16px;
    padding: 6px 12px;
    min-height: 32px;
  }
  .horizon-v2 .advanced-filters {
    border-radius: 13px;
    border: 1px solid #e0ecfb;
    background: #fff;
    margin: 12px 0;
  }
  .horizon-v2 .advanced-filters summary {
    padding: 13px 17px;
    color: #075bdf;
    font-size: 13px;
  }
  .horizon-v2 :is(.job-filter-grid, .training-filter-grid) {
    gap: 16px;
    padding: 12px 18px;
  }
  .horizon-v2 .opportunity-tabs {
    display: flex;
    gap: 12px;
    margin: 18px 0;
  }
  .horizon-v2 .opportunity-tab {
    min-height: 60px;
    padding: 10px 18px;
    border-radius: 13px;
    border: 1px solid #e0ecfb;
    background: #fff;
    flex: 1;
  }
  .horizon-v2 .opportunity-tab.active {
    border-color: #b4d2ff;
    background: #f0f7ff;
  }
  .horizon-v2 .job-offer-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .horizon-v2 .job-offer-card {
    padding: 21px;
    border: 1px solid #e0ecfb;
    border-radius: 15px;
    box-shadow: 0 5px 20px #2765af05;
    background: white;
  }
  .horizon-v2 .job-offer-title {
    font-size: 18px;
    line-height: 1.35;
  }
  .horizon-v2 .job-offer-company {
    font-size: 13px;
    color: #6882b5;
  }
  .horizon-v2 .job-offer-card :is(p, li) {
    font-size: 13px;
    line-height: 1.6;
  }
  .horizon-v2 .job-offer-card .secondary-button {
    width: 100%;
    margin-top: auto;
  }
  .horizon-v2 .job-results-heading h2 {
    font-size: 24px;
  }
  .horizon-v2 :is(.job-search-state, .training-state) {
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
    padding: 16px 20px;
  }
  .horizon-v2 .training-search-primary > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .horizon-v2 .training-query-row {
    display: flex;
    gap: 10px;
  }
  .horizon-v2 .training-query-row input {
    flex: 1;
    min-width: 0;
    min-height: 51px;
    border: 0;
    background: #fff;
    padding: 10px 18px;
    border-radius: 28px;
    font-size: 17px;
  }
  .horizon-v2 .training-query-row button {
    min-width: 120px;
    border-radius: 28px;
  }
  .horizon-v2 .training-results-header h2 {
    font-size: 24px;
  }
  .horizon-v2 .training-results-header p {
    font-size: 13px;
  }
  .horizon-v2 .training-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .horizon-v2 .training-card {
    padding: 22px;
    border-radius: 15px;
    border-color: #e0ecfb;
    background: linear-gradient(180deg, #eef7ff, #fff 100px);
  }
  .horizon-v2 .training-card::before {
    height: 3px;
    background: linear-gradient(90deg, #c7e3ff, #d1f5eb);
  }
  .horizon-v2 .training-card-title {
    font-size: 18px;
    line-height: 1.35;
  }
  .horizon-v2 .training-card-provider {
    font-size: 13px;
    line-height: 1.5;
  }
  .horizon-v2 .training-card-facts {
    gap: 12px;
    margin-block: 18px;
  }
  .horizon-v2 .training-card-facts li {
    font-size: 12px;
    line-height: 1.5;
  }
  .horizon-v2 .training-card-updated {
    font-size: 11px;
    line-height: 1.5;
  }
  .horizon-v2 .training-card-open {
    min-height: 80px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: #0b1455;
    padding: 0;
    text-align: left;
  }
  .horizon-v2 .training-card-action {
    width: 100%;
    margin-top: auto;
    min-height: 44px;
    border-radius: 24px;
  }
  .horizon-v2 .job-offer-requirements > summary {
    font-size: 11px;
    cursor: pointer;
    padding: 8px 0;
    color: #526fa2;
  }
  .horizon-v2 .job-offer-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .horizon-v2 :is(.job-source-pill, .job-offer-date, .job-offer-status) {
    font-size: 10px;
  }
  .horizon-v2 .job-offer-fact {
    font-size: 12px;
  }
  .horizon-v2 .job-offer-footer {
    margin-top: auto;
  }
  .horizon-v2 .job-offer-source-note {
    font-size: 10px;
    line-height: 1.5;
  }
  .horizon-v2 .job-offer-actions {
    gap: 8px;
  }
  .horizon-v2 .job-offer-actions > :is(button, a) {
    font-size: 12px;
  }
  .horizon-v2 .job-skill-suggestions {
    padding-inline: 18px;
  }
  .horizon-v2 .job-search-panel .advanced-filters summary {
    min-height: 44px;
  }
  .horizon-v2 .job-offer-list,
  .horizon-v2 .training-list {
    align-items: stretch;
  }
  .horizon-v2 .job-offer-card,
  .horizon-v2 .training-card {
    display: flex;
    flex-direction: column;
  }
  .horizon-v2 .job-search-panel .job-quick-filters :is(input, select),
  .horizon-v2 .job-search-panel .job-query-row input,
  .horizon-v2 .training-search-panel .training-query-row input {
    background: white;
    border-color: transparent;
    box-shadow: none;
  }
  .horizon-training-domains {
    margin: 26px 0;
  }
  .horizon-training-domains h2 {
    font-size: 23px;
    margin: 0 0 5px;
  }
  .horizon-training-domains > p {
    margin: 0 0 16px;
    color: #647bab;
    font-size: 14px;
  }
  .horizon-domain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .horizon-domain-grid button {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px;
    border: 1px solid #e0ecfb;
    background: white;
    border-radius: 15px;
    color: #065bff;
  }
  .horizon-domain-grid .icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 14px;
    background: #eaf5ff;
  }
  .horizon-domain-grid strong {
    display: block;
    color: #0b1455;
    font-size: 18px;
    margin-bottom: 5px;
  }
  .horizon-domain-grid small {
    color: #677eae;
    font-size: 12px;
  }
  .horizon-domain-grid button:nth-child(2) .icon {
    background: #fff0e6;
    color: #f66b10;
  }
  .horizon-domain-grid button:nth-child(3) .icon {
    background: #e4faf3;
    color: #009b85;
  }
  .horizon-domain-grid button > span:last-child {
    margin-left: auto;
    font-size: 26px;
  }
  .horizon-v2 :is(.job-method-note, .training-method-note) {
    margin-top: 20px;
    padding: 15px;
    font-size: 11px;
    background: #f5f9ff;
    border-radius: 12px;
    color: #627aa5;
  }
  .horizon-v2 .journey-status-strip {
    border: 1px solid #e0ecfb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
    background: #fff;
  }
  .journey-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
  }
  .journey-action-bar button {
    font-size: 13px;
  }
  .horizon-v2 .journey-status-strip strong {
    font-size: 14px;
  }
  .horizon-v2 .journey-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    grid-template-areas: "main tools";
    gap: 20px;
  }
  .horizon-v2 .journey-main-column {
    grid-area: main;
    gap: 20px;
  }
  .horizon-v2 .journey-tools {
    grid-area: tools;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: static;
  }
  .horizon-v2 .journey-tools > *,
  .horizon-v2 .journey-main-column > .section-block {
    padding: 22px;
  }
  .horizon-v2 .journey-coach-card {
    background: #edf6ff;
    color: #233c78;
    border: 1px solid #dbeaff;
    border-radius: 15px;
  }
  .horizon-v2 .journey-coach-card::before {
    content: "";
    display: block;
    height: 110px;
    background: url("/assets/horizon-coach-3d.png") center / contain no-repeat;
    margin-bottom: 15px;
  }
  .horizon-v2 .journey-coach-card h2 {
    font-size: 21px;
    color: #0b1455;
  }
  .horizon-v2 .journey-coach-card p {
    font-size: 13px;
    color: #647aaa;
  }
  .horizon-v2 .core-journey-view :is(label, .question-help, .profile-item p, .experience-card p) {
    font-size: 13px;
    line-height: 1.6;
  }
  .horizon-v2 .core-journey-view :is(input, select, textarea) {
    min-height: 42px;
    font-size: 14px;
  }
  .horizon-v2 .experience-card {
    border-color: #e0ecfb;
    border-radius: 13px;
    padding: 20px;
  }
  .horizon-v2 .results-overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 18px;
  }
  .horizon-v2 .results-summary-card {
    padding: 26px;
    background: linear-gradient(120deg, #eef8ff, #fff);
  }
  .horizon-v2 #report-summary {
    font-size: 16px;
    line-height: 1.75;
    color: #435a93;
  }
  .horizon-v2 :is(.results-evidence-grid, .results-opportunity-grid, .results-detail-grid) {
    gap: 18px;
    margin-top: 18px;
  }
  .horizon-v2 .results-evidence-grid > section,
  .horizon-v2 .results-opportunity-grid > section {
    padding: 24px;
  }
  .horizon-v2 .evidence-list {
    font-size: 14px;
    line-height: 1.7;
  }
  .horizon-v2 .results-next-card {
    border: 1px solid #dce9ff;
    border-radius: 15px;
    padding: 25px;
    background: #eff5ff;
    color: #456196;
  }
  .horizon-v2 .results-next-card h2 {
    color: #0b1455;
    font-size: 23px;
  }
  .horizon-v2 .result-notice {
    padding: 24px;
    font-size: 15px;
    background: #f0f7ff;
    border-radius: 14px;
    color: #3d5c96;
  }
  .horizon-v2 .results-section-nav {
    border-radius: 24px;
  }
  .horizon-footer {
    max-width: 1508px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    color: #6b81b0;
    font-size: 12px;
  }
  .horizon-footer > span:last-child {
    color: #345eb3;
    letter-spacing: 0.12em;
  }
  .horizon-footer small {
    letter-spacing: 0;
    margin-left: 10px;
  }

  /* Keep Coach states and accessible status text; only change the mascot surface. */
  .horizon-v2 .coach-orb {
    background: url("/assets/horizon-coach-3d.png") center / contain no-repeat;
    overflow: visible;
  }
  .horizon-v2 .coach-orb::before,
  .horizon-v2 .coach-orb::after,
  .horizon-v2 .coach-orb > * {
    visibility: hidden;
  }
  .horizon-v2 .coach-orb {
    animation: horizon-greet 6s ease-in-out infinite;
  }
  .horizon-v2[data-coach-state="thinking"] .coach-orb,
  .horizon-v2[data-coach-state="action"] .coach-orb {
    animation: horizon-thinking 1.5s ease-in-out infinite;
  }
  .horizon-v2[data-coach-state="error"] .coach-orb {
    background: url("/assets/horizon-coach-3d.png") center / contain no-repeat;
    filter: saturate(0.3);
    animation: none;
  }
  .horizon-v2[data-coach-state="done"] .coach-orb {
    background: url("/assets/horizon-coach-3d.png") center / contain no-repeat;
  }
  .horizon-v2 .assistant-panel {
    border-radius: 24px;
    border-color: #d8e7fb;
  }
  .horizon-v2 .assistant-header {
    background: linear-gradient(100deg, #f0f8ff, #fff);
  }
  .horizon-v2 .assistant-message {
    border-radius: 16px;
  }
  .horizon-v2 .assistant-panel .assistant-message,
  .horizon-v2 .assistant-panel .assistant-message p {
    font-size: 14px;
    line-height: 1.65;
  }
  .horizon-v2 .assistant-panel .assistant-header p {
    font-size: 12px;
  }
  .horizon-v2 .core-questionnaire-panel .question-content {
    border-radius: 20px;
    border-color: #dce9fb;
  }
  .horizon-v2 .core-questionnaire-panel .question-content h2 {
    font-size: 27px;
  }
  .horizon-v2 .landing {
    max-width: 1600px;
    background: #fff;
    padding-top: 0;
  }
  .horizon-v2 .landing-header {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .horizon-v2 .landing-brand .brand-logo {
    width: 200px;
  }
  .horizon-v2 .landing-hero {
    background: var(--horizon-hero);
    min-height: 480px;
    border: 0;
    border-radius: 0;
    margin-top: 0;
  }
  .horizon-v2 .landing-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
  }
  .horizon-v2 .landing-lede {
    font-size: 16px;
    max-width: 640px;
  }
  .horizon-v2 .landing-preview-card,
  .horizon-v2 .landing-preview figcaption {
    display: none;
  }
  .horizon-v2 .landing-mascot {
    max-height: 355px;
  }
  .horizon-v2 .landing-highlights {
    font-size: 12px;
  }
  .horizon-v2 .landing-section h2 {
    font-size: 28px;
  }
  .horizon-v2 .landing-steps {
    gap: 16px;
  }
  .horizon-v2 .landing-steps > li {
    border: 1px solid #e0ecfb;
    border-radius: 15px;
    background: #f8fbff;
    padding: 20px;
    font-size: 13px;
  }

  @media (min-width: 840px) {
    .horizon-v2 .sidebar {
      top: 0;
      min-height: 66px;
      padding: 7px max(24px, calc((100vw - 1508px) / 2));
      grid-template-columns: 208px minmax(0, 1fr) 190px;
      gap: 20px;
      background: #fffffffa;
      border-bottom: 1px solid #eef4fc;
    }
    .horizon-v2 .sidebar .brand-logo {
      width: 202px;
      height: 53px;
    }
    .horizon-v2 .brand-logo-name {
      fill: #111b65;
    }
    .horizon-v2 .brand-logo-sun,
    .horizon-v2 .brand-logo-line {
      stroke: #276dff;
    }
    .horizon-v2 .main-nav {
      display: flex;
      justify-content: center;
      gap: 7px;
      overflow: visible;
    }
    .horizon-v2 .nav-item {
      min-height: 40px;
      padding: 9px 12px;
      gap: 10px;
      font-size: 12px;
      color: #162465;
      font-weight: 500;
    }
    .horizon-v2 .nav-icon {
      display: block;
      width: 22px;
      height: 22px;
      font-size: 22px;
    }
    .horizon-v2 .nav-item[data-view-target="overview"] {
      order: 0;
    }
    .horizon-v2 .nav-item[data-view-target="journey"] {
      order: 1;
    }
    .horizon-v2 .nav-item[data-view-target="jobs"] {
      order: 2;
    }
    .horizon-v2 .nav-item[data-view-target="trainings"] {
      order: 3;
    }
    .horizon-v2 .nav-item[data-view-target="studio-cv"] {
      order: 4;
    }
    .horizon-v2 .nav-item[data-view-target="results"] {
      order: 5;
    }
    .horizon-v2 .main-nav > .nav-group-coach {
      display: none;
    }
    .horizon-v2 .main-nav [data-open-questionnaire] {
      display: none;
    }
    .horizon-v2 .nav-item.active {
      background: #e7f1ff;
      color: #065bff;
      font-weight: 700;
      border-radius: 12px;
    }
    .horizon-v2 .profile-card {
      background: transparent;
      border: 0;
      padding: 0;
      box-shadow: none;
      gap: 10px;
    }
    .horizon-v2 .profile-identity strong {
      font-size: 12px;
      font-weight: 500;
      color: #142965;
    }
    .horizon-v2 .profile-identity small {
      display: none;
    }
    .horizon-v2 .avatar {
      background: #eee9ff;
      color: #7044df;
      box-shadow: none;
      width: 36px;
      height: 36px;
    }
    .horizon-v2 .sidebar-support {
      top: auto;
      right: 20px;
      bottom: -28px;
      z-index: 3;
    }
    .horizon-v2 .sidebar-support summary {
      background: #ffffffc9;
      font-size: 10px;
      padding: 4px 7px;
    }
  }
  @media (min-width: 840px) and (max-width: 1270px) {
    .horizon-v2 .sidebar {
      grid-template-columns: 150px minmax(0, 1fr) 105px;
      gap: 10px;
      padding-inline: 20px;
    }
    .horizon-v2 .sidebar .profile-identity {
      display: none;
    }
    .horizon-v2 .sidebar .brand-logo {
      width: 148px;
    }
    .horizon-v2 .main-nav {
      gap: 0;
    }
    .horizon-v2 .nav-item {
      padding-inline: 8px;
      gap: 6px;
      font-size: 11px;
    }
    .horizon-v2 .nav-icon {
      width: 19px;
      height: 19px;
      font-size: 19px;
    }
    .horizon-v2 .account-card .avatar {
      display: none;
    }
  }
  @media (max-width: 1200px) {
    .horizon-v2 .main-content {
      padding-inline: 28px;
    }
    .horizon-v2 .product-v2-welcome {
      grid-template-columns: 200px minmax(0, 1fr) 80px;
      margin-inline: -28px;
      padding-inline: 28px;
    }
    .horizon-v2 .product-v2-mascot {
      left: 12px;
      width: 250px;
      height: 230px;
    }
    .horizon-v2 .hero-note-left {
      display: none;
    }
    .horizon-v2 .hero-note-right {
      width: 90px;
      font-size: 13px;
    }
    .horizon-v2 .product-v2-welcome h1 {
      font-size: 32px;
    }
    .horizon-v2 .product-v2-welcome-copy > p:not(.product-v2-eyebrow) {
      font-size: 15px;
    }
    .horizon-v2 .product-v2-modules > button {
      padding: 14px 10px;
      gap: 10px;
    }
    .horizon-v2 .product-v2-module-icon {
      width: 42px;
      height: 52px;
      font-size: 25px;
    }
    .horizon-v2 .product-v2-modules strong {
      font-size: 13px;
    }
    .horizon-v2 .product-v2-modules small {
      font-size: 11px;
    }
    .horizon-v2 .product-v2-modules > button > span:last-child {
      display: none;
    }
    .horizon-v2 .app-view > .core-page-header {
      margin-inline: -28px;
      padding-left: 220px;
      padding-right: 195px;
    }
    .horizon-v2 .app-view > .core-page-header > .horizon-robot-page {
      width: 205px;
      left: 15px;
    }
    .horizon-v2 .core-page-header > .job-source-assurance,
    .horizon-v2 .core-page-header > .training-freshness {
      right: 15px;
      max-width: 165px;
    }
    .horizon-start-steps button {
      gap: 10px;
      padding: 16px 12px;
    }
    .horizon-start-steps .icon {
      display: none;
    }
  }
  @media (min-width: 840px) and (max-width: 1024px) {
    .horizon-v2 .nav-icon {
      display: none;
    }
    .horizon-v2 .product-v2-modules {
      gap: 9px;
    }
    .horizon-v2 .product-v2-modules > button {
      display: grid;
      align-content: start;
      min-height: 146px;
    }
    .horizon-v2 .overview-home-grid {
      grid-template-columns: minmax(0, 1fr) 245px;
    }
    .horizon-v2 .progress-strip {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .horizon-v2 .job-offer-list,
    .horizon-v2 .training-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .horizon-v2 .journey-workspace {
      grid-template-columns: minmax(0, 1fr) 270px;
    }
  }
  @media (max-width: 839px) {
    .horizon-v2 .app-shell {
      display: block;
      padding: 0;
    }
    .horizon-v2 .demo-banner {
      display: none;
    }
    .horizon-v2 .main-content {
      padding: 0 18px 24px;
    }
    .horizon-v2 .mobile-nav-toggle {
      position: relative;
      left: auto;
      top: auto;
      display: flex;
      width: 100%;
      height: 62px;
      padding: 12px 20px;
      background: #fff;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      color: #13245e;
      font-size: 19px;
      gap: 14px;
    }
    .horizon-v2 .mobile-nav-toggle::after {
      content: "Votre avenir en plus clair";
      margin-left: auto;
      color: #7185b0;
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.02em;
    }
    .horizon-v2 .sidebar {
      top: 0;
      height: 100dvh;
      z-index: 70;
    }
    .horizon-v2 .sidebar-support {
      position: static;
      margin-top: 10px;
    }
    .horizon-v2 .main-nav .nav-item {
      min-height: 44px;
      font-size: 14px;
    }
    .horizon-v2 .product-v2-welcome {
      display: grid;
      grid-template-columns: 1fr;
      min-height: 0;
      margin: 0 -18px 18px;
      padding: 25px 18px 20px;
      gap: 0;
    }
    .horizon-v2 .product-v2-welcome-copy {
      display: block;
      grid-column: 1;
    }
    .horizon-v2 .product-v2-welcome h1 {
      padding: 0 15px;
      font-size: 29px;
      line-height: 1.2;
      margin: 0 0 12px;
    }
    .horizon-v2 .product-v2-welcome-copy > p:not(.product-v2-eyebrow) {
      font-size: 14px;
      margin-bottom: 140px;
    }
    .horizon-v2 .product-v2-welcome-copy br {
      display: none;
    }
    .horizon-v2 .product-v2-mascot {
      width: 160px;
      height: 145px;
      top: 146px;
      bottom: auto;
      left: calc(50% - 80px);
    }
    .horizon-v2 .hero-note-left,
    .horizon-v2 .hero-note-right {
      display: none;
    }
    .horizon-v2 .product-v2-command {
      min-height: 58px;
      font-size: 16px;
      padding-left: 16px;
      gap: 10px;
    }
    .horizon-v2 .product-v2-command > span:last-child {
      width: 44px;
      height: 44px;
      font-size: 25px;
    }
    .horizon-v2 .product-v2-intentions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 12px;
    }
    .horizon-v2 .product-v2-intentions button {
      min-height: 42px;
      padding: 8px 5px;
      font-size: 11px;
    }
    .horizon-v2 .product-v2-modules {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }
    .horizon-v2 .product-v2-modules > button {
      min-height: 103px;
      padding: 12px;
      display: flex;
    }
    .horizon-v2 .product-v2-modules > button:last-child {
      grid-column: 1 / -1;
      min-height: 74px;
    }
    .horizon-v2 .product-v2-modules strong {
      font-size: 13px;
    }
    .horizon-v2 .product-v2-modules small {
      font-size: 11px;
    }
    .horizon-v2 .product-v2-module-icon {
      width: 37px;
      height: 46px;
      font-size: 24px;
      border-radius: 14px;
    }
    .horizon-start {
      padding: 18px 12px 12px;
    }
    .horizon-start > header {
      margin: 0 5px 14px;
    }
    .horizon-start h2 {
      font-size: 22px;
    }
    .horizon-start header p {
      font-size: 12px;
    }
    .horizon-start .horizon-handnote {
      display: none;
    }
    .horizon-start-steps {
      grid-template-columns: 1fr;
      gap: 9px;
    }
    .horizon-start-steps button {
      min-height: 94px;
      padding: 16px 12px;
      gap: 13px;
    }
    .horizon-start-steps strong {
      font-size: 14px;
    }
    .horizon-v2 .overview-home-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .horizon-v2 .overview-rail {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
    .horizon-v2 .coach-widget-intro {
      flex-direction: row;
      text-align: left;
    }
    .horizon-v2 .coach-widget-medallion {
      width: 100px;
      height: 95px;
    }
    .horizon-v2 .coach-widget-title {
      font-size: 23px;
    }
    .horizon-v2 #onboarding-card .horizon-hero-content {
      display: block;
    }
    .horizon-v2 #onboarding-card .hero-actions {
      margin-top: 15px;
    }
    .horizon-v2 .progress-strip {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .horizon-v2 .progress-step {
      padding: 12px 6px;
    }
    .horizon-v2 .dashboard-actions {
      grid-template-columns: 1fr;
    }
    .horizon-v2 .home-recommendations {
      grid-template-columns: 1fr;
    }
    .horizon-v2 .app-view > .core-page-header {
      display: block;
      min-height: 247px;
      margin: 0 -18px 20px;
      padding: 24px 20px 110px;
      text-align: center;
    }
    .horizon-v2 .app-view > .core-page-header > .horizon-robot-page {
      width: 110px;
      height: 108px;
      bottom: 4px;
      left: 20px;
    }
    .horizon-v2 .core-page-header h1 {
      font-size: 30px;
    }
    .horizon-v2 .core-page-header .core-page-heading p:last-child {
      font-size: 14px;
      line-height: 1.5;
    }
    .horizon-v2 .core-page-header > .secondary-button {
      bottom: 25px;
      right: 20px;
      max-width: 215px;
    }
    .horizon-v2 .page-coach-action {
      bottom: 30px;
      right: 20px;
    }
    .horizon-v2 .core-page-header > .job-source-assurance,
    .horizon-v2 .core-page-header > .training-freshness {
      display: none;
    }
    .horizon-v2 .job-query-row {
      margin: -24px 0 16px;
      grid-template-columns: minmax(0, 1fr) 78px;
      padding: 14px;
      border-radius: 19px;
      gap: 10px;
    }
    .horizon-v2 .job-query-row label > span {
      padding-left: 0;
    }
    .horizon-v2 .job-query-row input {
      padding: 8px 0;
      font-size: 16px;
    }
    .horizon-v2 .job-query-row .primary-button {
      grid-column: 1 / -1;
      height: 44px;
      width: 100%;
    }
    .horizon-v2 .job-quick-filters {
      grid-template-columns: 1fr;
      gap: 9px;
    }
    .horizon-v2 .job-quick-filters label {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      align-items: center;
      padding: 10px 14px;
    }
    .horizon-v2 .job-quick-filters select {
      min-width: 0;
      font-size: 16px;
    }
    .horizon-v2 .opportunity-tab {
      padding: 10px;
    }
    .horizon-v2 .opportunity-tab small {
      display: none;
    }
    .horizon-v2 .opportunity-tab strong {
      font-size: 12px;
    }
    .horizon-v2 .job-offer-list,
    .horizon-v2 .training-list {
      grid-template-columns: minmax(0, 1fr);
    }
    .horizon-v2 .job-offer-card,
    .horizon-v2 .training-card {
      padding: 20px;
    }
    .horizon-v2 .training-search-primary {
      margin: -22px 0 15px;
      border-radius: 20px;
    }
    .horizon-v2 .training-query-row {
      flex-direction: column;
      gap: 4px;
    }
    .horizon-v2 .training-query-row input {
      font-size: 16px;
      padding: 8px;
    }
    .horizon-v2 .training-query-row button {
      min-height: 44px;
    }
    .horizon-domain-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .horizon-domain-grid button {
      padding: 15px;
    }
    .horizon-domain-grid strong {
      font-size: 16px;
    }
    .horizon-v2 :is(.job-filter-grid, .training-filter-grid) {
      grid-template-columns: 1fr;
    }
    .horizon-v2 .journey-workspace {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "tools" "main";
      gap: 18px;
    }
    .horizon-v2 .journey-status-strip {
      grid-template-columns: 1fr;
    }
    .horizon-v2 .journey-tools > *,
    .horizon-v2 .journey-main-column > .section-block {
      padding: 18px;
    }
    .horizon-v2 .journey-tools .journey-coach-card {
      padding-top: 20px;
    }
    .horizon-v2 .journey-coach-card::before {
      float: left;
      width: 95px;
      height: 95px;
      margin-right: 15px;
    }
    .horizon-v2
      :is(
        .results-overview-grid,
        .results-evidence-grid,
        .results-opportunity-grid,
        .results-detail-grid
      ) {
      grid-template-columns: minmax(0, 1fr);
    }
    .journey-action-bar button {
      flex: 1 1 100%;
    }
    .horizon-v2 .landing-preview {
      display: block;
    }
    .horizon-v2 .landing-mascot {
      height: 220px;
    }
    .horizon-footer {
      flex-direction: column;
      text-align: center;
      gap: 12px;
      font-size: 11px;
      padding: 22px 18px;
    }
    .horizon-v2 .assistant-panel {
      border-radius: 18px 18px 0 0;
      max-width: 100vw;
    }
  }
  @keyframes horizon-greet {
    0%,
    100% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(-4px) rotate(1deg);
    }
  }
  @keyframes horizon-thinking {
    0%,
    100% {
      transform: translateY(0);
      filter: drop-shadow(0 0 0 #388bff00);
    }
    50% {
      transform: translateY(-6px);
      filter: drop-shadow(0 3px 6px #388bff40);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .horizon-v2 .horizon-mascot,
    .horizon-v2 .coach-orb {
      animation: none !important;
      transform: none !important;
    }
    .horizon-v2 .product-v2-modules > button {
      transition: none;
      transform: none;
    }
  }
}

/* Horizon Coach vivant : un seul composant pour l'accueil et chaque page. */
@media screen {
  .horizon-v2 .horizon-robot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .horizon-v2 .horizon-robot-body {
    position: relative;
    display: block;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 1314 / 1197;
    transform-origin: 50% 100%;
    animation:
      horizon-robot-hello 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      horizon-robot-float 4.8s ease-in-out 0.9s infinite;
  }
  .horizon-v2 .horizon-robot-body > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(18, 52, 120, 0.18));
  }
  .horizon-v2 .horizon-robot-lid {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(closest-side, #0c1a33 72%, rgba(12, 26, 51, 0));
    transform: scaleY(0);
    transform-origin: 50% 45%;
    animation: horizon-robot-blink 5.4s ease-in-out 1.6s infinite;
  }
  .horizon-v2 .horizon-robot-lid.is-left {
    left: 35.8%;
    top: 30%;
    width: 12.4%;
    height: 9.6%;
  }
  .horizon-v2 .horizon-robot-lid.is-right {
    left: 54.4%;
    top: 25.2%;
    width: 11.2%;
    height: 9%;
  }
  .horizon-v2 .horizon-robot-core {
    position: absolute;
    left: 48.6%;
    top: 66.2%;
    width: 12.8%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 225, 255, 0.9), rgba(110, 225, 255, 0) 68%);
    mix-blend-mode: screen;
    animation: horizon-robot-core 2.6s ease-in-out infinite;
  }
  .horizon-v2 .horizon-robot.is-listening {
    transform: rotate(5deg) translateX(10px);
  }
  .horizon-v2 .horizon-robot.is-listening .horizon-robot-core {
    animation-duration: 1.1s;
  }
  .horizon-v2 .horizon-robot-body::after {
    content: "";
    position: absolute;
    left: 12%;
    top: 2%;
    width: 72%;
    height: 66%;
    border: 3px solid transparent;
    border-top-color: rgba(64, 160, 255, 0.85);
    border-right-color: rgba(64, 160, 255, 0.35);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .horizon-v2 .horizon-robot.is-thinking .horizon-robot-body::after {
    opacity: 1;
    animation: horizon-robot-think 1s linear infinite;
  }
  @keyframes horizon-robot-hello {
    0% {
      opacity: 0;
      transform: translateY(28px) scale(0.9) rotate(-7deg);
    }
    60% {
      opacity: 1;
      transform: translateY(-6px) scale(1.02) rotate(3deg);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(0);
    }
  }
  @keyframes horizon-robot-float {
    0%,
    100% {
      transform: translateY(0) rotate(0);
    }
    25% {
      transform: translateY(-8px) rotate(-1.6deg);
    }
    50% {
      transform: translateY(-3px) rotate(1.4deg);
    }
    75% {
      transform: translateY(-9px) rotate(-0.8deg);
    }
  }
  @keyframes horizon-robot-blink {
    0%,
    90%,
    100% {
      transform: scaleY(0);
    }
    93%,
    95% {
      transform: scaleY(1);
    }
  }
  @keyframes horizon-robot-core {
    0%,
    100% {
      opacity: 0.35;
      transform: scale(0.85);
    }
    50% {
      opacity: 1;
      transform: scale(1.1);
    }
  }
  @keyframes horizon-robot-think {
    to {
      transform: rotate(360deg);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .horizon-v2 .horizon-robot,
  .horizon-v2 .horizon-robot-body,
  .horizon-v2 .horizon-robot-lid,
  .horizon-v2 .horizon-robot-core,
  .horizon-v2 .horizon-robot-body::after {
    animation: none !important;
    transition: none !important;
  }
  .horizon-v2 .horizon-robot.is-listening {
    transform: none;
  }
}

/* Mes résultats : toujours une suite concrète, même avant la première analyse. */
@media screen {
  .horizon-v2 .results-next-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }
  .horizon-v2 .results-next-title {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    margin: 0 0 4px;
    font-size: 24px;
  }
  .horizon-v2 .results-next-title small {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
  }
}
@media screen and (max-width: 839px) {
  .horizon-v2 .results-next-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen {
  .horizon-v2 .core-journey-view .cv-import-block .section-header {
    justify-content: flex-start;
  }
}

/* « Plus de filtres » : un chevron dans la carte plutôt que le marqueur natif hors cadre. */
@media screen {
  .horizon-v2 .advanced-filters > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
  }
  .horizon-v2 .advanced-filters > summary::-webkit-details-marker {
    display: none;
  }
  .horizon-v2 .advanced-filters > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
  }
  .horizon-v2 .advanced-filters[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
  }
}

/* Emploi : « Quoi ? / Où ? », filtres en pastilles, offres visibles sans défiler. */
@media screen and (min-width: 840px) {
  .horizon-v2 .job-query-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  }
  .horizon-v2 .job-query-row label > span {
    font-size: 11px;
    font-weight: 700;
    color: #0b1455;
  }
  .horizon-v2 .job-quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: -6px auto 6px;
  }
  .horizon-v2 .job-quick-filters label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px 3px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px #146bc90a;
  }
  .horizon-v2 .job-quick-filters label > span {
    color: #6274a7;
    font-size: 12px;
    font-weight: 600;
  }
  .horizon-v2 .job-quick-filters :is(select, input) {
    min-height: 36px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4f8ff;
    color: #0b1455;
    font-size: 14px;
    font-weight: 600;
  }
  .horizon-v2 .job-quick-filters input {
    width: 150px;
  }
  .horizon-v2 .job-advanced-filters {
    max-width: 900px;
    margin: 0 auto 6px;
    border: 0;
    background: transparent;
  }
  .horizon-v2 .job-advanced-filters > summary {
    width: max-content;
    margin: 0 auto;
    padding: 6px 12px;
  }
  .horizon-v2 .job-advanced-filters[open] {
    border: 1px solid #e0ecfb;
    background: #fff;
  }
  .horizon-v2 .core-jobs-view .opportunity-tabs {
    margin: 8px 0 12px;
  }
  .horizon-v2 .core-jobs-view .opportunity-tab {
    min-height: 46px;
    padding: 6px 16px;
  }
  .horizon-v2 .core-jobs-view.has-results > .core-page-header {
    min-height: 150px;
    padding-top: 18px;
    padding-bottom: 44px;
  }
  .horizon-v2 .core-jobs-view.has-results > .core-page-header .core-page-heading p {
    display: none;
  }
  .horizon-v2 .core-jobs-view.has-results > .core-page-header h1 {
    font-size: 32px;
    margin: 0;
  }
  .horizon-v2 .core-jobs-view.has-results > .core-page-header > .horizon-robot-page {
    width: 150px;
    height: 132px;
  }
  .horizon-v2 .core-jobs-view.has-results .job-source-assurance {
    display: none;
  }
}
