.werun-account {
  --werun-account-blue: #13aff0;
  --werun-account-deep: #071921;
  --werun-account-text: #263846;
  --werun-account-muted: #64727d;
  --werun-account-line: rgba(19, 175, 240, 0.18);
  --werun-account-soft: #f4f9fc;
  padding: clamp(32px, 5vw, 72px) 18px;
  color: var(--werun-account-text);
}

.werun-account * {
  box-sizing: border-box;
}

.werun-account__shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.werun-account__header {
  margin-bottom: 28px;
}

.werun-account__kicker {
  display: inline-flex;
  color: #087fae;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.werun-account__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--werun-account-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.werun-account__header h1 {
  margin: 6px 0 4px;
  color: #434445;
  font-family: Raleway, sans-serif;
  font-size: clamp(40px, 3.45vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.034em;
}

.werun-account__header p {
  max-width: 760px;
  margin: 0;
  color: #6c7882;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.38;
}

.werun-account__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.werun-account__grid--auth {
  align-items: stretch;
}

.werun-account__migration-notice {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 15px;
  margin: 0 0 22px;
  padding: 17px 20px;
  border: 1px solid rgba(19, 175, 240, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 249, 252, 0.98) 0%, rgba(238, 250, 255, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(7, 25, 33, 0.06);
}

.werun-account__migration-marker {
  width: 3px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--werun-account-blue);
}

.werun-account__migration-content {
  min-width: 0;
}

.werun-account__migration-content h2 {
  margin: 0 0 6px;
  color: #087fae;
  font-family: Raleway, sans-serif;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}

.werun-account__migration-content p {
  margin: 0;
  color: #536772;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.werun-account__toolbar,
.werun-account-card {
  border: 1px solid var(--werun-account-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(7, 25, 33, 0.08);
}

.werun-account__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
}

.werun-account__toolbar strong {
  display: block;
  color: var(--werun-account-deep);
  font-size: 1.1rem;
}

.werun-account-logout {
  margin: 0;
}

.werun-account-logout .werun-account-button {
  white-space: nowrap;
}

/* Correctif 0.5.3 : le bouton de déconnexion doit rester lisible quand il est rendu en bouton plein. */
.werun-account-logout .werun-account-button,
.werun-account-logout .werun-account-button:hover,
.werun-account-logout .werun-account-button:focus {
  color: #fff !important;
}

.werun-account-card {
  padding: clamp(22px, 3vw, 32px);
}

.werun-account-card--accent {
  background: linear-gradient(135deg, #ffffff 0%, #eefaff 100%);
}

/* Carte Suivre WeRun — intégrée à la trame native de Mon compte. */
.werun-account-card--follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 0;
}

.werun-account-card__follow-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.werun-account-card__google-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(7, 25, 33, 0.1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 25, 33, 0.07);
}

.werun-account-card__google-logo img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.werun-account-card__follow-copy {
  min-width: 0;
}

.werun-account-card--follow p {
  max-width: 640px;
  margin-bottom: 0;
}

.werun-account-button--google-source {
  flex: 0 0 auto;
  white-space: nowrap;
}

.werun-account-card--favorites,
.werun-account-card--danger {
  margin-top: 0;
}

.werun-account-card--danger {
  margin-top: 22px;
  border-color: rgba(210, 59, 48, 0.2);
}

.werun-account-card h2 {
  margin: 0 0 8px;
  color: var(--werun-account-deep);
  font-size: 1.45rem;
  line-height: 1.2;
}

.werun-account-card p {
  margin: 0 0 20px;
  color: var(--werun-account-muted);
  line-height: 1.65;
}

.werun-account-form {
  display: grid;
  gap: 16px;
}

.werun-account-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.werun-account-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.werun-account-form label > span {
  color: #5c6973;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.werun-account-form input[type="text"],
.werun-account-form input[type="email"],
.werun-account-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 25, 33, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--werun-account-text);
  font: inherit;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.werun-account-form input:focus {
  border-color: rgba(19, 175, 240, 0.55);
  box-shadow: 0 0 0 4px rgba(19, 175, 240, 0.12);
}

.werun-account-form__check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
}

.werun-account-form__check input {
  margin-top: 4px;
}

.werun-account-form__check span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.werun-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  border: 1px solid rgba(19, 175, 240, 0.35);
  border-radius: 999px;
  background: var(--werun-account-blue);
  color: #fff !important;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  padding: 0 20px;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.werun-account-button:hover,
.werun-account-button:focus {
  background: #0f9bd5;
  box-shadow: 0 12px 26px rgba(19, 175, 240, 0.22);
  color: #fff !important;
  transform: translateY(-1px);
}

.werun-account-button--ghost {
  background: #fff;
  color: var(--werun-account-blue) !important;
}

.werun-account-button--ghost:hover,
.werun-account-button--ghost:focus {
  background: #eefaff;
  color: var(--werun-account-blue) !important;
}

.werun-account-button--danger {
  border-color: rgba(210, 59, 48, 0.35);
  background: #d23b30;
}

.werun-account-button--danger:hover,
.werun-account-button--danger:focus {
  background: #b92d24;
  box-shadow: 0 12px 26px rgba(210, 59, 48, 0.22);
}

.werun-account-link {
  width: fit-content;
  color: var(--werun-account-blue);
  font-weight: 800;
  text-decoration: none;
}

.werun-account-link:hover,
.werun-account-link:focus {
  text-decoration: underline;
}

.werun-account-notice {
  margin: 0 0 22px;
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.werun-account-notice--success {
  border: 1px solid rgba(35, 155, 86, 0.24);
  background: #ebfff4;
  color: #12633a;
}

.werun-account-notice--error {
  border: 1px solid rgba(210, 59, 48, 0.24);
  background: #fff1ef;
  color: #9d2a22;
}

.werun-account-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(19, 175, 240, 0.34);
  border-radius: 20px;
  background: var(--werun-account-soft);
  padding: 28px;
  text-align: center;
}

.werun-account-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--werun-account-deep);
  font-size: 1.08rem;
}

.werun-account-empty p {
  max-width: 420px;
  margin: 0;
}

@media (max-width: 780px) {
  .werun-account {
    padding-inline: 14px;
  }

  .werun-account__header h1 {
    font-size: clamp(38px, 13vw, 50px);
  }

  .werun-account__migration-notice {
    grid-template-columns: 3px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px 14px;
    border-radius: 16px;
  }

  .werun-account__migration-content h2 {
    font-size: 1rem;
  }

  .werun-account__migration-content p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .werun-account__grid,
  .werun-account-form__row {
    grid-template-columns: 1fr;
  }

  .werun-account__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .werun-account-card--follow {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .werun-account-card__follow-main {
    align-items: flex-start;
    gap: 13px;
  }

  .werun-account-card__google-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .werun-account-card__google-logo img {
    width: 28px;
    height: 28px;
  }

  .werun-account-button {
    width: 100%;
  }
}


/* Mode sombre — espace Mon compte
   Le mode clair reste l’affichage par défaut ; ces règles ne s’appliquent
   qu’après activation explicite du mode sombre. */
html.werun-theme-dark .werun-account {
  --werun-account-deep: #f3f8fb;
  --werun-account-text: #d9e6ec;
  --werun-account-muted: #9fb0ba;
  --werun-account-line: rgba(91, 194, 235, 0.18);
  --werun-account-soft: rgba(18, 31, 38, 0.92);
  color: var(--werun-account-text);
}

html.werun-theme-dark .werun-account__header h1 {
  color: #f3f8fb;
}

html.werun-theme-dark .werun-account__header p,
html.werun-theme-dark .werun-account-card p {
  color: var(--werun-account-muted);
}

html.werun-theme-dark .werun-account__migration-notice {
  border-color: rgba(91, 194, 235, 0.2);
  background: linear-gradient(135deg, rgba(18, 29, 35, 0.98) 0%, rgba(13, 31, 40, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

html.werun-theme-dark .werun-account__migration-content h2 {
  color: #63cef8;
}

html.werun-theme-dark .werun-account__migration-content p {
  color: #c8d7de;
}

html.werun-theme-dark .werun-account__toolbar,
html.werun-theme-dark .werun-account-card {
  border-color: rgba(91, 194, 235, 0.18);
  background: rgba(18, 29, 35, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

html.werun-theme-dark .werun-account-card--accent {
  background: linear-gradient(135deg, rgba(18, 29, 35, 0.98) 0%, rgba(13, 31, 40, 0.98) 100%);
}

html.werun-theme-dark .werun-account-card__google-logo {
  border-color: rgba(255, 255, 255, 0.12);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

html.werun-theme-dark .werun-account-card--danger {
  border-color: rgba(210, 59, 48, 0.28);
  background: rgba(25, 25, 28, 0.96);
}

html.werun-theme-dark .werun-account__toolbar strong,
html.werun-theme-dark .werun-account-card h2,
html.werun-theme-dark .werun-account-empty strong {
  color: #f3f8fb;
}

html.werun-theme-dark .werun-account-form label > span {
  color: #9fb0ba;
}

html.werun-theme-dark .werun-account-form input[type="text"],
html.werun-theme-dark .werun-account-form input[type="email"],
html.werun-theme-dark .werun-account-form input[type="password"] {
  border-color: rgba(91, 194, 235, 0.2) !important;
  background: rgba(8, 21, 27, 0.92) !important;
  color: #edf6fa !important;
}

html.werun-theme-dark .werun-account-form input[type="checkbox"] {
  accent-color: var(--werun-account-blue);
}

html.werun-theme-dark .werun-account-button--ghost {
  border-color: rgba(91, 194, 235, 0.28);
  background: rgba(13, 31, 40, 0.92);
  color: #5bc2eb !important;
}

html.werun-theme-dark .werun-account-button--ghost:hover,
html.werun-theme-dark .werun-account-button--ghost:focus {
  background: rgba(19, 175, 240, 0.12);
  color: #7bd6f6 !important;
}

html.werun-theme-dark .werun-account-empty {
  border-color: rgba(91, 194, 235, 0.28);
  background: rgba(8, 21, 27, 0.46);
}

html.werun-theme-dark .werun-account-notice--success {
  border-color: rgba(35, 155, 86, 0.34);
  background: rgba(16, 80, 48, 0.22);
  color: #a5f0c6;
}

html.werun-theme-dark .werun-account-notice--error {
  border-color: rgba(210, 59, 48, 0.34);
  background: rgba(110, 35, 30, 0.24);
  color: #ffc2bc;
}

/* Favoris événement — WeRun Core 0.5.5 */
.werun-account-favorites {
  display: grid;
  gap: 12px;
}

.werun-account-favorite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(19, 175, 240, 0.15);
  border-radius: 18px;
  background: rgba(244, 249, 252, 0.82);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.werun-account-favorite.is-removing {
  opacity: 0;
  transform: translateY(-4px);
}

.werun-account-favorite__body {
  min-width: 0;
}

.werun-account-favorite h3 {
  margin: 0 0 6px;
  color: var(--werun-account-deep);
  font-size: 1rem;
  line-height: 1.25;
}

.werun-account-favorite h3 a {
  color: inherit;
  text-decoration: none;
}

.werun-account-favorite h3 a:hover,
.werun-account-favorite h3 a:focus {
  color: var(--werun-account-blue);
  text-decoration: none;
}

.werun-account-favorite p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--werun-account-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.werun-account-favorite__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.werun-account-button--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.werun-account-favorite__remove {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(210, 59, 48, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b43730;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.werun-account-favorite__remove:hover,
.werun-account-favorite__remove:focus {
  border-color: rgba(210, 59, 48, 0.36);
  background: #fff4f3;
  color: #992a24;
  transform: translateY(-1px);
}

[data-werun-favorite-button].is-loading {
  opacity: 0.72;
  cursor: wait;
}

[data-werun-favorite-button][data-werun-favorite-message]::before {
  content: attr(data-werun-favorite-message);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: min(280px, 72vw);
  padding: 8px 10px;
  border-radius: 10px;
  background: #263846;
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 25, 33, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
}

[data-werun-favorite-button].has-error[data-werun-favorite-message]::before {
  background: #9d2f29;
}

html.werun-theme-dark .werun-account-favorite {
  border-color: rgba(91, 194, 235, 0.18);
  background: rgba(8, 21, 27, 0.42);
}

html.werun-theme-dark .werun-account-favorite h3 {
  color: #f3f8fb;
}

html.werun-theme-dark .werun-account-favorite__remove {
  border-color: rgba(255, 120, 110, 0.24);
  background: rgba(60, 30, 30, 0.46);
  color: #ffb3ad;
}

html.werun-theme-dark .werun-account-favorite__remove:hover,
html.werun-theme-dark .werun-account-favorite__remove:focus {
  border-color: rgba(255, 120, 110, 0.42);
  background: rgba(86, 36, 34, 0.64);
  color: #ffd2ce;
}

html.werun-theme-dark [data-werun-favorite-button][data-werun-favorite-message]::before {
  background: #203039;
  color: #eaf3f6;
  border: 1px solid rgba(91, 194, 235, 0.15);
}

html.werun-theme-dark [data-werun-favorite-button].has-error[data-werun-favorite-message]::before {
  background: #5c211f;
  border-color: rgba(255, 120, 110, 0.24);
}

@media (max-width: 680px) {
  .werun-account-favorite {
    grid-template-columns: 1fr;
  }

  .werun-account-favorite__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .werun-account-favorite__remove,
  .werun-account-button--small {
    width: 100%;
  }
}

/* Favoris événement — design premium WeRun Core 0.5.7 */
.werun-account-card--favorites {
  overflow: hidden;
}

.werun-account-card--favorites .werun-account-favorites {
  gap: 16px;
}

.werun-account-card--favorites .werun-account-favorite {
  position: relative;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  min-height: 136px;
  padding: 12px;
  border-color: rgba(19, 175, 240, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 175, 240, 0.12) 0%, rgba(19, 175, 240, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 254, 0.96) 100%);
  box-shadow:
    0 14px 32px rgba(7, 25, 33, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.werun-account-card--favorites .werun-account-favorite:hover,
.werun-account-card--favorites .werun-account-favorite:focus-within {
  border-color: rgba(19, 175, 240, 0.32);
  box-shadow:
    0 18px 40px rgba(7, 25, 33, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.werun-account-favorite__media {
  position: relative;
  display: block;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(19, 175, 240, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 20%, rgba(19, 175, 240, 0.2) 0%, rgba(19, 175, 240, 0) 44%),
    linear-gradient(135deg, #eefaff 0%, #ffffff 100%);
  text-decoration: none !important;
}

.werun-account-favorite__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.22s ease;
}

.werun-account-favorite:hover .werun-account-favorite__media img,
.werun-account-favorite:focus-within .werun-account-favorite__media img {
  transform: scale(1.055);
}

.werun-account-favorite__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 33, 0) 45%, rgba(7, 25, 33, 0.14) 100%);
  pointer-events: none;
}

.werun-account-favorite__media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 112px;
  color: var(--werun-account-blue);
}

.werun-account-favorite__media-fallback svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.werun-account-card--favorites .werun-account-favorite__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}

.werun-account-favorite__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  margin-bottom: 9px;
  padding: 0 9px;
  border: 1px solid rgba(19, 175, 240, 0.18);
  border-radius: 999px;
  background: rgba(232, 248, 254, 0.92);
  color: #087fae;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.werun-account-card--favorites .werun-account-favorite h3 {
  margin-bottom: 8px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.16;
}

.werun-account-favorite__meta,
.werun-account-favorite__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--werun-account-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.werun-account-favorite__summary {
  margin-top: 7px !important;
  color: #3f5663 !important;
  font-weight: 800;
}

.werun-account-card--favorites .werun-account-favorite__actions {
  align-self: center;
  flex-direction: column;
  justify-content: center;
  min-width: 118px;
}

.werun-account-card--favorites .werun-account-button--small {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  box-shadow: 0 10px 22px rgba(19, 175, 240, 0.16);
  font-size: 0.84rem;
}

.werun-account-card--favorites .werun-account-favorite__remove {
  width: 100%;
  min-height: 36px;
  background: rgba(255, 255, 255, 0.78);
}

html.werun-theme-dark .werun-account-card--favorites .werun-account-favorite {
  border-color: rgba(91, 194, 235, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 194, 235, 0.12) 0%, rgba(91, 194, 235, 0) 44%),
    linear-gradient(135deg, rgba(18, 31, 38, 0.98) 0%, rgba(11, 24, 31, 0.96) 100%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(145, 220, 248, 0.05);
}

html.werun-theme-dark .werun-account-card--favorites .werun-account-favorite:hover,
html.werun-theme-dark .werun-account-card--favorites .werun-account-favorite:focus-within {
  border-color: rgba(91, 194, 235, 0.36);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(145, 220, 248, 0.07);
}

html.werun-theme-dark .werun-account-favorite__media {
  border-color: rgba(91, 194, 235, 0.18);
  background:
    radial-gradient(circle at 25% 20%, rgba(91, 194, 235, 0.18) 0%, rgba(91, 194, 235, 0) 44%),
    linear-gradient(135deg, rgba(18, 42, 52, 0.96) 0%, rgba(9, 21, 28, 0.96) 100%);
}

html.werun-theme-dark .werun-account-favorite__media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.28) 100%);
}

html.werun-theme-dark .werun-account-favorite__badge {
  border-color: rgba(91, 194, 235, 0.22);
  background: rgba(19, 175, 240, 0.1);
  color: #7bd6f6;
}

html.werun-theme-dark .werun-account-favorite__summary {
  color: #c0d1d9 !important;
}

html.werun-theme-dark .werun-account-card--favorites .werun-account-favorite__remove {
  background: rgba(60, 30, 30, 0.46);
}

@media (max-width: 920px) {
  .werun-account-card--favorites .werun-account-favorite {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .werun-account-card--favorites .werun-account-favorite__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    min-width: 0;
  }

  .werun-account-card--favorites .werun-account-button--small,
  .werun-account-card--favorites .werun-account-favorite__remove {
    width: auto;
  }
}

@media (max-width: 560px) {
  .werun-account-card--favorites .werun-account-favorite {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .werun-account-favorite__media,
  .werun-account-favorite__media img,
  .werun-account-favorite__media-fallback {
    min-height: 168px;
  }

  .werun-account-card--favorites .werun-account-favorite__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .werun-account-card--favorites .werun-account-button--small,
  .werun-account-card--favorites .werun-account-favorite__remove {
    width: 100%;
  }
}

/* WeRun Core 0.5.8 — ordre mobile Mon compte */
@media (max-width: 767px) {
  .werun-account__grid:not(.werun-account__grid--auth) {
    display: flex;
    flex-direction: column;
  }

  .werun-account-card--favorites {
    order: -1;
  }
}

/* WeRun Core 0.5.23 — Mon compte coureur : favoris en premier, grille et planning */
.werun-account-card--primary {
  margin-bottom: 22px;
}

.werun-account-card--profile,
.werun-account-card--password {
  margin-top: 22px;
}

.werun-account-favorites-wrap {
  display: grid;
  gap: 24px;
}

.werun-account-card--favorites .werun-account-favorites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.werun-account-card--favorites .werun-account-favorite {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
}

.werun-account-card--favorites .werun-account-favorite__media {
  min-height: 164px;
  border: 0;
  border-radius: 0;
}

.werun-account-card--favorites .werun-account-favorite__media img,
.werun-account-card--favorites .werun-account-favorite__media-fallback {
  min-height: 164px;
}

.werun-account-card--favorites .werun-account-favorite__body {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 18px 18px 8px;
}

.werun-account-card--favorites .werun-account-favorite h3 {
  font-size: 1.08rem;
  line-height: 1.18;
}

.werun-account-card--favorites .werun-account-favorite__actions {
  display: grid;
  grid-template-columns: 1fr;
  align-self: stretch;
  justify-content: stretch;
  min-width: 0;
  padding: 0 18px 18px;
}

.werun-account-card--favorites .werun-account-button--small,
.werun-account-card--favorites .werun-account-favorite__remove {
  width: 100%;
}

.werun-account-favorites[data-collapsed="true"] .werun-account-favorite:nth-child(n+7) {
  display: none;
}

.werun-account-favorites__more {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

.werun-account-favorites__toggle[hidden] {
  display: none !important;
}

.werun-account-timeline {
  position: relative;
  border: 1px solid rgba(19, 175, 240, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(19, 175, 240, 0.09) 0%, rgba(19, 175, 240, 0) 42%),
    rgba(244, 249, 252, 0.72);
  padding: clamp(20px, 3vw, 28px);
}

.werun-account-timeline__head {
  margin-bottom: 18px;
}

.werun-account-timeline__head h3 {
  margin: 0 0 6px;
  color: var(--werun-account-deep);
  font-size: 1.22rem;
  line-height: 1.2;
}

.werun-account-timeline__head p {
  margin: 0;
}

.werun-account-timeline__list {
  display: grid;
  gap: 18px;
}

.werun-account-timeline__group {
  display: grid;
  grid-template-columns: minmax(112px, 0.22fr) minmax(0, 1fr);
  gap: 18px;
}

.werun-account-timeline__group h4 {
  margin: 3px 0 0;
  color: #087fae;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.werun-account-timeline__group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.werun-account-timeline__group li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.werun-account-timeline__group li::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: -14px;
  left: 6px;
  width: 1px;
  background: rgba(19, 175, 240, 0.22);
}

.werun-account-timeline__group li:last-child::before {
  display: none;
}

.werun-account-timeline__dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  border: 3px solid #dff6ff;
  border-radius: 50%;
  background: var(--werun-account-blue);
  box-shadow: 0 0 0 3px rgba(19, 175, 240, 0.12);
}

.werun-account-timeline__group a {
  color: var(--werun-account-deep);
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.werun-account-timeline__group a:hover,
.werun-account-timeline__group a:focus {
  color: var(--werun-account-blue);
}

.werun-account-timeline__group p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 0;
  color: var(--werun-account-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

html.werun-theme-dark .werun-account-timeline {
  border-color: rgba(91, 194, 235, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 194, 235, 0.1) 0%, rgba(91, 194, 235, 0) 44%),
    rgba(8, 21, 27, 0.44);
}

html.werun-theme-dark .werun-account-timeline__head h3,
html.werun-theme-dark .werun-account-timeline__group a {
  color: #f3f8fb;
}

html.werun-theme-dark .werun-account-timeline__group h4,
html.werun-theme-dark .werun-account-timeline__group a:hover,
html.werun-theme-dark .werun-account-timeline__group a:focus {
  color: #7bd6f6;
}

html.werun-theme-dark .werun-account-timeline__dot {
  border-color: rgba(13, 31, 40, 0.95);
  background: #5bc2eb;
  box-shadow: 0 0 0 3px rgba(91, 194, 235, 0.13);
}

html.werun-theme-dark .werun-account-timeline__group li::before {
  background: rgba(91, 194, 235, 0.22);
}

@media (max-width: 1024px) {
  .werun-account-card--favorites .werun-account-favorites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .werun-account-favorites[data-collapsed="true"] .werun-account-favorite:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 680px) {
  .werun-account-card--favorites .werun-account-favorites {
    grid-template-columns: 1fr;
  }

  .werun-account-favorites[data-collapsed="true"] .werun-account-favorite:nth-child(n+4) {
    display: none;
  }

  .werun-account-timeline__group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .werun-account-timeline__group h4 {
    margin-top: 0;
  }
}

/* WeRun Core 0.5.24 — cartes favoris : visuels carrés et contenus */
.werun-account-card--favorites .werun-account-favorite__media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(19, 175, 240, 0.12) 0%, rgba(19, 175, 240, 0) 44%),
    linear-gradient(135deg, #f8fcfe 0%, #ffffff 100%);
}

.werun-account-card--favorites .werun-account-favorite__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.werun-account-card--favorites .werun-account-favorite__media-fallback {
  height: 100%;
  min-height: 0;
}

html.werun-theme-dark .werun-account-card--favorites .werun-account-favorite__media {
  background:
    radial-gradient(circle at 25% 20%, rgba(91, 194, 235, 0.14) 0%, rgba(91, 194, 235, 0) 44%),
    linear-gradient(135deg, rgba(17, 35, 44, 0.96) 0%, rgba(9, 21, 28, 0.98) 100%);
}


/* WeRun Core 0.5.25 — cartes favoris : toutes les disciplines en pills */
.werun-account-favorite__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.werun-account-favorite__badges .werun-account-favorite__badge {
  margin-bottom: 0;
}
