/* Envie en Vue alpha 28 — Legacy parity foundation.
   Consolidated during M7. Source order is preserved to avoid cascade regressions. */

/* === migrated from reference-v1155.css === */
/*
 * Référence visuelle v1.155
 * Ce module rapproche le shell modulaire de la version validée sans réintroduire
 * le monolithe historique. Il est chargé en dernier afin d'exprimer la référence
 * visuelle officielle dans un seul fichier identifiable.
 */

:root {
  --font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --header-height: 64px;
  --sidebar-width: 268px;
  --shadow-reference: 0 12px 34px rgba(64, 58, 92, 0.08);
}

html,
body {
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
}

h1,
h2,
h3,
.app-topbar__title,
.button {
  font-family: "Baloo 2", var(--font-family);
}

h1,
h2,
h3 {
  color: var(--color-plum);
  letter-spacing: -0.015em;
}

.button {
  border-radius: 16px;
  font-weight: 800;
}

.button--primary {
  box-shadow: 0 10px 22px rgba(198, 75, 103, 0.14);
}

/* Connexion : retour à la carte centrale de la v1.155 */
.auth-page--reference {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 18px 16px 42px;
  background: rgba(64, 58, 92, 0.92);
}

.auth-card--reference {
  display: block;
  width: min(420px, calc(100vw - 32px));
  min-height: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(229, 221, 233, 0.92);
  border-radius: 24px;
  background: var(--color-cream);
  box-shadow: 0 26px 70px rgba(20, 17, 33, 0.28);
}

.auth-brand--reference {
  width: 220px;
  margin: 0;
}

.auth-brand--reference img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.auth-card__divider {
  height: 1px;
  margin: 10px 0 16px;
  background: var(--color-border);
}

.auth-card--reference h1 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
}

.auth-card--reference .auth-intro {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-card--reference .field {
  margin-top: 12px;
  gap: 6px;
  font-size: 13px;
}

.auth-card--reference .field input {
  min-height: 46px;
  border-radius: 15px;
  background: #fff;
}

.auth-card--reference .button {
  min-height: 46px;
  margin-top: 12px;
}

.auth-card--reference .auth-notice {
  margin: 0 0 12px;
  font-size: 12px;
}

.auth-context-link {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--color-turquoise-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.auth-card--reference .auth-version {
  margin: 10px 0 0;
  color: #9b95a8;
  font-size: 10px;
  text-align: center;
}

/* Shell général : sidebar blanche, topbar blanche et contenu léger */
.application-shell--reference {
  min-height: 100vh;
  background: var(--color-bg);
}

.application-shell--reference .app-sidebar {
  z-index: 60;
  top: 0;
  width: var(--sidebar-width);
  padding: 14px 12px 18px;
  border-right: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 8px 0 24px rgba(64, 58, 92, 0.035);
}

.app-sidebar__brand {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 10px 12px;
}

.app-sidebar__brand a {
  display: block;
  width: 190px;
}

.app-sidebar__brand img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}

.application-shell--reference .side-nav {
  gap: 4px;
}

.application-shell--reference .side-nav__item {
  min-height: 52px;
  padding: 0 15px;
  border-left-width: 4px;
  border-radius: 0 17px 17px 0;
  color: #5e5970;
  font-size: 14px;
}

.application-shell--reference .side-nav__item:hover {
  background: #faf9fc;
}

.application-shell--reference .side-nav__item.is-active {
  border-left-color: var(--color-turquoise);
  background: var(--color-raspberry-pale);
  color: var(--color-raspberry);
}

.application-shell--reference .side-nav__icon {
  width: 20px;
  height: 20px;
}

.application-shell--reference .app-sidebar__add {
  width: calc(100% - 24px);
  min-height: 48px;
  margin: 18px auto 0;
  border-radius: 16px;
}

.application-shell--reference .side-nav--secondary {
  margin-top: 12px;
  padding-top: 12px;
}

.application-shell--reference .app-topbar {
  left: var(--sidebar-width);
  min-height: var(--header-height);
  padding: 0 18px 0 28px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-plum);
  box-shadow: 0 5px 20px rgba(64, 58, 92, 0.045);
  backdrop-filter: none;
}

.application-shell--reference .app-topbar__title {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.application-shell--reference .app-topbar__actions {
  gap: 10px;
}

.application-shell--reference .icon-button,
.application-shell--reference .location-chip,
.application-shell--reference .profile-trigger {
  border-color: var(--color-border);
  background: #fff;
  color: var(--color-plum);
  box-shadow: none;
}

.application-shell--reference .icon-button:hover,
.application-shell--reference .location-chip:hover,
.application-shell--reference .profile-trigger:hover {
  background: #fbfafc;
}

.application-shell--reference .location-chip {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 800;
}

.location-chip__country {
  color: var(--color-plum);
  font-size: 11px;
  font-weight: 900;
}

.application-shell--reference .profile-trigger {
  min-height: 46px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.application-shell--reference .profile-trigger__copy strong {
  font-size: 12px;
}

.application-shell--reference .profile-trigger__copy small {
  color: var(--color-text-muted);
  font-size: 9px;
}

.profile-plan-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #f0ccd6;
  border-radius: 999px;
  background: var(--color-raspberry-pale);
  color: var(--color-raspberry);
  font-size: 10px;
  font-weight: 900;
}

.application-shell--reference .avatar {
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--color-border);
}

.topbar-add-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-raspberry);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(198, 75, 103, 0.18);
}

.topbar-add-button .icon {
  width: 22px;
  height: 22px;
}

.application-shell--reference .application-frame {
  display: block;
  padding-top: var(--header-height);
}

.application-shell--reference .app-main {
  min-width: 0;
  margin-left: var(--sidebar-width);
  padding: 24px clamp(18px, 3vw, 44px) 52px;
}

.application-shell--reference .app-page-content,
.application-shell--reference .page-heading,
.application-shell--reference .preview-notice {
  width: 100%;
  max-width: 1500px;
}

.application-shell--reference .page-heading {
  margin-bottom: 20px;
}

.application-shell--reference .page-heading h1 {
  font-size: 30px;
}

.profile-panel__preview {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-cream);
  color: var(--color-text-muted);
  font-size: 11px;
  text-align: center;
}

/* Accueil : identité, densité et blocs proches de la v1.155 */
.home-dashboard {
  display: grid;
  gap: 26px;
}

.home-section {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-reference);
}

.home-section--attention {
  background: var(--color-cream);
}

.home-section--agreements {
  background: var(--color-raspberry-pale);
}

.home-section--choice {
  background: var(--color-turquoise-pale);
}

.home-section--program {
  background: var(--color-cream);
}

.home-section--activity {
  background: var(--color-lilac-pale);
}

.home-section__number {
  display: none !important;
}

.home-section__heading--reference {
  display: grid;
  min-height: 94px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.home-section__copy {
  min-width: 0;
}

.home-section__copy h2 {
  margin: 2px 0 4px;
  font-size: 25px;
}

.home-section__copy p:last-child {
  margin: 0;
  color: var(--color-text-muted);
}

.home-section__heading-art {
  width: 118px;
  height: 86px;
  object-fit: contain;
}

.home-section__heading--reference > .button {
  align-self: center;
}

.home-brand-lockup {
  width: 290px;
  max-width: 100%;
}

.home-brand-lockup img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  object-position: left center;
}

.home-onboarding--compact {
  display: grid;
  min-height: 290px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 30px;
  padding: 24px 28px;
  overflow: hidden;
}

.home-onboarding--compact__copy {
  display: grid;
  gap: 12px;
}

.home-onboarding--compact__visual {
  width: 360px;
  height: 235px;
  justify-self: end;
  object-fit: contain;
}

.home-how-button {
  display: grid;
  width: min(500px, 100%);
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  color: var(--color-plum);
  cursor: pointer;
  text-align: left;
}

.home-how-button__icon {
  display: grid;
  width: 38px;
  height: 38px;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  place-content: center;
  gap: 3px;
  border-radius: 12px;
  background: var(--color-coral-pale);
}

.home-how-button__icon i:nth-child(1) { background: var(--color-coral); }
.home-how-button__icon i:nth-child(2) { background: var(--color-turquoise); }
.home-how-button__icon i:nth-child(3) { background: var(--color-lilac); }
.home-how-button__icon i:nth-child(4) { background: var(--color-raspberry); }
.home-how-button__icon i { border-radius: 3px; }
.home-how-button strong,
.home-how-button small { display: block; }
.home-how-button strong { font-size: 14px; }
.home-how-button small { margin-top: 2px; color: var(--color-text-muted); font-size: 11px; }
.home-how-button__arrow { color: var(--color-raspberry); font-size: 24px; }

.home-onboarding--expanded {
  padding: 26px 28px;
}

.home-onboarding__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 24px;
}

.home-onboarding__hero > img {
  width: 360px;
  height: 245px;
  object-fit: contain;
}

.home-onboarding__hero h2 {
  margin: 2px 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
}

.home-onboarding__hero h2 span {
  color: var(--color-turquoise-deep);
}

.home-onboarding__hero p:last-child {
  max-width: 760px;
  color: var(--color-text-muted);
}

.home-onboarding__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.onboarding-step {
  min-height: 184px;
  padding: 16px;
  border: 1px solid rgba(64, 58, 92, 0.08);
  border-radius: 20px;
}

.onboarding-step__eyebrow {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.onboarding-step__icon {
  float: right;
  margin: -20px 0 0;
}

.onboarding-step h3 {
  clear: both;
  margin-top: 24px;
}

.home-onboarding__example {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--color-lilac-pale);
}

.home-onboarding__example span {
  color: var(--color-turquoise-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-onboarding__example strong {
  font-size: 12px;
}

.home-action-list {
  display: grid;
  gap: 12px;
}

.home-action-card {
  display: grid;
  min-height: 102px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 164, 131, 0.65);
  border-radius: 20px;
  background: var(--color-cream-strong);
}

.home-action-card__icon {
  border-radius: 15px;
}

.home-action-card__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.home-action-card__status {
  color: #9b6b21;
  font-size: 11px;
  font-weight: 900;
}

.home-action-card h3 {
  margin: 0;
  font-size: 18px;
}

.home-action-card p {
  margin: 3px 0 0;
  font-size: 13px;
}

.home-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-metric {
  min-height: 106px;
  padding: 16px;
  border-radius: 18px;
}

.home-metric strong {
  font-size: 25px;
}

.home-section__actions {
  margin-top: 14px;
}

.home-section--ideas .home-section__actions .button--primary {
  flex: 1;
}

.agreement-stats,
.choice-mode-grid {
  gap: 12px;
}

.agreement-stat,
.choice-mode-card,
.program-card,
.activity-row,
.agreement-highlight {
  border-radius: 18px;
}

.choice-mode-card {
  min-height: 210px;
}

.activity-row {
  background: #fff;
}

/* Boîte à idées : même shell et densité plus proche du produit validé */
.library-overview {
  border-radius: 26px;
  background: #fff;
}

.library-overview h2 {
  font-size: 27px;
}

.library-toolbar {
  top: calc(var(--header-height) + 10px);
  border-radius: 20px;
}

.idea-card,
.library-dialog {
  border-radius: 22px;
}

.idea-card h3 {
  font-family: "Baloo 2", var(--font-family);
}

/* Responsive */
@media (max-width: 1120px) {
  .application-shell--reference .profile-trigger__copy,
  .profile-plan-badge {
    display: none;
  }

  .home-onboarding--compact {
    grid-template-columns: 1fr 280px;
  }

  .home-onboarding--compact__visual,
  .home-onboarding__hero > img {
    width: 280px;
  }

  .home-onboarding__hero {
    grid-template-columns: 1fr 280px;
  }

  .home-onboarding__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 0px;
  }

  .application-shell--reference .app-topbar {
    left: 0;
    padding-inline: 12px;
  }

  .application-shell--reference .app-sidebar {
    width: min(320px, 88vw);
    transform: translateX(-105%);
  }

  .application-shell--reference .app-sidebar.is-open {
    transform: translateX(0);
  }

  .application-shell--reference .app-main {
    margin-left: 0;
    padding: 18px 14px calc(92px + 24px);
  }

  .app-sidebar__close {
    display: inline-grid;
  }

  .home-onboarding--compact,
  .home-onboarding__hero {
    grid-template-columns: 1fr;
  }

  .home-onboarding--compact__visual,
  .home-onboarding__hero > img {
    width: min(360px, 78vw);
    height: auto;
    justify-self: center;
  }

  .home-onboarding--compact__visual {
    order: -1;
  }

  .home-section__heading--reference {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-section__heading--reference > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .application-shell--reference .app-topbar__title {
    font-size: 20px;
  }

  .application-shell--reference .location-chip,
  .application-shell--reference .topbar-search {
    display: none;
  }

  .application-shell--reference .profile-trigger {
    border: 0;
    padding: 0;
  }

  .application-shell--reference .topbar-add-button {
    display: none;
  }

  .home-dashboard {
    gap: 16px;
  }

  .home-section,
  .home-onboarding--expanded,
  .home-onboarding--compact {
    padding: 17px 14px;
    border-radius: 22px;
  }

  .home-onboarding--compact {
    min-height: auto;
  }

  .home-brand-lockup {
    width: 230px;
  }

  .home-brand-lockup img {
    height: 74px;
  }

  .home-how-button {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .home-section__heading--reference {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-section__heading-art {
    width: 92px;
    height: 70px;
    justify-self: end;
    margin-top: -58px;
  }

  .home-section__copy h2 {
    max-width: calc(100% - 86px);
    font-size: 22px;
  }

  .home-action-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-action-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-metrics-grid,
  .agreement-stats,
  .choice-mode-grid,
  .agreement-highlights {
    grid-template-columns: 1fr;
  }

  .home-onboarding__hero h2 {
    font-size: 38px;
  }

  .home-onboarding__steps {
    grid-template-columns: 1fr;
  }
}

/* Logo officiel reconstruit en composant, identique sur connexion, sidebar et accueil */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-plum);
}

.brand-lockup__mark {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 48px;
  flex: 0 0 58px;
}

.brand-lockup__circle {
  position: absolute;
  top: 5px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
}

.brand-lockup__circle--coral {
  left: 0;
  background: var(--color-coral);
}

.brand-lockup__circle--turquoise {
  right: 0;
  background: var(--color-turquoise);
}

.brand-lockup__mark b {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 22px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-raspberry);
  font-size: 15px;
  line-height: 1;
}

.brand-lockup__copy,
.brand-lockup__copy strong,
.brand-lockup__copy small,
.brand-lockup__copy span,
.brand-lockup__copy em {
  display: block;
}

.brand-lockup__copy strong {
  color: var(--color-raspberry);
  font-family: "Baloo 2", var(--font-family);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-lockup__copy small {
  margin-top: 5px;
  color: #69627c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.brand-lockup__copy em {
  color: var(--color-turquoise-deep);
  font-style: normal;
  font-weight: 900;
}

.brand-lockup--auth .brand-lockup__mark {
  width: 68px;
  height: 56px;
  flex-basis: 68px;
}

.brand-lockup--auth .brand-lockup__circle {
  width: 45px;
  height: 45px;
}

.brand-lockup--auth .brand-lockup__mark b {
  top: 14px;
  left: 26px;
  width: 29px;
  height: 29px;
  font-size: 17px;
}

.brand-lockup--auth .brand-lockup__copy strong {
  font-size: 24px;
}

.brand-lockup--auth .brand-lockup__copy small {
  font-size: 11px;
}

.brand-lockup--home .brand-lockup__mark {
  width: 64px;
  height: 52px;
  flex-basis: 64px;
}

.brand-lockup--home .brand-lockup__circle {
  width: 43px;
  height: 43px;
}

.brand-lockup--home .brand-lockup__mark b {
  top: 13px;
  left: 24px;
  width: 28px;
  height: 28px;
}

.brand-lockup--home .brand-lockup__copy strong {
  font-size: 22px;
}

.brand-lockup--sidebar .brand-lockup__copy strong {
  font-size: 18px;
}

.brand-lockup--sidebar .brand-lockup__copy small {
  font-size: 10px;
}

.auth-brand--reference {
  width: auto;
}

.auth-brand--reference img,
.app-sidebar__brand img,
.home-brand-lockup img {
  display: none !important;
}

.app-sidebar__brand a {
  width: auto;
  text-decoration: none;
}

.home-brand-lockup {
  width: auto;
}

@media (max-width: 760px) {
  .brand-lockup--home .brand-lockup__copy strong { font-size: 19px; }
  .brand-lockup--home .brand-lockup__copy small { font-size: 9px; }
}

/* ========================================================================== 
   ALPHA 6 — FIDÉLITÉ VISUELLE RENFORCÉE À LA V1.155
   Les règles ci-dessous sont issues des captures complètes de référence.
   Elles restent regroupées dans ce module unique au lieu d'être dispersées.
   ========================================================================== */

:root {
  --sidebar-width: 268px;
  --header-height: 64px;
  --content-wide: 1480px;
  --reference-radius: 24px;
  --reference-border: 1px solid rgba(64, 58, 92, 0.11);
  --reference-shadow: 0 13px 34px rgba(64, 58, 92, 0.075);
}

.visual-avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-raspberry);
  color: #fff;
  box-shadow: 0 0 0 1px var(--color-border), 0 5px 12px rgba(64, 58, 92, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.visual-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-avatar--tiny { width: 24px; height: 24px; flex-basis: 24px; border-width: 1px; }
.visual-avatar--large { width: 62px; height: 62px; flex-basis: 62px; }
.visual-avatar--xl { width: 78px; height: 78px; flex-basis: 78px; }

.application-shell--reference .app-sidebar {
  padding: 16px 12px 22px;
}

.application-shell--reference .app-sidebar__brand {
  min-height: 130px;
  align-items: flex-start;
  padding: 12px 15px 22px;
}

.application-shell--reference .brand-lockup--sidebar .brand-lockup__mark {
  width: 58px;
  height: 50px;
  flex-basis: 58px;
}

.application-shell--reference .brand-lockup--sidebar .brand-lockup__copy strong {
  font-size: 19px;
}

.application-shell--reference .brand-lockup--sidebar .brand-lockup__copy small {
  font-size: 10px;
}

.application-shell--reference .side-nav__item {
  min-height: 55px;
  margin: 2px 0;
  padding: 0 18px;
  border-radius: 0 18px 18px 0;
  font-size: 14px;
  font-weight: 800;
}

.application-shell--reference .app-sidebar__add {
  min-height: 50px;
  margin-top: 22px;
}

.application-shell--reference .app-main {
  max-width: none;
  margin-left: var(--sidebar-width);
  padding: 24px clamp(38px, 4.25vw, 82px) 60px;
}

.application-shell--reference .app-page-content,
.application-shell--reference .page-heading,
.application-shell--reference .preview-notice {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.application-shell--reference .app-topbar {
  min-height: 64px;
  padding: 0 22px 0 30px;
}

.application-shell--reference .app-topbar__title {
  font-size: 24px;
}

.application-shell--reference .profile-trigger .avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
}

.application-shell--reference .profile-trigger .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Connexion */
.auth-page--reference {
  place-items: start center;
  padding-top: 18px;
  background: #514b6a;
}

.auth-card--reference {
  width: 438px;
  max-width: calc(100vw - 30px);
  padding: 22px 22px 20px;
  border-radius: 23px;
  background: #fff8f3;
}

.auth-brand--reference {
  margin-bottom: 4px;
}

.auth-card--reference .brand-lockup--auth .brand-lockup__copy strong {
  font-size: 23px;
}

.auth-card--reference .brand-lockup--auth .brand-lockup__copy small {
  font-size: 10px;
}

.auth-card--reference h1 {
  font-size: 25px;
}

.auth-card--reference .auth-context-link {
  margin-top: 8px;
}

.auth-card--reference .auth-version {
  min-height: 20px;
  margin: 10px -2px -2px;
  padding-top: 7px;
  background: rgba(198, 75, 103, 0.045);
}

/* Accueil */
.home-dashboard {
  gap: 22px;
}

.home-section {
  padding: 21px 18px;
  border-radius: 24px;
  box-shadow: var(--reference-shadow);
}

.home-onboarding--compact {
  min-height: 292px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  padding: 26px 26px 24px;
}

.home-onboarding--compact__copy {
  gap: 14px;
}

.home-onboarding--compact__visual {
  width: 330px;
  height: 235px;
}

.home-brand-lockup .brand-lockup--home .brand-lockup__copy strong {
  font-size: 22px;
}

.home-how-button {
  width: min(500px, 100%);
  min-height: 74px;
  padding: 13px 15px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(64, 58, 92, 0.04);
}

.home-section__heading--reference {
  min-height: 70px;
  margin-bottom: 12px;
}

.home-section__copy h2 {
  margin: 1px 0 4px;
  font-size: 24px;
}

.home-section__copy p:last-child {
  font-size: 13px;
}

.home-section__heading-art {
  width: 110px;
  height: 78px;
}

.home-section--attention {
  padding: 22px 18px 24px;
}

.home-action-card {
  min-height: 128px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 14px 16px;
  border-color: rgba(243, 164, 131, 0.9);
  background: #fff3e5;
}

.home-action-card h3 {
  color: var(--color-raspberry);
  font-size: 17px;
}

.home-action-card__partner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(64, 58, 92, 0.1);
  color: #6f697d;
  font-size: 13px;
}

.home-space-card {
  padding: 13px;
  border: 1px solid rgba(243, 164, 131, 0.35);
  border-radius: 20px;
  background: #fff8f3;
}

.home-space-card__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1px 1px 10px;
}

.home-space-card__photo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 15px;
  object-fit: cover;
}

.home-space-card__identity h3 {
  margin: 0;
  font-size: 18px;
}

.home-space-card__identity p {
  margin: 2px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.home-space-card__edit {
  margin-left: auto;
  color: var(--color-raspberry);
}

.home-space-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-space-metric {
  position: relative;
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
}

.home-space-metric__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
}

.home-space-metric--raspberry .home-space-metric__icon { background: var(--color-raspberry-pale); color: var(--color-raspberry); }
.home-space-metric--turquoise .home-space-metric__icon { background: var(--color-turquoise-pale); color: var(--color-turquoise-deep); }
.home-space-metric--lilac .home-space-metric__icon { background: var(--color-lilac-pale); color: var(--color-plum); }

.home-space-metric__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.home-space-metric strong,
.home-space-metric small,
.home-space-metric em {
  display: block;
}

.home-space-metric strong { font-size: 23px; line-height: 1; }
.home-space-metric small { margin-top: 5px; color: var(--color-text-muted); font-size: 11px; }
.home-space-metric em { margin-top: 5px; color: var(--color-raspberry); font-size: 10px; font-style: normal; font-weight: 900; }
.home-space-metric em button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.home-space-metric > img { position: absolute; right: 8px; bottom: 6px; width: 92px; height: 72px; object-fit: cover; border: 4px solid #fff; border-radius: 10px; box-shadow: 0 5px 13px rgba(64,58,92,.14); transform: rotate(-2deg); opacity: .9; }
.home-space-card__cta { width: 100%; margin-top: 10px; }

.home-section--agreements {
  background: #f1edf6;
}

.home-text-link {
  border: 0;
  background: transparent;
  color: var(--color-raspberry);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.home-agreements-panel {
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
}

.home-agreements-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.home-agreements-panel__top > div:first-child strong,
.home-agreements-panel__top > div:first-child span {
  display: block;
}

.home-agreements-panel__top > div:first-child strong {
  color: var(--color-raspberry);
  font-size: 29px;
  line-height: 1;
}

.home-agreements-panel__top > div:first-child span {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.agreement-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.agreement-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--color-plum);
  font-size: 10px;
  text-decoration: none;
}

.agreement-pill em { font-style: normal; font-weight: 800; }
.agreement-pill--turquoise { background: var(--color-turquoise-pale); color: var(--color-turquoise-deep); }
.agreement-pill--lilac { background: var(--color-lilac-pale); }
.agreement-pill--cream { background: var(--color-cream); }
.agreement-pill--neutral { background: var(--color-neutral-pale); color: var(--color-text-muted); }

.agreement-highlights--reference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agreement-highlight--reference {
  position: relative;
  min-height: 175px;
  padding: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.agreement-highlight__top {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.agreement-highlight__top > img,
.agreement-highlight__fallback {
  width: 74px;
  height: 74px;
  border-radius: 15px;
  object-fit: cover;
}

.agreement-highlight__fallback {
  display: grid;
  place-items: center;
  background: var(--color-cream-strong);
  color: #f3c32d;
  font-size: 30px;
}

.agreement-highlight__top h3 { margin: 2px 0 5px; font-size: 15px; }
.agreement-highlight__top p { margin: 0; color: var(--color-text-muted); font-size: 11px; }
.agreement-highlight__badge { position: absolute; top: 14px; right: 12px; padding: 5px 8px; border-radius: 999px; background: var(--color-turquoise-deep); color: #fff; font-size: 9px; font-weight: 900; }
.agreement-highlight__meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0 84px; }
.agreement-highlight__meta span { padding: 4px 7px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-muted); font-size: 9px; }
.agreement-highlight--reference > a { position: absolute; right: 12px; bottom: 10px; color: var(--color-raspberry); font-size: 22px; text-decoration: none; }

.home-section--choice { background: #e8f7f6; }
.home-choice-panel { display: grid; grid-template-columns: .8fr 1.2fr .75fr; gap: 14px; align-items: stretch; padding: 13px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; }
.home-choice-panel__intro { align-self: center; padding: 10px 8px; }
.home-choice-count { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--color-turquoise-pale); color: var(--color-turquoise-deep); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.home-choice-panel__intro h3 { margin: 12px 0 6px; font-size: 18px; }
.home-choice-panel__intro p { color: var(--color-text-muted); font-size: 12px; }
.home-choice-suggestion { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px dashed var(--color-turquoise); border-radius: 17px; background: #fbffff; }
.home-choice-suggestion__icon { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 15px; background: var(--color-coral-pale); font-size: 28px; }
.home-choice-suggestion h3 { margin: 2px 0 7px; font-size: 16px; }
.home-choice-suggestion p { margin: 0; color: var(--color-text-muted); font-size: 11px; }
.home-choice-suggestion > span.badge { position: absolute; top: 10px; right: 10px; }
.home-choice-suggestion > div > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.home-choice-suggestion > div > div span { padding: 4px 7px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 9px; }
.home-choice-panel__actions { display: grid; gap: 8px; align-content: center; }
.home-choice-panel__actions .button { display: flex; min-height: 60px; flex-direction: column; justify-content: center; text-align: center; }
.home-choice-panel__actions small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; }

.home-section--program { background: #fff8f3; }
.home-program-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; }
.program-card--reference { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; min-height: 145px; gap: 12px; padding: 12px; border: 1px solid var(--color-border); background: #fff; }
.program-card--reference > img { width: 80px; height: 80px; border-radius: 15px; object-fit: cover; }
.program-card--reference h3 { margin: 2px 0 4px; font-size: 16px; }
.program-card--reference p { margin: 2px 0; color: var(--color-text-muted); font-size: 11px; }
.program-card__date { display: grid; place-items: center; min-width: 50px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--color-raspberry-pale); color: var(--color-raspberry); }
.program-card__date strong { font-size: 10px; }
.program-card__date span { font-size: 8px; }
.program-card__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.program-card__meta span { padding: 4px 7px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 9px; }
.program-card--reference .program-card__link { position: absolute; right: 10px; bottom: 9px; color: var(--color-raspberry); font-size: 22px; text-decoration: none; }
.program-next-card { display: flex; min-height: 145px; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--color-turquoise); border-radius: 18px; background: #f5ffff; color: var(--color-plum); text-decoration: none; }
.program-next-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--color-turquoise-pale); color: var(--color-turquoise-deep); }
.program-next-card h3 { margin: 0 0 4px; font-size: 16px; }
.program-next-card p { margin: 0; color: var(--color-text-muted); font-size: 11px; }
.program-next-card b { margin-left: auto; color: var(--color-raspberry); font-size: 22px; }

.home-section--activity { background: #f1edf6; }
.activity-list--reference { overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; }
.activity-row--reference { display: grid; min-height: 64px; grid-template-columns: 44px minmax(0, 1fr) 34px 20px; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; color: var(--color-plum); text-decoration: none; }
.activity-row--reference:last-child { border-bottom: 0; }
.activity-row--reference .activity-row__type { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--color-raspberry-pale); color: var(--color-raspberry); }
.activity-row--reference .activity-row__copy strong { display: block; font-size: 12px; }
.activity-row--reference .activity-row__copy small { display: block; margin-top: 4px; color: var(--color-text-muted); font-size: 10px; }
.activity-row--reference .activity-row__chevron { color: var(--color-raspberry); font-size: 20px; }
.home-section--activity .home-section__footer { justify-content: center; margin-top: 10px; }

/* Boîte à idées */
.reference-library-page { display: grid; gap: 16px; }
.library-reference-hero { display: flex; min-height: 190px; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 18px; border: var(--reference-border); border-radius: 24px; background: #fff; box-shadow: var(--reference-shadow); }
.library-reference-hero__identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.library-reference-hero__identity > img { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 16px; object-fit: cover; }
.library-reference-hero__identity h2 { margin: 1px 0 4px; font-size: 26px; }
.library-reference-hero__identity p:last-child { margin: 0; color: var(--color-text-muted); font-size: 12px; }
.library-reference-hero__identity .icon-button { margin-left: 4px; color: var(--color-raspberry); }
.library-reference-hero__art { width: 230px; height: 150px; object-fit: contain; }
.library-reference-tabs { display: flex; gap: 10px; }
.library-reference-tabs button,
.library-category-chips button,
.library-status-chips button,
.reference-chip-row button { min-height: 42px; padding: 0 18px; border: 1px solid var(--color-turquoise); border-radius: 999px; background: #fff; color: #6d677c; cursor: pointer; font-weight: 850; }
.library-reference-tabs button.is-active,
.library-category-chips button.is-active,
.library-status-chips button.is-active,
.reference-chip-row button.is-active { border-color: #efc7d1; background: var(--color-raspberry-pale); color: var(--color-raspberry); }
.library-reference-info { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(243,164,131,.35); border-radius: 16px; background: #fff8f3; }
.library-reference-info > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--color-raspberry-pale); color: var(--color-raspberry); }
.library-reference-info strong { display: block; font-size: 12px; }
.library-reference-info p { margin: 3px 0 0; color: var(--color-text-muted); font-size: 10px; }
.library-reference-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid rgba(243,164,131,.25); border-radius: 20px; background: #fff8f3; }
.library-reference-overview h2 { margin: 2px 0 5px; font-size: 21px; }
.library-reference-overview p:last-child { margin: 0; color: var(--color-text-muted); font-size: 11px; }
.library-reference-controls { display: grid; gap: 12px; }
.library-reference-search { display: flex; align-items: center; gap: 8px; }
.library-reference-search label { width: 250px; }
.library-reference-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 14px; background: #fff; color: var(--color-plum); }
.library-filter-panel { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; }
.library-filter-panel.is-open { display: grid; }
.library-filter-panel label { display: grid; gap: 5px; color: var(--color-text-muted); font-size: 10px; font-weight: 800; }
.library-filter-panel select { min-height: 40px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.reference-filter-label { margin: 0; color: var(--color-turquoise-deep); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.library-category-chips,
.library-status-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.library-category-chips button,
.library-status-chips button { min-height: 40px; padding-inline: 16px; font-size: 12px; }
.library-status-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.library-sort { display: flex; align-items: center; gap: 8px; color: var(--color-plum); font-size: 12px; font-weight: 800; }
.library-sort select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.library-results-heading { margin: 10px 0 0; }
.library-results-heading > strong { color: var(--color-plum); font-size: 18px; }
.library-category-section { display: grid; gap: 10px; }
.library-category-section > header { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 15px; background: #fff; }
.library-category-section > header strong { font-size: 14px; }
.library-category-section > header span { color: var(--color-text-muted); font-size: 11px; }
.idea-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.idea-card--reference { min-height: 500px; overflow: visible; padding: 12px; border-top: 2px solid var(--color-coral); border-radius: 18px; background: #fff8f3; box-shadow: 0 8px 20px rgba(64,58,92,.06); }
.idea-card--reference:hover { transform: translateY(-1px); }
.idea-card__reference-top { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.idea-card__reference-image { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border-radius: 15px; background: var(--color-cream-strong); }
.idea-card__reference-image img { width: 100%; height: 100%; object-fit: cover; }
.idea-card__reference-image--secret { position: relative; background: var(--color-lilac-pale); color: var(--color-raspberry); }
.idea-card__reference-image--secret span .icon { width: 34px; height: 34px; }
.idea-card__reference-image--secret strong { position: absolute; right: 10px; bottom: 8px; font-size: 22px; }
.idea-card__reference-identity > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.badge--category { background: #ffe9d9; color: #b46b3d; }
.idea-card__creator-line { display: inline-flex; align-items: center; gap: 4px; color: var(--color-text-muted); font-size: 9px; }
.idea-card--reference h3 { margin: 8px 0 0; font-size: 15px; }
.idea-card--reference .idea-card__labels { position: relative; z-index: 3; margin: 9px 0 0 86px; }
.idea-card--reference .idea-card__labels span { padding: 4px 7px; border-radius: 999px; background: #fff; color: #6f697d; font-size: 9px; }
.idea-card__reference-context { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.idea-card__reference-context span { padding: 5px 8px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: #6f697d; font-size: 9px; }
.idea-card__reference-location { margin: 11px 0 0; color: var(--color-plum); font-size: 11px; }
.idea-card__reference-location small { color: var(--color-text-muted); }
.idea-card__reference-description { min-height: 92px; margin: 10px 0 0; padding: 10px; border: 1px solid rgba(243,164,131,.3); border-radius: 12px; background: rgba(255,255,255,.55); color: var(--color-text-muted); font-size: 10px; line-height: 1.55; }
.idea-card__reference-description strong { display: block; margin-bottom: 4px; color: #9b6c6d; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.idea-card__reference-status { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; margin-top: 8px; }
.badge--soft { background: #e6f0e9; color: #5b7660; }
.secret-safe-note { color: var(--color-turquoise-deep); font-size: 9px; font-weight: 800; }
.idea-card__reference-actions { position: relative; z-index: 3; display: grid; gap: 7px; margin-top: auto; padding-top: 10px; }
.idea-card__reference-actions .button { min-height: 40px; padding: 7px 10px; border-radius: 13px; font-size: 11px; }
.idea-card__open { z-index: 1; }
.idea-card--secret { border-top-color: var(--color-lilac); background: #f9f7fc; }
.idea-card--archived { opacity: .72; }

/* Pages de référence statiques */
.reference-page { display: grid; gap: 14px; }
.reference-hero { display: flex; min-height: 174px; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 20px; border: var(--reference-border); border-radius: 24px; background: #fff; box-shadow: var(--reference-shadow); }
.reference-hero h2 { margin: 1px 0 6px; font-size: 26px; }
.reference-hero p:last-child { margin: 0; color: var(--color-text-muted); font-size: 12px; }
.reference-hero img { width: 220px; height: 140px; object-fit: contain; }
.reference-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reference-stat-card { min-height: 138px; padding: 15px; border: 1px solid var(--color-border); border-radius: 20px; }
.reference-stat-card > div { display: flex; align-items: center; justify-content: space-between; }
.reference-stat-card > div span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #fff; font-weight: 900; }
.reference-stat-card > div strong { font-size: 27px; }
.reference-stat-card h3 { margin: 12px 0 5px; font-size: 15px; }
.reference-stat-card p { color: var(--color-text-muted); font-size: 10px; }
.reference-stat-card--turquoise { background: var(--color-turquoise-pale); }
.reference-stat-card--lilac { background: var(--color-lilac-pale); }
.reference-stat-card--cream { background: var(--color-cream); }
.reference-stat-card--neutral { background: #e8e6ea; }
.agreements-summary-line { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; }
.agreements-summary-line strong,
.agreements-summary-line small { display: block; }
.agreements-summary-line small { color: var(--color-text-muted); font-size: 10px; }
.reference-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.reference-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 190px; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--color-border); border-radius: 15px; background: #fff; }
.reference-search-row input,
.reference-search-row select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.reference-search-row span { font-size: 11px; font-weight: 800; }
.reference-filter-bar { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 15px; background: #fff; color: var(--color-plum); cursor: pointer; font-weight: 850; }
.reference-filter-bar span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--color-turquoise); border-radius: 50%; color: var(--color-turquoise-deep); }
.reference-list-heading { display: flex; align-items: center; justify-content: space-between; }
.reference-list-heading span { color: var(--color-text-muted); font-size: 10px; }
.reference-category-group > header { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 13px; border: 1px solid var(--color-border); border-radius: 15px; background: #fff; }
.reference-category-group > header span { color: var(--color-text-muted); font-size: 10px; }
.reference-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.reference-result-card { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--color-border); border-radius: 17px; background: #fff; }
.reference-result-card > img,
.reference-result-fallback { width: 75px; height: 75px; border-radius: 14px; object-fit: cover; }
.reference-result-fallback { display: grid; place-items: center; background: var(--color-cream-strong); color: #eec52a; font-size: 28px; }
.reference-result-card h3 { margin: 6px 0 3px; font-size: 15px; }
.reference-result-card p { margin: 0; color: var(--color-text-muted); font-size: 10px; }
.reference-result-card > div > div { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0; }
.reference-result-card > div > div span { padding: 4px 6px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 8px; }
.reference-result-card .button { min-height: 36px; padding: 6px 10px; font-size: 10px; }

.choice-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--color-border); border-radius: 17px; background: #fff; }
.choice-tabs button { display: grid; min-height: 62px; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: #fff; color: var(--color-plum); text-align: left; }
.choice-tabs button span { grid-row: 1 / span 2; display: block; width: 36px; height: 36px; border-radius: 12px; background: var(--color-turquoise-pale); }
.choice-tabs button strong,
.choice-tabs button small { display: block; }
.choice-tabs button small { color: var(--color-text-muted); font-size: 9px; }
.choice-tabs button.is-active { background: var(--color-raspberry); color: #fff; }
.choice-tabs button.is-active small { color: #fff; opacity: .85; }
.choice-tabs button.is-active span { background: rgba(255,255,255,.17); }
.what-intro { display: flex; min-height: 122px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid rgba(243,164,131,.4); border-radius: 20px; background: #fff8f3; }
.what-intro h2 { margin: 0 0 7px; font-size: 34px; }
.what-intro p { margin: 0; color: var(--color-text-muted); font-size: 11px; }
.what-intro > strong { display: grid; width: 120px; height: 82px; place-items: center; padding: 10px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; font-size: 28px; }
.what-intro > strong small { display: block; font-size: 8px; font-weight: 700; text-align: center; }
.what-step-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.what-step-summary span { min-height: 42px; padding: 11px 13px; border: 1px solid rgba(243,164,131,.45); border-radius: 12px; background: #fff8f3; font-size: 9px; font-weight: 800; }
.what-question { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; padding: 14px; border: 1px solid rgba(243,164,131,.45); border-radius: 18px; background: #fff8f3; }
.what-question > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #f3e4dd; color: #8d6970; }
.what-question h3 { margin: 1px 0 10px; font-size: 13px; }
.what-question select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.what-option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.what-option-grid button { min-height: 43px; padding: 7px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; color: var(--color-plum); cursor: pointer; font-weight: 800; }
.what-option-grid button.is-selected { border-color: var(--color-coral); background: var(--color-raspberry-pale); color: #7e4252; }
.what-submit { width: min(360px,100%); }

.tracking-tabs { margin-top: 1px; }
.tracking-reference-card { display: grid; grid-template-columns: 190px minmax(0,1fr); overflow: hidden; border: 1px solid var(--color-border); border-top: 5px solid var(--color-lilac); border-radius: 20px; background: #fff; box-shadow: var(--reference-shadow); }
.tracking-reference-card__image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.tracking-reference-card__body { padding: 16px; }
.tracking-reference-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--color-text-muted); font-size: 9px; }
.tracking-reference-card__top > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.tracking-reference-card__body > h2 { margin: 12px 0 10px; font-size: 20px; }
.reference-meta-row { display: flex; flex-wrap: wrap; gap: 5px; }
.reference-meta-row span { padding: 5px 8px; border-radius: 999px; background: var(--color-cream); font-size: 9px; }
.tracking-location { margin: 11px 0; font-size: 10px; font-weight: 800; }
.tracking-description { padding: 11px; border: 1px solid rgba(243,164,131,.35); border-radius: 12px; background: #fff8f3; color: var(--color-text-muted); font-size: 10px; }
.tracking-date-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid rgba(243,164,131,.5); border-radius: 14px; background: #fff3e5; }
.tracking-date-card > span { display: grid; width: 54px; height: 60px; place-items: center; overflow: hidden; border: 1px solid #d9c1c4; border-radius: 9px; background: #fff; }
.tracking-date-card > span strong { width: 100%; padding: 4px; background: #f1d6db; font-size: 8px; text-align: center; }
.tracking-date-card > span b { font-size: 18px; }
.tracking-date-card h3 { margin: 0; font-size: 16px; }
.tracking-date-card p { margin: 2px 0 0; color: var(--color-text-muted); font-size: 10px; }
.tracking-detail-link { display: block; margin: 11px 0 8px; color: #7e4252; font-size: 9px; font-weight: 900; text-decoration: none; }
.tracking-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.tracking-actions .button { min-height: 42px; padding: 7px 14px; }

/* Réglages */
.settings-modal-layer { position: fixed; z-index: 90; inset: 0; display: grid; place-items: start center; padding: 72px 16px 20px; }
.settings-modal-layer__backdrop { position: absolute; inset: 0; background: rgba(64,58,92,.28); backdrop-filter: blur(6px); }
.settings-reference-modal { position: relative; z-index: 1; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow: hidden; border: 1px solid var(--color-border); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(25,20,40,.24); }
.settings-reference-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px 12px; border-bottom: 1px solid var(--color-border); background: #fff8f3; }
.settings-reference-modal > header h2 { margin: 0 0 5px; font-size: 22px; }
.workspace-mode-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 0 10px; border: 1px solid #f0ccd6; border-radius: 999px; background: #fff; color: var(--color-raspberry); font-size: 9px; font-weight: 900; }
.settings-reference-modal__scroll { display: grid; gap: 12px; max-height: calc(100vh - 170px); overflow: auto; padding: 14px 16px 18px; }
.settings-plan-card,
.settings-photo-card,
.settings-partner-card,
.settings-admin-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(243,164,131,.35); border-radius: 17px; background: #fff8f3; }
.settings-plan-card { justify-content: space-between; }
.settings-plan-card > div { display: flex; align-items: center; gap: 10px; }
.settings-plan-card h3,
.settings-photo-card h3,
.settings-partner-card h3,
.settings-admin-card h3 { margin: 0 0 3px; font-size: 15px; }
.settings-plan-card p,
.settings-photo-card p,
.settings-partner-card p,
.settings-admin-card p { margin: 0; color: var(--color-text-muted); font-size: 9px; }
.settings-plan-card > div:last-child { display: flex; align-items: center; gap: 10px; }
.settings-text-button { border: 0; background: transparent; color: var(--color-turquoise-deep); cursor: pointer; font-size: 9px; font-weight: 900; text-decoration: underline; }
.settings-usage-card { padding: 14px; border: 1px solid var(--color-border); border-radius: 17px; background: #fff; }
.settings-usage-card > h3 { margin: 0 0 4px; font-size: 16px; }
.settings-usage-card > p { margin: 0 0 12px; color: var(--color-text-muted); font-size: 9px; }
.settings-usage-card > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.settings-usage-card article { min-height: 74px; padding: 10px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-lilac-pale); }
.settings-usage-card article strong,
.settings-usage-card article small { display: block; }
.settings-usage-card article strong { font-size: 15px; }
.settings-usage-card article small { margin-top: 4px; color: var(--color-text-muted); font-size: 8px; }
.settings-photo-card > div:last-child,
.settings-partner-card > div:nth-child(2),
.settings-admin-card > div { min-width: 0; flex: 1; }
.settings-photo-card > div:last-child > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 9px; }
.settings-subtitle { margin: 2px 0 0; font-size: 14px; }
.settings-partner-card .button,
.settings-admin-card .button { margin-left: auto; }
.settings-divider { height: 1px; background: var(--color-border); }
.settings-location h3 { margin: 0 0 9px; font-size: 13px; }
.settings-location > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.settings-location label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 13px; background: #fff; }
.settings-location input { width: 100%; border: 0; outline: 0; color: var(--color-plum); }
.settings-location > p { margin: 7px 0; color: var(--color-text-muted); font-size: 8px; }
.settings-location aside { padding: 9px; border-radius: 11px; background: var(--color-turquoise-pale); color: var(--color-turquoise-deep); font-size: 8px; }
.settings-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-admin-card { border-color: rgba(105,201,195,.5); background: var(--color-turquoise-pale); }
.settings-admin-card > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #fff; color: var(--color-turquoise-deep); }

@media (max-width: 1250px) {
  .idea-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-choice-panel { grid-template-columns: 1fr 1.2fr; }
  .home-choice-panel__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .application-shell--reference .app-main { padding-inline: 18px; }
  .home-space-card__metrics,
  .agreement-highlights--reference,
  .reference-result-grid { grid-template-columns: 1fr 1fr; }
  .reference-stat-grid { grid-template-columns: 1fr 1fr; }
  .idea-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-program-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .auth-card--reference { width: min(438px, calc(100vw - 24px)); }
  .home-onboarding--compact { grid-template-columns: 1fr; min-height: auto; }
  .home-onboarding--compact__visual { order: -1; width: min(290px, 80vw); height: auto; justify-self: center; }
  .home-action-card { grid-template-columns: 44px minmax(0,1fr); }
  .home-action-card .button { grid-column: 1 / -1; width: 100%; }
  .home-space-card__metrics,
  .agreement-highlights--reference,
  .reference-stat-grid,
  .reference-result-grid,
  .idea-card-grid,
  .what-step-summary { grid-template-columns: 1fr; }
  .home-agreements-panel__top { display: grid; }
  .agreement-pills { justify-content: flex-start; }
  .home-choice-panel { grid-template-columns: 1fr; }
  .home-choice-panel__actions { grid-column: auto; grid-template-columns: 1fr; }
  .program-card--reference { grid-template-columns: 72px minmax(0,1fr); }
  .program-card__date { grid-column: 1 / -1; justify-self: start; }
  .activity-row--reference { grid-template-columns: 40px minmax(0,1fr) 30px 16px; }
  .library-reference-hero { min-height: auto; align-items: flex-start; }
  .library-reference-hero__art { width: 110px; height: 90px; }
  .library-reference-hero__identity { align-items: flex-start; }
  .library-reference-hero__identity > img { width: 56px; height: 56px; flex-basis: 56px; }
  .library-reference-hero__identity h2 { font-size: 20px; }
  .library-reference-tabs,
  .library-reference-search,
  .library-status-row { align-items: stretch; flex-direction: column; }
  .library-reference-search label { width: 100%; }
  .library-filter-panel { grid-template-columns: 1fr; }
  .library-sort { width: 100%; justify-content: space-between; }
  .idea-card--reference { min-height: auto; }
  .reference-search-row { grid-template-columns: 1fr; }
  .choice-tabs { grid-template-columns: 1fr; }
  .what-intro { display: grid; }
  .what-intro h2 { font-size: 28px; }
  .what-option-grid { grid-template-columns: 1fr; }
  .tracking-reference-card { grid-template-columns: 1fr; }
  .tracking-reference-card__image { min-height: 220px; max-height: 260px; }
  .tracking-actions .button { width: 100%; }
  .settings-modal-layer { padding: 66px 8px 8px; }
  .settings-reference-modal { width: calc(100vw - 16px); max-height: calc(100vh - 74px); }
  .settings-reference-modal__scroll { max-height: calc(100vh - 150px); }
  .settings-plan-card,
  .settings-photo-card,
  .settings-partner-card,
  .settings-admin-card { align-items: flex-start; flex-direction: column; }
  .settings-plan-card > div:last-child { width: 100%; justify-content: space-between; }
  .settings-usage-card > div,
  .settings-photo-card > div:last-child > div,
  .settings-secondary-actions,
  .settings-location > div { grid-template-columns: 1fr; }
  .settings-partner-card .button,
  .settings-admin-card .button { width: 100%; margin-left: 0; }
}

/* Correctifs de recette visuelle alpha 6 */
.auth-page--reference {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 980px) {
  .application-shell--reference .app-topbar {
    left: 0;
  }

  .application-shell--reference .app-main {
    width: 100%;
    margin-left: 0;
    padding: 18px 12px calc(92px + env(safe-area-inset-bottom));
  }

  .application-shell--reference .app-page-content {
    max-width: 100%;
    min-width: 0;
  }

  .application-shell--reference .app-sidebar {
    top: var(--header-height);
  }
}

/* === migrated from fidelity-alpha11.css === */
/*
 * Alpha 15 — correction visuelle stricte à partir des écarts signalés par Lucas.
 * Référence : v1.155 + captures validées + palette officielle.
 * Ce fichier ne change aucune règle métier : il corrige uniquement les proportions,
 * les pictogrammes, les alignements et la densité des blocs d'accueil.
 */

:root {
  --eiv-plum: #403a5c;
  --eiv-raspberry: #c64b67;
  --eiv-turquoise: #69c9c3;
  --eiv-turquoise-deep: #287f86;
  --eiv-coral: #f3a483;
  --eiv-bg: #f5f3fa;
  --eiv-border: #e5dde9;
  --eiv-text-muted: #7b768c;
  --eiv-coral-pale: #fcebe5;
  --eiv-turquoise-pale: #e8f7f6;
  --eiv-raspberry-pale: #fbecef;
  --eiv-lilac-pale: #f1edf6;
  --eiv-cream: #fff8f3;
  --eiv-cream-strong: #fff3e5;
}

/* Icônes : même poids et même respiration que la v1.155. */
.icon,
.side-nav__icon,
.mobile-nav__icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.application-shell--reference .side-nav__icon {
  width: 21px;
  height: 21px;
}

.application-shell--reference .side-nav__item {
  gap: 13px;
  font-weight: 800;
}

/* En-têtes de section : illustrations rapprochées du texte. */
.home-section__heading--inline-art {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.home-section__heading--inline-art .home-section__copy {
  flex: 0 1 auto;
  min-width: 265px;
  max-width: 620px;
}

.home-section__heading-art--inline {
  width: 98px;
  height: 78px;
  margin-right: 0;
  margin-left: auto;
  object-fit: contain;
}

.home-section__heading--inline-art .home-text-link {
  margin-left: auto;
}

/* Onboarding développé : reproduction du bloc validé. */
.home-onboarding--expanded {
  padding: 27px 28px 26px;
  overflow: hidden;
  background: #fff;
}

.home-onboarding__hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 18px;
  align-items: center;
}

.home-onboarding__hero > div {
  min-width: 0;
}

.home-onboarding__hero > img {
  width: min(100%, 390px);
  height: 255px;
  justify-self: end;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(64, 58, 92, 0.08));
}

.onboarding-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--eiv-raspberry);
}

.onboarding-brand > strong {
  font-family: "Baloo 2", var(--font-family);
  font-size: 20px;
  line-height: 1;
}

.onboarding-brand__mark {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 38px;
}

.onboarding-brand__mark i {
  position: absolute;
  top: 1px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
}

.onboarding-brand__mark i:first-child {
  left: 0;
  background: var(--eiv-coral);
}

.onboarding-brand__mark i:nth-child(2) {
  right: 0;
  background: var(--eiv-turquoise);
}

.onboarding-brand__mark b {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 17px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--eiv-raspberry);
  font-size: 12px;
  line-height: 1;
}

.home-onboarding__hero .section-eyebrow {
  margin-top: 1px;
}

.home-onboarding__hero h2 {
  margin: 6px 0 13px;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.home-onboarding__hero p:last-of-type {
  max-width: 790px;
  margin: 0;
  color: var(--eiv-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.home-onboarding__hero p strong {
  color: var(--eiv-plum);
  font-weight: 900;
}

.home-onboarding__intro-actions {
  margin-top: 15px;
}

.home-onboarding__intro-actions .button {
  min-width: 152px;
  min-height: 42px;
}

.home-onboarding__steps {
  gap: 12px;
  margin-top: 18px;
}

.onboarding-step {
  position: relative;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  padding: 16px 17px 17px;
  border: 1px solid var(--eiv-border);
  border-radius: 22px;
  box-shadow: none;
}

.onboarding-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -12px;
  color: var(--eiv-raspberry);
  font-size: 17px;
  font-weight: 900;
  transform: translateY(-50%);
}

.onboarding-step--coral { background: var(--eiv-coral-pale); }
.onboarding-step--lilac { background: var(--eiv-lilac-pale); }
.onboarding-step--turquoise { background: var(--eiv-turquoise-pale); }
.onboarding-step--cream { background: var(--eiv-cream); }

.onboarding-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.onboarding-step__eyebrow {
  color: var(--eiv-text-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.onboarding-step__icon {
  float: none;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--eiv-raspberry);
}


.onboarding-step--coral .onboarding-step__icon { color: var(--eiv-raspberry); }
.onboarding-step--lilac .onboarding-step__icon { color: var(--eiv-raspberry); }
.onboarding-step--turquoise .onboarding-step__icon { color: var(--eiv-turquoise-deep); }
.onboarding-step--cream .onboarding-step__icon { color: var(--eiv-raspberry); }
.onboarding-step__icon .icon {
  width: 22px;
  height: 22px;
}

.onboarding-step h3 {
  clear: none;
  margin: 20px 0 7px;
  font-size: 19px;
}

.onboarding-step p {
  margin: 0;
  color: var(--eiv-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.onboarding-step__line {
  display: block;
  height: 4px;
  margin: auto 2px 0;
  border-radius: 999px;
  background: var(--eiv-coral);
}

.onboarding-step--lilac .onboarding-step__line { background: #b6a0cf; }
.onboarding-step--turquoise .onboarding-step__line { background: var(--eiv-turquoise); }
.onboarding-step--cream .onboarding-step__line { background: var(--eiv-coral); }

.home-onboarding__example {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--eiv-border);
  border-radius: 18px;
  background: var(--eiv-lilac-pale);
}

.home-onboarding__example-label {
  flex: 0 0 auto;
  color: var(--eiv-turquoise-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-onboarding__example-text {
  min-width: 0;
  margin: 0;
  color: var(--eiv-plum);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* À vous de jouer */
.home-section--attention {
  background: var(--eiv-cream);
}

.home-section--attention .home-section__heading-art--inline {
  width: 94px;
  height: 73px;
  margin-right: 8px;
  margin-left: auto;
}

.home-action-card {
  min-height: 132px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 164, 131, 0.92);
  border-radius: 20px;
  background: var(--eiv-cream-strong);
}

.home-action-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  color: var(--eiv-plum);
}

.home-action-card--opinion .home-action-card__icon {
  color: var(--eiv-plum);
}

.home-action-card--opinion .home-action-card__icon .icon {
  width: 19px;
  height: 25px;
}

.home-action-card__icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.home-action-card h3 {
  color: var(--eiv-raspberry);
  font-size: 17px;
}

.home-action-card__partner .visual-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.home-action-card .button--primary {
  min-width: 146px;
  min-height: 50px;
  border-radius: 17px;
}

/* Boîte à idées — images et statistiques à leur emplacement de référence. */
.home-space-card__photo {
  content: none;
}

.home-space-card__metrics {
  gap: 10px;
}

.home-space-metric {
  min-height: 112px;
  padding: 14px 138px 14px 14px;
}

.home-space-metric__copy {
  min-width: 0;
}

.home-space-metric__copy strong {
  font-size: 23px;
}

.home-space-metric__copy small {
  max-width: 180px;
  line-height: 1.3;
}

.home-space-metric__reference-art {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 126px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  transform: translateY(-50%);
}

.home-space-metric__reference-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-space-metric__reference-art--collection {
  width: 142px;
  height: 98px;
  right: 7px;
}

.home-space-metric__copy em button {
  display: inline-block;
  max-width: 190px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eiv-raspberry);
  cursor: pointer;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}

/* Nos accords — filtres, cartes, pictos et descriptions. */
.home-section--agreements {
  background: var(--eiv-raspberry-pale);
}

.home-agreements-panel {
  padding: 14px;
  border-radius: 20px;
}

.agreement-pills {
  gap: 8px;
}

.agreement-pill {
  min-height: 34px;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(64, 58, 92, 0.08);
  border-radius: 999px;
}

.agreement-pill > span {
  display: grid;
  place-items: center;
}

.agreement-pill .icon {
  width: 15px;
  height: 15px;
}

.agreement-pill strong {
  font-size: 11px;
}

.agreement-pill em {
  font-size: 11px;
}

.agreement-pill--turquoise {
  background: var(--eiv-turquoise-pale);
  color: var(--eiv-turquoise-deep);
}

.agreement-pill--lilac {
  background: var(--eiv-lilac-pale);
  color: var(--eiv-plum);
}

.agreement-pill--cream {
  background: var(--eiv-cream);
  color: var(--eiv-text-muted);
}

.agreement-pill--neutral {
  background: #eeebf2;
  color: var(--eiv-text-muted);
}

.agreement-highlights--reference {
  gap: 12px;
}

.agreement-highlight--reference {
  min-height: 190px;
  padding: 14px 14px 13px;
  border-radius: 18px;
}

.agreement-highlight__top {
  min-height: 82px;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding-right: 105px;
}

.agreement-highlight__top > img,
.agreement-highlight__fallback {
  width: 82px;
  height: 82px;
  border-radius: 17px;
}

.agreement-highlight__top h3 {
  margin: 2px 0 6px;
  font-size: 16px;
}

.agreement-highlight__top p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
}

.agreement-highlight__top p .icon {
  width: 14px;
  height: 14px;
}

.agreement-highlight__badge {
  top: 14px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: var(--eiv-turquoise-deep);
  color: #fff;
  font-size: 9px;
}

.agreement-highlight__badge .icon {
  width: 14px;
  height: 14px;
}

.agreement-highlight__meta {
  margin: 10px 0 0 94px;
}

.agreement-highlight__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
}

.agreement-highlight__meta .icon {
  width: 12px;
  height: 12px;
  color: var(--eiv-turquoise-deep);
}

.agreement-highlight__description {
  margin: 14px 25px 0 94px;
  color: var(--eiv-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.agreement-highlight__flag {
  margin-left: 4px;
  font-size: 13px;
}

/* Métadonnées de choix / programme : pictos SVG cohérents. */
.home-choice-suggestion__icon {
  color: var(--eiv-raspberry);
  font-size: 0;
}

.home-choice-suggestion__icon .icon {
  width: 30px;
  height: 30px;
}

.home-choice-suggestion > div > div span,
.program-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-choice-suggestion > div > div .icon,
.program-card__meta .icon {
  width: 12px;
  height: 12px;
  color: var(--eiv-turquoise-deep);
}

/* Pages principales : mêmes pictos que l'accueil. */
.reference-stat-card__icon,
.reference-result-card .badge .icon,
.reference-result-card__meta .icon {
  color: currentColor;
}

@media (max-width: 1240px) {

  .home-space-metric {
    padding-right: 110px;
  }

  .home-space-metric__reference-art {
    width: 102px;
  }
}

@media (max-width: 980px) {
  .home-onboarding__hero {
    grid-template-columns: 1fr;
  }

  .home-onboarding__hero > img {
    width: min(100%, 430px);
    height: 235px;
    justify-self: center;
  }

  .onboarding-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-section__heading--inline-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-section__heading-art--inline {
    width: 78px;
    height: 60px;
    margin: 0 0 0 auto;
  }

  .home-onboarding--expanded {
    padding: 19px 15px;
  }

  .home-onboarding__hero h2 {
    font-size: 36px;
  }

  .home-onboarding__steps {
    grid-template-columns: 1fr;
  }

  .onboarding-step {
    min-height: 0;
  }

  .home-onboarding__example {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .home-action-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-action-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-space-metric {
    min-height: 106px;
    padding-right: 120px;
  }

  .home-space-metric__reference-art {
    width: 112px;
  }

  .agreement-highlight__top {
    padding-right: 0;
  }

  .agreement-highlight__badge {
    position: static;
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .agreement-highlight__meta,
  .agreement-highlight__description {
    margin-left: 0;
  }
}

@media (max-width: 480px) {

  .home-space-metric {
    padding-right: 92px;
  }

  .home-space-metric__reference-art {
    width: 84px;
  }
}

/* Page Nos accords : iconographie et densité alignées sur les cartes d'accueil. */
.reference-stat-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.reference-stat-card__icon .icon {
  width: 22px;
  height: 22px;
}

.reference-stat-card--turquoise .reference-stat-card__icon { color: var(--eiv-turquoise-deep); }
.reference-stat-card--lilac .reference-stat-card__icon { color: var(--eiv-plum); }
.reference-stat-card--cream .reference-stat-card__icon { color: var(--eiv-text-muted); }
.reference-stat-card--neutral .reference-stat-card__icon { color: var(--eiv-text-muted); }

.reference-chip-row button,
.reference-category-group > header strong,
.reference-result-card .badge,
.reference-result-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reference-chip-row .icon,
.reference-category-group > header .icon {
  width: 16px;
  height: 16px;
  color: var(--eiv-turquoise-deep);
}

.reference-result-card .badge .icon {
  width: 14px;
  height: 14px;
}

.reference-result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reference-result-card__meta span {
  padding: 4px 7px;
  border: 1px solid var(--eiv-border);
  border-radius: 999px;
  color: var(--eiv-text-muted);
  font-size: 10px;
}

.reference-result-card__meta .icon {
  width: 12px;
  height: 12px;
  color: var(--eiv-turquoise-deep);
}

.reference-result-card__description {
  margin: 12px 0 0;
  color: var(--eiv-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Pictogrammes SVG sur Que fait-on ?, Suivi, réglages et Boîte à idées. */
.what-step-summary span,
.reference-meta-row span,
.tracking-location,
.tracking-reference-card__top .badge,
.profile-plan-badge,
.settings-location label > span,
.settings-location .button,
.library-reference-hero__identity .icon-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.what-step-summary .icon,
.reference-meta-row .icon,
.tracking-location .icon,
.tracking-reference-card__top .badge .icon,
.profile-plan-badge .icon,
.settings-location .icon,
.library-reference-hero__identity .icon-button .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.what-question > span {
  display: grid;
  place-items: center;
}

.what-question > span .icon {
  width: 23px;
  height: 23px;
}

.tracking-location .icon,
.settings-location label > span .icon {
  color: var(--eiv-turquoise-deep);
}

.tracking-reference-card__top .badge .icon,
.profile-plan-badge .icon {
  color: var(--eiv-raspberry);
}

/* ========================================================================== 
   ALPHA 9 — CORRECTIONS VISUELLES CIBLÉES APRÈS RECETTE CLOUDFLARE
   Ces règles reprennent exactement les écarts signalés : état développé et
   replié de l’onboarding, emplacement des koalas, identité de l’espace,
   filtres informatifs de Nos accords, appel à l’action du programme,
   séparateur historique et libellés de l’activité récente.
   ========================================================================== */

/* Onboarding développé : uniquement la marque puis « Comment ça fonctionne ». */
.home-onboarding--expanded .home-onboarding__hero {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  min-height: 250px;
  align-items: center;
}

.home-onboarding--expanded .onboarding-brand {
  margin-bottom: 10px;
}

.home-onboarding--expanded .onboarding-brand > strong {
  font-size: 24px;
}

.home-onboarding__expanded-label {
  margin: 0 0 11px;
  color: var(--eiv-turquoise-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-onboarding__lead {
  max-width: 820px;
  margin: 0;
  color: var(--eiv-text-muted);
  font-size: 15px;
  line-height: 1.62;
}

.home-onboarding__lead strong {
  color: var(--eiv-plum);
  font-weight: 900;
}

/* Onboarding replié : logo complet et signature nettement plus lisible. */
.home-onboarding--compact .home-brand-lockup {
  width: min(390px, 100%);
}

.home-onboarding--compact .brand-lockup--home {
  gap: 15px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__mark {
  width: 76px;
  height: 62px;
  flex-basis: 76px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__circle {
  width: 51px;
  height: 51px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__mark b {
  top: 15px;
  left: 29px;
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy strong {
  font-size: 25px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy small {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.18;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy small span {
  color: var(--eiv-plum);
  font-weight: 850;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy small em {
  margin-top: 1px;
  color: var(--eiv-turquoise-deep);
  font-size: 16px;
  font-weight: 950;
}

/* « À vous de jouer » : le koala suit le texte au lieu de flotter à droite. */
.home-section--attention .home-section__heading--inline-art {
  justify-content: flex-start;
}

.home-section--attention .home-section__heading--inline-art .home-section__copy {
  flex: 0 1 390px;
  min-width: 270px;
  max-width: 390px;
}

.home-section--attention .home-section__heading-art--inline {
  width: 94px;
  height: 73px;
  margin: 0 0 0 12px;
}

/* Boîte à idées : le crayon appartient visuellement au nom de l’espace. */
.home-space-card__identity-copy {
  min-width: 0;
}

.home-space-card__title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.home-space-card__title-row h3 {
  min-width: 0;
}

.home-space-card__edit {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  margin-left: 0 !important;
  border-color: rgba(198, 75, 103, 0.14);
  background: var(--eiv-raspberry-pale);
  color: var(--eiv-raspberry) !important;
}

.home-space-card__edit .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
}

.home-space-metric--lilac .home-space-metric__icon {
  background: var(--eiv-lilac-pale);
  color: var(--eiv-plum);
}

.home-space-metric--lilac .home-space-metric__icon .icon {
  width: 22px;
  height: 22px;
}

/* Nos accords : fond lilas et pastilles strictement informatives. */
.home-section--agreements {
  background: var(--eiv-lilac-pale) !important;
}

.agreement-pill {
  cursor: default;
  user-select: none;
  text-decoration: none;
}

/* Votre programme : « Et la prochaine ? » est un véritable appel à l’action. */
.program-next-card {
  min-height: 150px;
  padding: 20px;
}

.program-next-card > span {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 15px;
}

.program-next-card > span .icon {
  width: 25px;
  height: 25px;
}

.program-next-card h3 {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.15;
}

.program-next-card p {
  font-size: 12.5px;
  line-height: 1.4;
}

.program-next-card b {
  font-size: 26px;
}

/* Séparateur historique de la v1.155 : ligne fine et petit cœur central. */
.home-history-divider {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.home-history-divider::before,
.home-history-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--eiv-border);
}

.home-history-divider > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--eiv-border);
  border-radius: 50%;
  background: #fff;
  color: var(--eiv-raspberry);
  box-shadow: 0 5px 12px rgba(64, 58, 92, 0.07);
  font-size: 10px;
  line-height: 1;
}

/* Activité récente : koala rapproché et type d’action en bleu gras. */
.home-section--activity .home-section__heading--inline-art {
  justify-content: flex-start;
}

.home-section--activity .home-section__heading--inline-art .home-section__copy {
  flex: 0 1 430px;
  min-width: 280px;
  max-width: 430px;
}

.home-section--activity .home-section__heading-art--inline {
  width: 82px;
  height: 72px;
  margin: 0 0 0 12px;
}

.activity-row__copy small {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}

.activity-row__kind {
  color: var(--eiv-turquoise-deep);
  font-weight: 950;
}

.activity-row__copy small span {
  color: var(--eiv-text-muted);
  font-weight: 700;
}

@media (max-width: 760px) {
  .home-onboarding--compact .brand-lockup--home .brand-lockup__mark {
    width: 62px;
    height: 52px;
    flex-basis: 62px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__circle {
    width: 42px;
    height: 42px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__mark b {
    top: 12px;
    left: 23px;
    width: 27px;
    height: 27px;
    font-size: 15px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__copy strong {
    font-size: 21px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__copy small {
    font-size: 10.5px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__copy small em {
    font-size: 13px;
  }

  .home-section--attention .home-section__heading--inline-art,
  .home-section--activity .home-section__heading--inline-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    align-items: center;
  }

  .home-section--attention .home-section__heading-art--inline,
  .home-section--activity .home-section__heading-art--inline {
    margin-left: 0;
    justify-self: start;
  }

  .home-onboarding--expanded .home-onboarding__hero {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Alpha 15 — corrections de recette du 9 juillet 2026
   ========================================================================== */

/* Navigation latérale : lisibilité renforcée, pictogramme actif sur carré blanc
   et survol crème identique au bloc « À vous de jouer ». */
.application-shell--reference .side-nav__item {
  min-height: 55px;
  gap: 12px;
  padding: 0 14px 0 11px;
  font-size: 15.5px;
}

.application-shell--reference .side-nav__icon {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.application-shell--reference .side-nav__item:hover:not(.is-active) {
  background: var(--eiv-cream-strong);
  color: var(--eiv-plum);
}

.application-shell--reference .side-nav__item:hover:not(.is-active) .side-nav__icon {
  background: rgba(255, 255, 255, 0.72);
}

.application-shell--reference .side-nav__item.is-active .side-nav__icon {
  background: #fff;
  color: var(--eiv-raspberry);
  box-shadow: 0 6px 14px rgba(64, 58, 92, 0.08);
}

/* Promesse de marque : plus présente dans les deux états de l’onboarding. */
.home-onboarding__slogan {
  display: grid;
  gap: 1px;
  margin: 8px 0 17px !important;
  font-family: "Baloo 2", var(--font-family);
  font-size: clamp(48px, 4.8vw, 72px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.035em !important;
}

.home-onboarding__slogan span,
.home-onboarding__slogan em {
  display: block;
  font-style: normal;
}

.home-onboarding__slogan span {
  color: var(--eiv-plum);
}

.home-onboarding__slogan em {
  color: var(--eiv-turquoise-deep);
}

.home-onboarding__lead {
  max-width: 850px;
  font-size: 16.5px;
  line-height: 1.72;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy small {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.22;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy small em {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.08;
}

/* Exemple concret : quatre étapes illustrées et compactes. */
.home-onboarding__example {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 78px;
  padding: 10px 13px;
}

.home-onboarding__example-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-onboarding__example-item {
  display: grid;
  min-width: 0;
  min-height: 55px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--eiv-border);
  border-radius: 15px;
  background: #fff;
}

.home-onboarding__example-item > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--eiv-raspberry-pale);
  color: var(--eiv-raspberry);
  font-style: normal;
}

.home-onboarding__example-item > i .icon {
  width: 20px;
  height: 20px;
}

.home-onboarding__example-item strong,
.home-onboarding__example-item small {
  display: block;
}

.home-onboarding__example-item strong {
  color: var(--eiv-plum);
  font-size: 11px;
  line-height: 1.15;
}

.home-onboarding__example-item small {
  margin-top: 2px;
  color: var(--eiv-text-muted);
  font-size: 9px;
  line-height: 1.25;
}

.home-onboarding__example-arrow {
  color: var(--eiv-turquoise-deep);
  font-size: 17px;
  font-weight: 900;
}

/* Koalas : plus grands et réellement rattachés au texte du bloc. */
.home-section--attention .home-section__heading--inline-art,
.home-section--activity .home-section__heading--inline-art {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  justify-content: start;
  column-gap: 12px;
}

.home-section--attention .home-section__heading--inline-art .home-section__copy,
.home-section--activity .home-section__heading--inline-art .home-section__copy {
  min-width: 0;
  max-width: 470px;
}

.home-section--attention .home-section__heading-art--inline {
  width: 118px;
  height: 90px;
  margin: 0;
  justify-self: start;
}

.home-section--activity .home-section__heading-art--inline {
  width: 108px;
  height: 84px;
  margin: 0;
  justify-self: start;
}

/* Nos accords : appel à l’action plus sympathique et plus visible. */
.home-agreements-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(198, 75, 103, 0.28);
  border-radius: 15px;
  background: #fff;
  color: var(--eiv-raspberry);
  box-shadow: 0 7px 16px rgba(64, 58, 92, 0.06);
  font-family: "Baloo 2", var(--font-family);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.home-agreements-cta:hover {
  background: var(--eiv-raspberry-pale);
  box-shadow: 0 9px 20px rgba(64, 58, 92, 0.09);
  transform: translateY(-1px);
}

.home-agreements-cta .icon {
  width: 19px;
  height: 19px;
}

.home-agreements-cta b {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .home-onboarding__example {
    grid-template-columns: 1fr;
  }

  .home-onboarding__example-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-onboarding__example-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .application-shell--reference .side-nav__item {
    font-size: 15px;
  }

  .home-onboarding__slogan {
    font-size: clamp(38px, 11vw, 53px) !important;
  }

  .home-onboarding__lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__copy small {
    font-size: 12px;
  }

  .home-onboarding--compact .brand-lockup--home .brand-lockup__copy small em {
    font-size: 15px;
  }

  .home-onboarding__example-flow {
    grid-template-columns: 1fr;
  }

  .home-section--attention .home-section__heading--inline-art,
  .home-section--activity .home-section__heading--inline-art {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .home-section--attention .home-section__heading-art--inline,
  .home-section--activity .home-section__heading-art--inline {
    width: 92px;
    height: 76px;
  }

  .home-agreements-cta {
    width: 100%;
    justify-content: center;
  }
}

/* === migrated from polish-alpha15.css === */
/*
 * Alpha 15 — lot correctif visuel et UX transversal.
 * Retours de recette du 9 juillet 2026 : accueil, Boîte à idées,
 * Nos accords et Donner mon avis. Aucune règle métier ni donnée distante.
 */

/* --------------------------------------------------------------------------
   Accueil — utiliser l’espace disponible et clarifier les actions
   -------------------------------------------------------------------------- */
.home-onboarding--compact {
  min-height: 286px;
  grid-template-columns: minmax(410px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(18px, 3vw, 44px);
  padding: 28px 34px 28px 28px;
  align-items: center;
}

.home-onboarding--compact__copy {
  width: 100%;
  max-width: 470px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
}

.home-onboarding--compact .home-brand-lockup,
.home-onboarding--compact .brand-lockup--home {
  width: 100%;
  max-width: none;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__copy {
  min-width: 0;
}

.home-onboarding--compact .home-how-button {
  width: min(470px, 100%);
  min-height: 82px;
  padding: 16px 19px;
  border-color: rgba(105, 201, 195, 0.52);
  box-shadow: 0 10px 26px rgba(64, 58, 92, 0.07);
}

.home-onboarding--compact .home-how-button:hover {
  transform: translateY(-3px);
  border-color: var(--eiv-turquoise);
  box-shadow: 0 16px 34px rgba(64, 58, 92, 0.12);
}

.home-onboarding--compact__visual {
  width: min(100%, 780px);
  max-height: 260px;
  height: auto;
  justify-self: end;
  align-self: center;
  object-fit: contain;
  object-position: right center;
}

.home-onboarding--expanded {
  padding: 34px 38px 32px;
}

.home-onboarding__hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}

.home-onboarding__hero > img {
  width: min(100%, 430px);
  height: 285px;
}

.home-onboarding__slogan {
  max-width: 980px;
  margin: 12px 0 20px !important;
  font-size: clamp(46px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
}

.home-onboarding__slogan span,
.home-onboarding__slogan em {
  display: block;
  font-style: normal;
}

.home-onboarding__slogan span {
  color: var(--eiv-turquoise-deep);
}

.home-onboarding__slogan em {
  margin-top: 6px;
  color: var(--eiv-turquoise-deep);
}

.onboarding-step--turquoise .onboarding-step__icon {
  color: var(--eiv-raspberry) !important;
}

.home-onboarding__lead {
  max-width: 940px !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

/* CTA Boîte à idées dans une vraie zone blanche. */
.home-space-card {
  overflow: hidden;
  padding: 0;
  border-color: rgba(243, 164, 131, 0.48);
  background: #fff;
}

.home-space-card__content {
  padding: 14px 14px 14px;
  background: var(--eiv-cream);
}

.home-space-card__footer {
  margin-top: 12px;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.home-space-card__cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  border-radius: 17px;
}

.home-space-card__cta .icon {
  width: 20px;
  height: 20px;
}

/* CTA Suivi plus lisible que le simple lien texte. */
.home-program-cta,
.home-agreements-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(198, 75, 103, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--eiv-raspberry);
  box-shadow: 0 7px 18px rgba(64, 58, 92, 0.055);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-program-cta .icon,
.home-agreements-cta .icon {
  width: 18px;
  height: 18px;
}

.home-program-cta b,
.home-agreements-cta b {
  font-size: 20px;
  line-height: 1;
}

.home-program-cta:hover,
.home-agreements-cta:hover {
  transform: translateY(-3px);
  border-color: var(--eiv-raspberry);
  background: var(--eiv-raspberry-pale);
  box-shadow: 0 13px 28px rgba(64, 58, 92, 0.12);
}

/* Les micro-chevrons deviennent des actions explicites. */
.agreement-highlight--reference > .home-card-action,
.program-card--reference .program-card__link {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(198, 75, 103, 0.22);
  border-radius: 50%;
  background: #fff;
  color: var(--eiv-raspberry);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(64, 58, 92, 0.06);
}

.agreement-highlight--reference > .home-card-action span,
.program-card--reference .program-card__link span {
  display: none;
}

.agreement-highlight--reference > .home-card-action b,
.program-card--reference .program-card__link b {
  font-size: 24px;
  line-height: 1;
  transform: translateX(1px);
}

.agreement-highlight--reference > .home-card-action:hover,
.program-card--reference .program-card__link:hover {
  border-color: var(--eiv-raspberry);
  background: var(--eiv-raspberry-pale);
  transform: translateY(-2px);
}

.agreement-highlight__description {
  margin-right: 56px;
}

.program-card__meta {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Nos accords — pictogrammes, contraste, catégories et sticky controls
   -------------------------------------------------------------------------- */
.agreements-result-card {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  border-width: 1px;
  box-shadow: 0 7px 20px rgba(64, 58, 92, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.agreements-result-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
  opacity: 0.28;
}

.agreements-result-card:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: rgba(64, 58, 92, 0.22);
  box-shadow: 0 18px 38px rgba(64, 58, 92, 0.14);
  filter: saturate(1.04);
}

.agreements-result-card--love {
  border-color: rgba(40, 127, 134, 0.22);
  background: #e5f7f5;
  color: var(--eiv-turquoise-deep);
}

.agreements-result-card--compromise {
  border-color: rgba(64, 58, 92, 0.18);
  background: #eee9f5;
  color: var(--eiv-plum);
}

.agreements-result-card--hesitation {
  border-color: rgba(123, 118, 140, 0.24);
  background: #fff7ef;
  color: var(--eiv-text-muted);
}

.agreements-result-card--rejected {
  border-color: #cfcbd4;
  background: #e9e8ec;
  color: #625c6b;
}

.agreements-result-card--hesitation .agreements-result-icon {
  color: var(--eiv-text-muted);
}

.agreements-result-card--love .agreements-result-icon__svg {
  width: 30px;
  height: 30px;
}

.agreements-result-card--compromise .agreements-result-icon__svg {
  width: 26px;
  height: 26px;
}

.agreements-result-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(64, 58, 92, 0.07);
  box-shadow: 0 5px 14px rgba(64, 58, 92, 0.06);
}

.agreements-result-card__title {
  color: var(--eiv-plum);
  font-size: 1.05rem;
}

.agreements-result-card__description {
  color: #686277;
  font-size: 0.78rem;
  line-height: 1.48;
}

.agreements-sticky-controls,
.library-sticky-controls {
  position: sticky;
  top: calc(var(--header-height) + 7px);
  z-index: 45;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding: 6px;
  border-color: rgba(105, 201, 195, 0.38);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(64, 58, 92, 0.13);
  backdrop-filter: blur(16px);
}

.agreements-sticky-controls .agreements-search input,
.library-sticky-controls .library-reference-search input {
  min-height: 44px;
}

.agreements-sticky-controls:focus-within,
.library-sticky-controls:focus-within {
  border-color: var(--eiv-turquoise);
  box-shadow: 0 0 0 3px rgba(105, 201, 195, 0.21), 0 15px 34px rgba(64, 58, 92, 0.14);
}

/* Catégories : quatre teintes de la charte, sans couleur parasite. */
.agreements-category-row button,
.library-category-chips button {
  border-color: rgba(64, 58, 92, 0.12);
  color: var(--eiv-plum);
  box-shadow: 0 4px 12px rgba(64, 58, 92, 0.035);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, filter 150ms ease;
}

.agreements-category-row button:hover,
.library-category-chips button:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 58, 92, 0.28);
  box-shadow: 0 9px 18px rgba(64, 58, 92, 0.1);
  filter: saturate(1.06);
}

.category-tone--all { background: #fff; }
.category-tone--coral { background: var(--eiv-coral-pale) !important; }
.category-tone--turquoise { background: var(--eiv-turquoise-pale) !important; }
.category-tone--lilac { background: var(--eiv-lilac-pale) !important; }
.category-tone--raspberry { background: var(--eiv-raspberry-pale) !important; }
.category-tone--neutral { background: #fff !important; }

.agreements-category-row button.is-active,
.library-category-chips button.is-active {
  border-color: var(--eiv-raspberry);
  color: var(--eiv-raspberry);
  box-shadow: 0 0 0 3px rgba(198, 75, 103, 0.13), 0 8px 18px rgba(64, 58, 92, 0.08);
}

.library-category-icon,
.agreements-category-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

/* Le bouton +/- indique maintenant clairement son rôle. */
.agreements-filter-toggle__control,
.library-filter-toggle__control {
  display: inline-flex !important;
  width: auto !important;
  height: 36px !important;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 11px;
  border: 1px solid var(--eiv-turquoise) !important;
  border-radius: 999px !important;
  color: var(--eiv-turquoise-deep);
  background: var(--eiv-turquoise-pale);
}

.agreements-filter-toggle__control i,
.library-filter-toggle__control i {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.agreements-filter-toggle__control b,
.library-filter-toggle__control b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 1;
}

.agreements-filter-toggle:hover,
.library-filter-toggle:hover {
  background: var(--eiv-turquoise-pale);
}

/* Cartes et groupes : davantage de relief au survol. */
.agreements-card,
.agreement-highlight--reference,
.program-card--reference,
.program-next-card,
.home-space-metric,
.idea-card--reference {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.agreements-card:hover,
.agreement-highlight--reference:hover,
.program-card--reference:hover,
.program-next-card:hover,
.home-space-metric:hover,
.idea-card--reference:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 201, 195, 0.62);
  box-shadow: 0 18px 38px rgba(64, 58, 92, 0.14);
  filter: saturate(1.035);
}

.agreements-card {
  border-top-width: 4px;
  background: #fff;
}

.agreements-card--love { border-top-color: var(--eiv-turquoise); }
.agreements-card--compromise { border-top-color: #b6a0cf; }
.agreements-card--hesitation { border-top-color: var(--eiv-coral); }
.agreements-card--rejected { border-top-color: #aaa5af; }

.agreements-card__body {
  background: #fff;
}

.agreements-card__result-copy {
  padding: 10px 12px;
  border-left: 3px solid var(--eiv-turquoise);
  border-radius: 10px;
  background: var(--eiv-turquoise-pale);
  color: var(--eiv-plum);
}

.agreements-card--compromise .agreements-card__result-copy {
  border-left-color: #b6a0cf;
  background: var(--eiv-lilac-pale);
}

.agreements-card--hesitation .agreements-card__result-copy {
  border-left-color: var(--eiv-coral);
  background: var(--eiv-cream);
}

.agreements-card--rejected .agreements-card__result-copy {
  border-left-color: #aaa5af;
  background: #eeedf0;
}

/* --------------------------------------------------------------------------
   Boîte à idées — même langage de recherche/tri que Nos accords
   -------------------------------------------------------------------------- */
.library-reference-controls {
  display: grid;
  gap: 13px;
}

.library-sticky-controls {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(105, 201, 195, 0.38);
  border-radius: 18px;
}

.library-reference-search {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}

.library-reference-search > svg {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: var(--eiv-turquoise-deep);
  pointer-events: none;
}

.library-reference-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--eiv-border);
  border-radius: 15px;
  background: #fff;
  color: var(--eiv-plum);
  font: inherit;
  outline: 0;
}

.library-reference-search input:focus {
  border-color: var(--eiv-turquoise);
}

.library-reference-search button {
  position: absolute;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--eiv-coral-pale);
  color: var(--eiv-text-muted);
  cursor: pointer;
  font-size: 20px;
}

.library-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--eiv-plum);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.library-sort select {
  min-width: 180px;
  min-height: 44px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--eiv-border);
  border-radius: 14px;
  background: #fff;
  color: var(--eiv-plum);
  font: inherit;
  font-weight: 800;
}

.library-advanced {
  overflow: hidden;
  border: 1px solid var(--eiv-border);
  border-radius: 18px;
  background: #fff;
}

.library-filter-toggle {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border: 0;
  background: #fff;
  color: var(--eiv-plum);
  cursor: pointer;
  text-align: left;
}

.library-filter-toggle > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-filter-toggle > span:first-child > b {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--eiv-raspberry-pale);
  color: var(--eiv-raspberry);
  font-size: 12px;
}

.library-filter-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--eiv-border);
  background: var(--eiv-cream);
}

.library-filter-panel label {
  display: grid;
  gap: 5px;
  color: var(--eiv-plum);
  font-size: 12px;
  font-weight: 900;
}

.library-filter-panel select {
  min-height: 44px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--eiv-border);
  border-radius: 13px;
  background: #fff;
  color: var(--eiv-plum);
  font: inherit;
}

.library-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 3px;
}

.library-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.library-category-chips button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(64, 58, 92, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.library-category-section {
  overflow: hidden;
  border: 1px solid var(--eiv-border);
  border-radius: 18px;
  background: #fff;
}

.library-category-section > header {
  border: 0;
  border-bottom: 1px solid rgba(64, 58, 92, 0.08);
  border-radius: 0;
  background: transparent;
}

.library-category-section > header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.library-category-section > .idea-card-grid {
  padding: 12px;
}

.badge--category.category-tone--coral,
.badge--category.category-tone--turquoise,
.badge--category.category-tone--lilac,
.badge--category.category-tone--raspberry {
  color: var(--eiv-plum);
}

.idea-card__agreement {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.idea-card__agreement .icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Donner mon avis — plus de contraste et plus d’informations dès l’ouverture
   -------------------------------------------------------------------------- */
.opinion-dialog {
  width: min(850px, 100%);
  background: var(--eiv-bg);
}

.opinion-page {
  gap: 10px;
  padding-bottom: 14px;
}

.opinion-header-card {
  padding: 13px 16px 12px;
  border-bottom: 1px solid var(--eiv-border);
  background: #fff;
}

.opinion-header-card__top h2 {
  font-size: 27px;
}

.opinion-progress {
  margin-top: 10px;
  padding: 8px 11px;
  background: var(--eiv-lilac-pale);
}

.opinion-queue-navigation {
  margin-top: 8px;
  padding: 6px;
  box-shadow: 0 5px 15px rgba(64, 58, 92, 0.045);
}

.opinion-navigation-help {
  margin-top: 5px;
  font-size: 10px;
}

.opinion-idea-card {
  grid-template-columns: minmax(180px, 29%) minmax(0, 1fr);
  margin: 0 12px;
  border-color: rgba(105, 201, 195, 0.38);
  background: #fff;
  box-shadow: 0 9px 24px rgba(64, 58, 92, 0.08);
}

.opinion-idea-card__media {
  min-height: 215px;
  max-height: 235px;
  padding: 13px;
  border-right-color: rgba(243, 164, 131, 0.42);
  background: var(--eiv-cream);
}

.opinion-idea-card__media img {
  max-height: 205px;
}

.opinion-idea-card__content {
  padding: 15px 17px;
}

.opinion-idea-card h1 {
  margin: 9px 0 6px;
  font-size: 27px;
  line-height: 1.04;
}

.opinion-idea__meta {
  gap: 5px;
  margin-bottom: 8px;
}

.opinion-idea__meta span {
  padding: 5px 8px;
}

.opinion-idea__description {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.opinion-idea__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.opinion-details-toggle,
.opinion-source-button {
  min-height: 44px;
  padding-inline: 10px;
}

.opinion-partner-status {
  margin: 0 12px;
  border-color: rgba(105, 201, 195, 0.42);
  border-left: 5px solid var(--eiv-turquoise);
  background: #fff;
  box-shadow: 0 7px 18px rgba(64, 58, 92, 0.055);
}

.opinion-partner-status.is-revealed {
  background: var(--eiv-turquoise-pale);
}

.opinion-answer-card {
  margin: 0 12px;
  border: 1px solid rgba(243, 164, 131, 0.45);
  background: #fff;
  box-shadow: 0 8px 22px rgba(64, 58, 92, 0.065);
}

.opinion-answer-card > div:first-child {
  margin: -17px -17px 14px;
  padding: 15px 17px 12px;
  border-bottom: 1px solid rgba(243, 164, 131, 0.38);
  border-radius: 20px 20px 0 0;
  background: var(--eiv-cream);
}

.opinion-choice:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 14px 28px rgba(64, 58, 92, 0.13);
}


/* --------------------------------------------------------------------------
   Logo — cercles plus rapprochés sur l’ensemble de l’interface
   -------------------------------------------------------------------------- */
.brand-lockup__mark {
  width: 54px;
  flex-basis: 54px;
}

.brand-lockup__circle--turquoise {
  left: 16px;
  right: auto;
}

.brand-lockup__mark b {
  left: 18px;
}

.brand-lockup--home .brand-lockup__mark {
  width: 60px;
  flex-basis: 60px;
}

.brand-lockup--home .brand-lockup__circle--turquoise {
  left: 18px;
  right: auto;
}

.brand-lockup--home .brand-lockup__mark b {
  left: 22px;
}

.brand-lockup--auth .brand-lockup__mark {
  width: 64px;
  flex-basis: 64px;
}

.brand-lockup--auth .brand-lockup__circle--turquoise {
  left: 20px;
  right: auto;
}

.brand-lockup--auth .brand-lockup__mark b {
  left: 24px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__mark {
  width: 72px;
  flex-basis: 72px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__circle--turquoise {
  left: 21px;
  right: auto;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__mark b {
  left: 27px;
}

.onboarding-brand__mark {
  width: 44px;
}

.onboarding-brand__mark i:nth-child(2) {
  left: 14px;
  right: auto;
}

.onboarding-brand__mark b {
  left: 14px;
}

/* Accessibilité : animation réduite si demandée par le système. */
@media (prefers-reduced-motion: reduce) {
  .home-how-button,
  .home-program-cta,
  .home-agreements-cta,
  .agreements-result-card,
  .agreements-card,
  .agreement-highlight--reference,
  .program-card--reference,
  .program-next-card,
  .home-space-metric,
  .idea-card--reference,
  .opinion-choice,
  .agreements-category-row button,
  .library-category-chips button {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .home-onboarding--compact {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    gap: 20px;
    padding-inline: 24px;
  }

  .home-onboarding__hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
  }

  .home-onboarding__slogan {
    font-size: clamp(42px, 5vw, 58px) !important;
  }
}

@media (max-width: 900px) {
  .home-onboarding--compact {
    grid-template-columns: 1fr;
  }

  .home-onboarding--compact__visual {
    justify-self: center;
    max-height: 220px;
  }

  .home-onboarding__hero {
    grid-template-columns: 1fr;
  }

  .home-onboarding__hero > img {
    justify-self: center;
  }

  .agreements-sticky-controls,
  .library-sticky-controls {
    top: calc(var(--header-height) + 5px);
  }

  .opinion-idea-card {
    grid-template-columns: 1fr;
  }

  .opinion-idea-card__media {
    min-height: 180px;
    max-height: 215px;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 164, 131, 0.42);
  }

  .opinion-idea-card__media img {
    max-height: 190px;
  }
}

@media (max-width: 720px) {
  .home-onboarding--compact {
    padding: 22px 18px;
  }

  .home-onboarding--expanded {
    padding: 22px 17px;
  }

  .home-onboarding__slogan {
    font-size: 39px !important;
  }

  .agreements-sticky-controls,
  .library-sticky-controls {
    grid-template-columns: 1fr;
  }

  .agreements-sort,
  .library-sort {
    width: 100%;
  }

  .agreements-sort select,
  .library-sort select {
    width: 100%;
    min-width: 0;
  }

  .agreements-filter-toggle__control i,
  .library-filter-toggle__control i {
    display: none;
  }

  .library-filter-panel.is-open {
    grid-template-columns: 1fr;
  }

  .agreement-highlight--reference > .home-card-action span,
  .program-card--reference .program-card__link span {
    display: none;
  }

  .agreement-highlight--reference > .home-card-action,
  .program-card--reference .program-card__link {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .agreement-highlight__description {
    margin-right: 38px;
  }

  .opinion-idea__actions {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Alpha 15 — correctifs visuels complémentaires validés pendant la migration
   -------------------------------------------------------------------------- */

/* Signature officielle : deux couleurs distinctes, partout. */
.brand-lockup__copy small span {
  color: #403A5C !important;
}

.brand-lockup__copy small em {
  color: #287F86 !important;
}

.home-onboarding__slogan span {
  color: #403A5C !important;
}

.home-onboarding__slogan em {
  color: #287F86 !important;
}

/* Le visuel replié utilise le panorama fourni, détouré sur fond transparent. */
.home-onboarding--compact__visual {
  width: min(100%, 640px);
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: right center;
  filter: none;
}

/* Logo : recentrer le disque blanc dans le cercle turquoise pour conserver
   un liseré turquoise visible et régulier tout autour. */
.brand-lockup__mark b {
  left: 23px;
}

.brand-lockup--home .brand-lockup__mark b {
  left: 26px;
}

.brand-lockup--auth .brand-lockup__mark b {
  left: 28px;
}

.home-onboarding--compact .brand-lockup--home .brand-lockup__mark b {
  left: 31px;
}

.onboarding-brand__mark b {
  left: 22px;
}

/* Le CTA de la carte « Et la prochaine ? » reprend le même bouton rond
   que la carte programmée située à côté. */
.program-next-card b {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(198, 75, 103, 0.22);
  border-radius: 50%;
  background: #fff;
  color: var(--eiv-raspberry);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(64, 58, 92, 0.06);
  transform: translateX(1px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.program-next-card:hover b {
  border-color: var(--eiv-raspberry);
  background: var(--eiv-raspberry-pale);
  box-shadow: 0 9px 20px rgba(64, 58, 92, 0.1);
  transform: translateX(3px);
}

/* Les deux cœurs doivent rester immédiatement distinguables. */
.agreement-pill .icon,
.agreement-highlight__badge .icon,
.home-agreements-cta .icon,
.agreements-result-card--love .agreements-result-icon__svg,
.agreements-card__result--love .icon {
  overflow: visible;
}

@media (max-width: 980px) {
  .home-onboarding--compact__visual {
    width: min(100%, 560px);
  }
}

@media (max-width: 720px) {
  .home-onboarding--compact__visual {
    width: min(100%, 520px);
  }
}
