/* /public_html/assets/css/profile/my-profile.base.css
   Mon profil — socle commun
*/

body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .panel-header-common {
  display: none !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-loader-host[hidden],
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-panel-shell.is-hidden-during-load {
  display: none !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-loader-host {
  width: 100%;
  min-height: min(42vh, 24rem);
  display: grid;
  place-items: start center;
  padding-top: clamp(1.4rem, 5vh, 3.4rem);
  box-sizing: border-box;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-panel-shell {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

body.is-dashboard-shell-visible:has(#my-profile-content) #my-profile-content {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.my-profile-panel,
.my-profile-edit {
  width: 100%;
  max-width: min(64rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.my-profile-panel .teacher-view-details {
  width: 100%;
}

.my-profile-panel .teacher-view-main {
  min-width: 0;
}

.my-profile-panel .guardian-student-title,
.my-profile-panel .guardian-student-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-profile-edit .guardian-student-edit-title {
  margin-top: 0;
}

.my-profile-edit .form-vertical {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.my-profile-edit .teacher-avatar-upload {
  align-items: center;
  flex-wrap: wrap;
}

.my-profile-edit .teacher-avatar-upload-controls {
  gap: .5rem;
}

.my-profile-edit .my-profile-avatar-btn {
  align-self: flex-start;
}

.my-profile-panel .teacher-view-avatar,
.my-profile-edit .teacher-avatar-preview {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.72), transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #38bdf8) 18%, #e5e7eb 82%), color-mix(in srgb, var(--theme-primary, #38bdf8) 22%, #cbd5f5 78%));
}

.my-profile-panel .teacher-avatar-fallback,
.my-profile-edit .teacher-avatar-fallback {
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 42%, #ffffff 58%);
  text-shadow: 0 1px 2px rgba(15, 23, 42, .18);
}

html[data-theme="dark"] .my-profile-panel .teacher-view-avatar,
html[data-theme="dark"] .my-profile-edit .teacher-avatar-preview {
  background:
    radial-gradient(circle at 22% 0%, rgba(255,255,255,.10), transparent 44%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #38bdf8) 14%, #111827 86%), color-mix(in srgb, var(--theme-primary, #38bdf8) 12%, #020617 88%));
  border-color: color-mix(in srgb, var(--theme-primary, #38bdf8) 24%, rgba(148, 163, 184, .42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 34px rgba(0,0,0,.28);
}

html[data-theme="dark"] .my-profile-panel .teacher-avatar-fallback,
html[data-theme="dark"] .my-profile-edit .teacher-avatar-fallback {
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 30%, #e5e7eb 70%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .36);
}

.my-profile-membership-block {
  padding: 0;
  overflow: hidden;
}

.my-profile-membership-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-primary) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--color-surface-soft) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 78%, transparent);
  border-radius: inherit;
  box-shadow: var(--shadow-subtle);
}

html[data-theme="dark"] .my-profile-membership-shell {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-primary) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--color-surface) 88%, #020617 12%);
  border-color: color-mix(in srgb, var(--color-border-subtle) 92%, transparent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .30);
}

.my-profile-membership-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.my-profile-membership-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.my-profile-membership-heading h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.my-profile-membership-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.45;
  font-size: .94rem;
}

.my-profile-membership-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.my-profile-membership-badge--unpaid {
  color: #ef4444;
  background: rgba(239, 68, 68, .14);
}

.my-profile-membership-badge--pending,
.my-profile-membership-badge--partial {
  color: #f59e0b;
  background: rgba(245, 158, 11, .16);
}

.my-profile-membership-badge--paid,
.my-profile-membership-badge--covered {
  color: #22c55e;
  background: rgba(34, 197, 94, .15);
}

.my-profile-membership-badge--waived {
  color: #a855f7;
  background: rgba(168, 85, 247, .16);
}

.my-profile-membership-badge--unknown {
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  border-color: color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  box-shadow: none;
}

.my-profile-membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.my-profile-membership-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  min-width: 0;
}

html[data-theme="dark"] .my-profile-membership-stat {
  background: color-mix(in srgb, var(--color-surface) 84%, #020617 16%);
  border-color: color-mix(in srgb, var(--color-border-subtle) 90%, transparent);
}

.my-profile-membership-stat__label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
}

.my-profile-membership-stat__value {
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-profile-membership-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.my-profile-membership-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 66%, transparent);
  background: color-mix(in srgb, var(--color-surface) 68%, transparent);
  min-width: 0;
}

html[data-theme="dark"] .my-profile-membership-meta__item {
  background: color-mix(in srgb, var(--color-surface) 82%, #020617 18%);
}

.my-profile-membership-meta__label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
}

.my-profile-membership-meta__value {
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.my-profile-membership-inline-hint {
  margin: -2px 0 0;
  color: var(--color-text-muted);
}

.my-profile-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.my-profile-membership-actions .ui-btn {
  min-width: 0;
}

.my-profile-membership-actions .ui-btn[data-membership-action="pay"] {
  margin-right: auto;
}

.my-profile-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

    .my-profile-checkout-dialog {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.my-profile-checkout-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.90);
}

.my-profile-checkout-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.84);
  line-height: 1.5;
  font-size: .96rem;
}

.my-profile-checkout-state-subtitle {
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.45;
  font-size: .93rem;
}

.my-profile-checkout-note {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: .92rem;
  line-height: 1.5;
}

html[data-theme="dark"] .my-profile-checkout-dialog {
  border-color: color-mix(in srgb, var(--color-border-subtle) 90%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--theme-primary) 16%, transparent), transparent 40%),
    color-mix(in srgb, var(--color-surface) 88%, #020617 12%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .my-profile-checkout-card {
  border-color: color-mix(in srgb, var(--color-border-subtle) 90%, transparent);
  background: color-mix(in srgb, var(--color-surface) 84%, #020617 16%);
}

html[data-theme="dark"] .my-profile-checkout-title,
html[data-theme="dark"] .my-profile-checkout-state-title {
  color: var(--color-text);
}

html[data-theme="dark"] .my-profile-checkout-subtitle,
html[data-theme="dark"] .my-profile-checkout-state-subtitle,
html[data-theme="dark"] .my-profile-checkout-note {
  color: var(--color-text-muted);
}

html[data-theme="dark"] .my-profile-checkout-progress-step {
  background: color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
}

.my-profile-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.my-profile-checkout-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.my-profile-checkout-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-text);
}



.my-profile-checkout-close {
  flex-shrink: 0;
}



.my-profile-checkout-state {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.my-profile-checkout-spinner {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.my-profile-checkout-spinner::before,
.my-profile-checkout-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.my-profile-checkout-spinner::before {
  border: 3px solid color-mix(in srgb, var(--theme-primary) 16%, transparent);
}

.my-profile-checkout-spinner::after {
  border: 3px solid transparent;
  border-top-color: var(--theme-primary);
  border-right-color: color-mix(in srgb, var(--theme-primary) 72%, white 28%);
  animation: my-profile-checkout-spin .85s linear infinite;
}

.my-profile-checkout-state-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-profile-checkout-state-title {
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--color-text);
  line-height: 1.2;
}



.my-profile-checkout-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.my-profile-checkout-progress-step {
  height: 8px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-border-subtle) 80%, transparent);
  overflow: hidden;
  position: relative;
}

.my-profile-checkout-progress-step.is-active::after,
.my-profile-checkout-progress-step.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--theme-primary) 84%, white 16%),
    color-mix(in srgb, var(--theme-primary) 56%, white 44%)
  );
}

.my-profile-checkout-progress-step.is-active::after {
  animation: my-profile-checkout-pulse 1.15s ease-in-out infinite;
}

.my-profile-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}



body.my-profile-checkout-open {
  overflow: hidden;
}

@keyframes my-profile-checkout-spin {
  to { transform: rotate(360deg); }
}

@keyframes my-profile-checkout-pulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}






/* V26.2 — Profil : cartes centrées, santé détaillée, formulaire modernisé */
.my-profile-panel .my-profile-membership-block,
.my-profile-panel .student-view-health-block {
  width: min(58rem, 100%);
  margin: clamp(1.05rem, 2.1vw, 1.45rem) auto 0 !important;
  box-sizing: border-box;
}

.my-profile-panel .my-profile-membership-block {
  padding: 0 !important;
}

.my-profile-panel > .student-view-health-block:not(.my-profile-membership-block) {
  padding: clamp(1rem, 2vw, 1.25rem) !important;
  border-radius: clamp(1.25rem, 2.6vw, 1.75rem) !important;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 76%, transparent) !important;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--theme-primary) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--color-surface-soft) 88%, transparent) !important;
  box-shadow: 0 22px 58px color-mix(in srgb, #0f172a 13%, transparent) !important;
}

html[data-theme="dark"] .my-profile-panel > .student-view-health-block:not(.my-profile-membership-block) {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--theme-primary) 9%, transparent), transparent 42%),
    color-mix(in srgb, var(--color-surface) 86%, #020617 14%) !important;
  box-shadow: 0 24px 62px rgba(0,0,0,.34) !important;
}

.my-profile-panel .student-view-health-block h4 {
  margin: 0 0 .9rem !important;
  font-size: 1.02rem;
  line-height: 1.2;
}

.my-profile-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .82rem;
}

.my-profile-health-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .78rem;
  min-width: 0;
  padding: .82rem .9rem;
  border-radius: 1.12rem;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

html[data-theme="dark"] .my-profile-health-card {
  border-color: color-mix(in srgb, var(--color-border-subtle) 88%, transparent);
  background: color-mix(in srgb, var(--color-surface) 82%, #020617 18%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}


.my-profile-health-card--ok { color: #22c55e; }
.my-profile-health-card--warn { color: #f59e0b; }
.my-profile-health-card--info { color: #a855f7; }
.my-profile-health-card--bad { color: #ef4444; }
.my-profile-health-card--unknown { color: #94a3b8; }

.my-profile-health-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: .82rem;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

.my-profile-health-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .16rem;
}

.my-profile-health-card__label {
  color: var(--color-text-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .052em;
  line-height: 1.15;
  text-transform: uppercase;
}

.my-profile-health-card__value {
  color: var(--color-text);
  font-weight: 760;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.my-profile-edit .form-field {
  gap: .46rem;
}

.my-profile-edit .form-field label {
  margin: 0 !important;
  color: color-mix(in srgb, var(--color-text) 72%, var(--color-text-muted) 28%);
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .018em;
}

.my-profile-edit .ui-input {
  width: 100%;
  height: auto;
  min-height: 3.05rem;
  padding: .78rem 1rem;
  border-radius: 1.05rem !important;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.22)),
    color-mix(in srgb, var(--color-surface-soft) 90%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 .65rem 1.55rem color-mix(in srgb, #0f172a 10%, transparent) !important;
  line-height: 1.38;
}

.my-profile-edit textarea.ui-input {
  min-height: 5rem;
  resize: vertical;
}

.my-profile-edit .ui-input:hover {
  filter: none;
}

.my-profile-edit .ui-input:focus-visible {
  border-color: color-mix(in srgb, var(--theme-primary) 58%, var(--color-border-subtle) 42%) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent),
    inset 0 1px 0 rgba(255,255,255,.46),
    0 .85rem 1.9rem color-mix(in srgb, var(--theme-primary) 14%, transparent) !important;
}

html[data-theme="dark"] .my-profile-edit .ui-input {
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    color-mix(in srgb, var(--color-surface) 84%, #020617 16%) !important;
  border-color: color-mix(in srgb, var(--color-border-subtle) 82%, transparent) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 .85rem 1.8rem rgba(0,0,0,.24) !important;
}

html[data-theme="dark"] .my-profile-edit .ui-input:focus-visible {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--theme-primary) 15%, transparent),
    inset 0 1px 0 rgba(255,255,255,.055),
    0 .9rem 2rem rgba(0,0,0,.34) !important;
}

.my-profile-edit .my-profile-consent-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .18rem 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.my-profile-edit .my-profile-consent-field label {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  margin: 0 !important;
}

@media (max-width: 767px), (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .my-profile-health-grid {
    grid-template-columns: 1fr;
  }
}


.my-profile-loader-host {
  margin: 0 0 18px;
}

.my-profile-panel-shell.is-hidden-during-load {
  display: none;
}

/* V26.2.1 — Mon profil : centrage strict des blocs lecture
   -----------------------------------------------------------
   Les blocs Adhésion et Santé doivent se centrer comme deux panneaux
   autonomes, sans dépendre des largeurs héritées des anciens panels élèves. */
.my-profile-panel {
  --my-profile-read-section-max: 58rem;
  --my-profile-read-section-gutter: 0px;
}

.my-profile-panel .my-profile-membership-block,
.my-profile-panel > .student-view-health-block:not(.my-profile-membership-block) {
  display: block !important;
  width: min(
    var(--my-profile-read-section-max),
    calc(100% - (var(--my-profile-read-section-gutter) * 2))
  ) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-profile-panel .my-profile-membership-shell,
.my-profile-panel > .student-view-health-block:not(.my-profile-membership-block) {
  box-sizing: border-box !important;
}

/* V26.5.1 — Mon profil édition : avatar cliquable + toggle genre aligné */
.my-profile-edit .form-field:has(.sex-seg-toggle) {
  align-self: stretch;
}

.my-profile-edit .sex-seg-toggle {
  --my-profile-edit-control-h: 3.05rem;
  height: var(--my-profile-edit-control-h) !important;
  min-height: var(--my-profile-edit-control-h) !important;
  grid-template-columns: repeat(3, minmax(3.2rem, 1fr));
  align-self: stretch;
  border-radius: 1.05rem;
  box-sizing: border-box;
}

.my-profile-edit .sex-seg-toggle::before {
  border-radius: .82rem;
}

.my-profile-edit .sex-seg-toggle .sex-seg-btn {
  min-width: 3.2rem;
  min-height: calc(var(--my-profile-edit-control-h) - (var(--sex-toggle-pad, 4px) * 2));
  border-radius: .82rem;
}

.my-profile-edit .my-profile-avatar-upload {
  align-items: center;
  gap: .85rem;
}

.my-profile-edit .my-profile-avatar-picker {
  position: relative;
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  outline: none;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    filter .16s ease;
}

.my-profile-edit .my-profile-avatar-picker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #38bdf8) 0%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, border-color .16s ease;
}

.my-profile-edit .my-profile-avatar-picker:hover,
.my-profile-edit .my-profile-avatar-picker:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--theme-primary, #38bdf8) 54%, var(--color-border-subtle, #cbd5e1) 46%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 3px color-mix(in srgb, var(--theme-primary, #38bdf8) 14%, transparent),
    0 1rem 2rem color-mix(in srgb, var(--theme-primary, #38bdf8) 14%, transparent);
}

.my-profile-edit .my-profile-avatar-picker:hover::after,
.my-profile-edit .my-profile-avatar-picker:focus-visible::after {
  opacity: 1;
  border-color: color-mix(in srgb, var(--theme-primary, #38bdf8) 24%, transparent);
}

.my-profile-edit .my-profile-avatar-clear {
  position: absolute;
  z-index: 2;
  top: -.55rem;
  right: -.55rem;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ef4444 58%, rgba(255,255,255,.78) 42%);
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.82), transparent 38%),
    color-mix(in srgb, #ef4444 88%, #ffffff 12%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 .65rem 1.3rem color-mix(in srgb, #ef4444 34%, transparent);
  cursor: pointer;
  font-size: .74rem;
  line-height: 1;
  padding: 0;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

.my-profile-edit .my-profile-avatar-clear:hover,
.my-profile-edit .my-profile-avatar-clear:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.03);
  outline: none;
}

html[data-theme="dark"] .my-profile-edit .my-profile-avatar-clear {
  border-color: color-mix(in srgb, #fb7185 58%, rgba(15,23,42,.72) 42%);
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.18), transparent 40%),
    color-mix(in srgb, #ef4444 72%, #7f1d1d 28%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 .7rem 1.45rem color-mix(in srgb, #ef4444 28%, transparent);
}

/* V26.6.1 — Mon profil édition : avatar cliquable, preview découpée + transparence préservée */
.my-profile-edit .my-profile-avatar-picker {
  overflow: visible !important;
}

.my-profile-edit .my-profile-avatar-visual {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  background: inherit;
}

.my-profile-edit .my-profile-avatar-visual .teacher-avatar-img,
.my-profile-edit .my-profile-avatar-visual .teacher-avatar-fallback {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
}

.my-profile-edit .my-profile-avatar-visual .teacher-avatar-img {
  object-fit: cover;
  background: transparent;
}

.my-profile-edit .my-profile-avatar-visual .teacher-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-profile-edit .my-profile-avatar-picker::after,
.my-profile-edit .my-profile-avatar-clear {
  z-index: 3;
}

/* V26.8.1 — Mon profil édition : autorisations en grandes pastilles cliquables */
.my-profile-edit .my-profile-consent-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  width: 100%;
}

.my-profile-edit .my-profile-consent-grid .my-profile-consent-field {
  display: block !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.my-profile-edit .my-profile-consent-choice {
  width: 100%;
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
  padding: .82rem .95rem;
  border-radius: 1.16rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, var(--color-border-subtle) 72%);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, currentColor 16%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.20)),
    color-mix(in srgb, var(--color-surface-soft) 88%, transparent);
  color: var(--color-text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 .72rem 1.55rem color-mix(in srgb, currentColor 10%, transparent);
  cursor: pointer;
  text-align: left;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    filter .16s ease;
}

.my-profile-edit .my-profile-consent-choice:hover,
.my-profile-edit .my-profile-consent-choice:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    0 0 0 3px color-mix(in srgb, currentColor 13%, transparent),
    0 .9rem 1.9rem color-mix(in srgb, currentColor 14%, transparent);
}

.my-profile-edit .my-profile-consent-choice.is-allowed {
  color: #22c55e;
}

.my-profile-edit .my-profile-consent-choice.is-denied {
  color: #ef4444;
}

.my-profile-edit .my-profile-consent-choice__icon {
  width: 3.05rem;
  height: 3.05rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at 28% 16%, rgba(255,255,255,.46), transparent 42%),
    color-mix(in srgb, currentColor 20%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 .45rem 1rem color-mix(in srgb, currentColor 18%, transparent);
  flex: 0 0 auto;
}

.my-profile-edit .my-profile-consent-choice__icon .bi {
  font-size: 1.5rem;
  line-height: 1;
}

.my-profile-edit .my-profile-consent-choice__text {
  min-width: 0;
  color: var(--color-text);
  font-size: .98rem;
  font-weight: 830;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .my-profile-edit .my-profile-consent-choice {
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, currentColor 13%, transparent), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    color-mix(in srgb, var(--color-surface) 84%, #020617 16%);
  border-color: color-mix(in srgb, currentColor 30%, var(--color-border-subtle) 70%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 .82rem 1.7rem rgba(0,0,0,.24);
}

html[data-theme="dark"] .my-profile-edit .my-profile-consent-choice:hover,
html[data-theme="dark"] .my-profile-edit .my-profile-consent-choice:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 0 3px color-mix(in srgb, currentColor 12%, transparent),
    0 .95rem 1.95rem rgba(0,0,0,.32);
}

html[data-theme="dark"] .my-profile-edit .my-profile-consent-choice__text {
  color: color-mix(in srgb, var(--color-text) 94%, currentColor 6%);
}

@media (max-width: 767px) {
  .my-profile-edit .my-profile-consent-grid {
    grid-template-columns: 1fr;
  }
}

/* V49.2.17 — Mon profil moderne : hero, dock et adresse structurée
   ----------------------------------------------------------------- */
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern {
  width: min(100%, 78rem);
  max-width: min(100%, 78rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.35rem);
  box-sizing: border-box;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern--edit {
  padding: 0 !important;
}

.my-profile-hero {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.7rem);
  min-height: clamp(10rem, 20vw, 15rem);
  padding: clamp(1.2rem, 3vw, 2.3rem);
  border: 1px solid color-mix(in srgb, var(--theme-primary, #38bdf8) 30%, var(--color-border-subtle) 70%);
  border-radius: clamp(1.35rem, 2.7vw, 2.1rem);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--theme-primary, #38bdf8) 24%, transparent), transparent 34%),
    radial-gradient(circle at 92% 24%, rgba(244, 63, 94, .13), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--color-surface) 90%, transparent), color-mix(in srgb, var(--theme-primary, #38bdf8) 8%, transparent));
  box-shadow: 0 26px 70px color-mix(in srgb, var(--theme-primary, #38bdf8) 12%, transparent);
  box-sizing: border-box;
  overflow: hidden;
}

html[data-theme="dark"] .my-profile-hero {
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--theme-primary, #38bdf8) 20%, transparent), transparent 34%),
    radial-gradient(circle at 92% 24%, rgba(244, 63, 94, .16), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, .72), rgba(2, 6, 23, .82));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.my-profile-hero__avatar.teacher-view-avatar {
  width: clamp(5rem, 10vw, 7rem);
  height: clamp(5rem, 10vw, 7rem);
  border-radius: 1.55rem;
  margin: 0;
  flex: none;
}

.my-profile-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.my-profile-hero__eyebrow {
  margin: 0;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 70%, var(--color-text) 30%);
}

.my-profile-hero h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.06em;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.my-profile-hero__text {
  max-width: 48rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(.96rem, 1.5vw, 1.08rem);
  line-height: 1.45;
}

.my-profile-hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .12rem;
}

.my-profile-control-dock {
  position: sticky;
  top: calc(var(--edq-safe-area-top-effective, env(safe-area-inset-top, 0px)) + .7rem);
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .8rem;
  width: 100%;
  padding: .55rem;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .12);
  box-sizing: border-box;
}

html[data-theme="dark"] .my-profile-control-dock {
  background: rgba(2, 6, 23, .58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.my-profile-control-dock__hint {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 auto 0 .55rem;
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.35;
}

.my-profile-dock-action {
  min-height: 2.85rem;
  padding-inline: 1.05rem;
  white-space: nowrap;
}

.my-profile-section,
.my-profile-form-section,
.my-profile-info-banner {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 76%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  box-sizing: border-box;
}

html[data-theme="dark"] .my-profile-section,
html[data-theme="dark"] .my-profile-form-section,
html[data-theme="dark"] .my-profile-info-banner {
  background: rgba(15, 23, 42, .40);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
}

.my-profile-section__head,
.my-profile-form-section__head,
.my-profile-info-banner {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.my-profile-section__icon,
.my-profile-form-section__icon,
.my-profile-info-banner__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .9rem;
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 82%, #ffffff 18%);
  background: color-mix(in srgb, var(--theme-primary, #38bdf8) 18%, transparent);
}

.my-profile-section__head h3,
.my-profile-form-section__head h4,
.my-profile-info-banner h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.my-profile-section__head p,
.my-profile-form-section__head p,
.my-profile-info-banner p {
  margin: .25rem 0 0;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.my-profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 1rem 0 0;
}

.my-profile-details-grid > div {
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
}

.my-profile-details-grid dt {
  margin: 0 0 .3rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.my-profile-details-grid dd {
  margin: 0;
  font-weight: 800;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.my-profile-modern-form {
  display: flex !important;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.my-profile-form-grid,
.my-profile-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
  margin-top: 1rem;
}

.my-profile-field--wide {
  grid-column: 1 / -1;
}

.my-profile-modern-input.ui-input,
.my-profile-modern-form .ui-input {
  min-height: 3.15rem;
  border-radius: 1rem !important;
  border-color: color-mix(in srgb, var(--color-border-subtle) 90%, transparent) !important;
  background: color-mix(in srgb, var(--color-surface) 78%, transparent) !important;
}

.my-profile-modern-form textarea.ui-input {
  min-height: 5rem;
  resize: vertical;
}

.my-profile-avatar-field {
  margin-top: 1rem;
}

.my-profile-info-banner--legal {
  border-color: color-mix(in srgb, #38bdf8 40%, var(--color-border-subtle) 60%);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, .16), transparent 38%),
    color-mix(in srgb, var(--color-surface) 78%, transparent);
}

.my-profile-info-banner--legal a {
  display: inline-flex;
  margin-top: .45rem;
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 76%, var(--color-text) 24%);
  font-weight: 800;
  text-decoration: none;
}

.my-profile-health-grid.health-icons-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-profile-modern .my-profile-membership-block {
  max-width: 100%;
}

@media (max-width: 767px) {
  body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern {
    width: min(100%, 42rem) !important;
    max-width: min(100%, 42rem) !important;
    padding-inline: clamp(.75rem, 4vw, 1.1rem);
  }

  .my-profile-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.1rem;
  }

  .my-profile-hero__avatar.teacher-view-avatar {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1.25rem;
  }

  .my-profile-hero h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .my-profile-control-dock {
    border-radius: 1.15rem;
    align-items: stretch;
    flex-direction: column;
    top: calc(var(--edq-safe-area-top-effective, env(safe-area-inset-top, 0px)) + .45rem);
  }

  .my-profile-control-dock__hint {
    margin: .15rem .35rem 0;
  }

  .my-profile-dock-action {
    width: 100%;
    justify-content: center;
  }

  .my-profile-details-grid,
  .my-profile-form-grid,
  .my-profile-address-grid,
  .my-profile-health-grid.health-icons-grid {
    grid-template-columns: 1fr;
  }
}

/* V49.2.19 — Mon profil aligné sur le pattern Smart Panel / profil élève
   --------------------------------------------------------------------- */
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  gap: clamp(.72rem, 1.45vw, 1rem) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern > :not(.my-profile-hero):not(.my-profile-control-dock) {
  width: min(78rem, calc(100% - clamp(1.4rem, 3.8vw, 3rem))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero.courses-panel-hero {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(14rem, 24vw, 20rem) !important;
  display: block !important;
  padding: clamp(2.7rem, 5vw, 5.2rem) clamp(1.4rem, 4.8vw, 5.4rem) !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-color: color-mix(in srgb, var(--theme-primary, #38bdf8) 28%, var(--color-border-subtle) 72%) !important;
  background:
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--theme-primary, #38bdf8) 28%, transparent), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(244, 63, 94, .22), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, #082f49 26%, var(--color-surface) 74%), color-mix(in srgb, #4c0519 16%, var(--color-surface) 84%)) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero.courses-panel-hero,
body[data-theme="light"].is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero.courses-panel-hero {
  background:
    radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--theme-primary, #38bdf8) 18%, transparent), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(244, 63, 94, .14), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.96), color-mix(in srgb, var(--theme-primary, #38bdf8) 9%, #ffffff 91%)) !important;
  border-color: color-mix(in srgb, var(--theme-primary, #38bdf8) 26%, rgba(15, 23, 42, .12) 74%) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero__inner.courses-panel-hero__inner {
  width: min(78rem, 100%) !important;
  max-width: 78rem !important;
  min-height: inherit !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .42fr) !important;
  align-items: center !important;
  gap: clamp(1.4rem, 4vw, 4.2rem) !important;
}

.my-profile-hero-main {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  min-width: 0;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__avatar.teacher-view-avatar {
  width: clamp(4.6rem, 8vw, 6.4rem) !important;
  height: clamp(4.6rem, 8vw, 6.4rem) !important;
  border-radius: clamp(1.1rem, 2vw, 1.55rem) !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__content,
.my-profile-hero.courses-panel-hero .my-profile-hero__textwrap {
  min-width: 0 !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__eyebrow {
  margin: 0 0 .42rem !important;
  font-size: clamp(.72rem, 1vw, .84rem) !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: color-mix(in srgb, var(--theme-primary, #38bdf8) 82%, #ffffff 18%) !important;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero__eyebrow,
body[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero__eyebrow {
  color: color-mix(in srgb, var(--theme-primary, #0284c7) 68%, #0f172a 32%) !important;
}

.my-profile-hero.courses-panel-hero h1 {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  margin: 0 !important;
  font-size: clamp(2.4rem, 5.4vw, 5.15rem) !important;
  line-height: .94 !important;
  letter-spacing: -.07em !important;
  color: #fff !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero h1,
body[data-theme="light"] .my-profile-hero.courses-panel-hero h1 {
  color: #0f172a !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__text {
  max-width: 44rem !important;
  margin: .65rem 0 0 !important;
  color: rgba(255,255,255,.72) !important;
  font-size: clamp(.96rem, 1.35vw, 1.08rem) !important;
  line-height: 1.45 !important;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero__text,
body[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero__text {
  color: rgba(71, 85, 105, .92) !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__roles {
  margin-top: .68rem !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero__stats.courses-panel-hero__stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .9rem !important;
  align-self: center !important;
  width: 100% !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero-stat-card.courses-panel-stat-card {
  min-height: 5rem !important;
  padding: 1rem 1.08rem !important;
  border-radius: 1.15rem !important;
  background: rgba(2, 6, 23, .48) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card.courses-panel-stat-card,
body[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card.courses-panel-stat-card {
  background: rgba(255,255,255,.76) !important;
  border-color: rgba(15, 23, 42, .10) !important;
  box-shadow: 0 .9rem 2rem rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.my-profile-hero.courses-panel-hero .my-profile-hero-stat-card strong {
  font-size: clamp(1.45rem, 2.8vw, 2rem) !important;
  line-height: 1 !important;
  color: #fff !important;
  overflow-wrap: anywhere;
}

.my-profile-hero.courses-panel-hero .my-profile-hero-stat-card span {
  margin-top: .28rem !important;
  color: rgba(255,255,255,.68) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card strong,
body[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card strong {
  color: #0f172a !important;
}

html[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card span,
body[data-theme="light"] .my-profile-hero.courses-panel-hero .my-profile-hero-stat-card span {
  color: rgba(71, 85, 105, .86) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-control-dock.courses-control-dock {
  width: min(78rem, calc(100% - clamp(1.4rem, 3.8vw, 3rem))) !important;
  max-width: 78rem !important;
  margin: clamp(.55rem, 1.2vw, .9rem) auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: .75rem !important;
}

.my-profile-control-dock.courses-control-dock .my-profile-control-dock__chips:empty {
  display: block !important;
}

.my-profile-control-dock.courses-control-dock .my-profile-control-dock__actions {
  display: flex !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

.my-profile-control-dock.courses-control-dock .my-profile-dock-action.courses-control-action {
  min-height: 3.05rem !important;
  border-radius: 1.05rem !important;
  padding-inline: 1.1rem !important;
  white-space: nowrap !important;
}

.my-profile-control-dock.courses-control-dock .my-profile-control-dock__hint {
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: .75rem .95rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, #f59e0b 34%, var(--color-border-subtle) 66%);
  background: color-mix(in srgb, #f59e0b 12%, var(--color-surface) 88%);
  color: var(--color-text);
}

/* V49.2.20 — Mon profil : hero bord à bord derrière la navbar
   -------------------------------------------------------------------------
   Le hero reprend la mécanique du Profil élève : le fond commence au bord haut
   du panel, tandis que le contenu interne garde une marge sous la navbar. */
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-panel-shell {
  --my-profile-nav-height: var(--courses-panel-nav-height, var(--edq-navbar-height-current, var(--edq-mobile-navbar-height, var(--app-header-safe-height, 64px))));
  --my-profile-content-left: var(--courses-panel-content-left, max(1rem, var(--edq-safe-area-left-effective, env(safe-area-inset-left, 0px))));
  --my-profile-content-right: var(--courses-panel-content-right, max(1rem, var(--edq-safe-area-right-effective, env(safe-area-inset-right, 0px))));
}

body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view,
body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .panel-body,
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-panel-shell,
body.is-dashboard-shell-visible:has(#my-profile-content) #my-profile-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero.courses-panel-hero {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 clamp(.72rem, 1.45vw, 1rem) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero__inner.courses-panel-hero__inner {
  width: min(78rem, 100%) !important;
  max-width: 78rem !important;
  box-sizing: border-box !important;
  padding: calc(var(--my-profile-nav-height) + clamp(1rem, 2.4vw, 2.45rem)) var(--my-profile-content-right) clamp(1.25rem, 3vw, 2.8rem) var(--my-profile-content-left) !important;
}

/* V49.2.20 — correction de la marge interne : le hero remplit le panel,
   son contenu ne recompte pas la sidebar. */
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-panel-shell {
  --my-profile-content-left: clamp(1rem, 4.8vw, 5.4rem);
  --my-profile-content-right: clamp(1rem, 4.8vw, 5.4rem);
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero__inner.courses-panel-hero__inner {
  padding-left: var(--my-profile-content-left) !important;
  padding-right: var(--my-profile-content-right) !important;
}

/* V49.2.21 — Mon profil : socle full-bleed réel
   ------------------------------------------------
   Le shell du profil adopte le même principe que les panels modernes :
   la racine scrolle sur tout le viewport, le hero est bord à bord, et
   seule la matière interne utilise les marges utiles. */
body.is-dashboard-shell-visible:has(#my-profile-content) #app-root,
body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-app-shell,
body.is-dashboard-shell-visible:has(#my-profile-content) .dashboard-app-main,
body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view,
body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view.section {
  overflow-x: visible !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .my-profile-panel-shell.my-profile-panel-root {
  position: fixed !important;
  z-index: 12 !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  background: var(--color-bg, #020617) !important;
  color: var(--color-text, #f8fafc) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .my-profile-panel-shell.my-profile-panel-root::-webkit-scrollbar {
  display: none !important;
}

html[data-theme="light"] body.is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .my-profile-panel-shell.my-profile-panel-root,
body[data-theme="light"].is-dashboard-shell-visible:has(#my-profile-content) #dashboard-view > .my-profile-panel-shell.my-profile-panel-root {
  background: #f7fafc !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) #my-profile-content,
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern {
  --my-profile-readable-width: var(--courses-content-readable-width, 78rem);
  --my-profile-readable-left: var(--courses-panel-content-left, max(1rem, env(safe-area-inset-left, 0px)));
  --my-profile-readable-right: var(--courses-panel-content-right, max(1rem, env(safe-area-inset-right, 0px)));
  gap: clamp(.72rem, 1.45vw, 1rem) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern > .my-profile-hero.courses-panel-hero {
  position: relative !important;
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: clamp(14rem, 26vh, 19rem) !important;
  margin: 0 0 clamp(.72rem, 1.45vw, 1rem) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  overflow: hidden !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-hero__inner.courses-panel-hero__inner {
  width: 100% !important;
  max-width: none !important;
  min-height: inherit !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: calc(var(--courses-panel-nav-height, var(--edq-navbar-height-current, var(--app-header-safe-height, 64px))) + clamp(1rem, 2.4vw, 2.45rem))
    var(--my-profile-readable-right)
    clamp(1.25rem, 3vw, 2.8rem)
    var(--my-profile-readable-left) !important;
}

body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-modern > :not(.my-profile-hero):not(.my-profile-control-dock),
body.is-dashboard-shell-visible:has(#my-profile-content) .my-profile-control-dock.courses-control-dock {
  width: min(var(--my-profile-readable-width), calc(100vw - var(--my-profile-readable-left) - var(--my-profile-readable-right))) !important;
  max-width: min(var(--my-profile-readable-width), calc(100vw - var(--my-profile-readable-left) - var(--my-profile-readable-right))) !important;
  margin-left: var(--my-profile-readable-left) !important;
  margin-right: var(--my-profile-readable-right) !important;
}


.my-profile-control-dock__hint--season-prep {
  border-color: color-mix(in srgb, #38bdf8 34%, rgba(148, 163, 184, 0.24));
  background:
    radial-gradient(240px 140px at 0% 0%, color-mix(in srgb, #38bdf8 15%, transparent), transparent 72%),
    color-mix(in srgb, var(--color-surface-soft) 38%, transparent);
}

.my-profile-control-dock__hint--season-prep i {
  color: #7dd3fc;
}
