/* /public_html/assets/css/gala/gala.base.css */

.gala-panel-shell-body {
  --gala-shell-max-width: 1180px;
  width: min(var(--gala-shell-max-width), calc(100vw - 32px));
  max-width: var(--gala-shell-max-width);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 clamp(40px, 6vw, 78px);
}

.gala-panel-mobile-title {
  display: none;
}

.gala-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  min-height: clamp(220px, 28vw, 330px);
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 34%),
    radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--theme-primary) 20%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--color-surface) 92%, transparent), color-mix(in srgb, var(--color-surface-soft) 96%, transparent));
  box-shadow:
    0 22px 60px color-mix(in srgb, #000 14%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 26%, transparent);
}

.gala-hero-shell::after {
  content: '';
  position: absolute;
  inset: auto -8% -26% auto;
  width: min(360px, 42vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  filter: blur(36px);
  pointer-events: none;
}

.gala-hero-shell__text,
.gala-hero-shell__stats {
  position: relative;
  z-index: 1;
}

.gala-hero-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gala-hero-shell h2 {
  margin: 0;
  color: var(--theme-text);
  font-size: clamp(2.9rem, 8vw, 5.7rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.gala-hero-shell p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--theme-text-muted);
  font-size: clamp(0.96rem, 1.8vw, 1.14rem);
  font-weight: 750;
  line-height: 1.55;
}

.gala-hero-shell__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
  align-content: end;
}

.gala-hero-shell__stats span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, #000 10%, transparent);
  color: var(--theme-text-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.gala-hero-shell__stats strong {
  color: var(--theme-text);
  font-size: 1.55rem;
  line-height: 1;
}

.gala-events-list-shell {
  min-height: 160px;
}

.gala-events-grid {
  gap: clamp(14px, 2vw, 22px);
}

.gala-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gala-card:hover,
.gala-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px color-mix(in srgb, #000 14%, transparent);
}

.gala-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gala-card-title {
  margin: 0;
  min-width: 0;
  color: var(--theme-text);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.gala-card-body {
  margin-top: 12px;
}

.gala-card-meta {
  margin: 8px 0 0;
  color: var(--theme-text-muted);
  font-weight: 760;
}

.gala-card-meta i {
  margin-right: 6px;
}

.gala-view-shell-body {
  --gala-shell-max-width: 1480px;
}

.gala-view-panel-root {
  min-height: 260px;
}

.gala-view-shell-body .gala-view-summary,
.gala-view-shell-body .gala-view-choreos {
  width: 100%;
}

.gala-view-shell-body .gala-program-table-wrapper {
  border-radius: 24px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  box-shadow: 0 18px 46px color-mix(in srgb, #000 10%, transparent);
}

/* Recherche flottante persistante du sous-panel élèves du gala */
.gala-students-shell-body .gsp-panel-tools.gsp-panel-searchbar {
  position: fixed;
  top: calc(var(--dashboard-floating-top-offset, 5.75rem) + 0.55rem);
  left: var(--dashboard-shell-content-left, calc(var(--dashboard-sidebar-width-collapsed, 4.35rem) + 1rem));
  right: 1rem;
  z-index: 58;
  display: flex;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.gala-students-shell-body .gsp-root {
  padding-top: 4.35rem;
}

.gala-students-shell-body .gsp-panel-searchbar .gsp-header-search-wrap {
  width: min(34rem, calc(100% - 2rem));
  min-width: 0;
  pointer-events: auto;
}

.gala-students-shell-body .gsp-panel-searchbar .gsp-header-search {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.gala-students-shell-body .gsp-panel-searchbar .gsp-header-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-text-muted);
  pointer-events: none;
  font-size: 1rem;
  z-index: 1;
}

.gala-students-shell-body .gsp-panel-searchbar .gsp-header-search__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px 12px 46px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  color: var(--theme-text);
  font: inherit;
  font-weight: 750;
  box-shadow: 0 18px 45px color-mix(in srgb, #000 12%, transparent);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

html[data-theme="dark"] .gala-students-shell-body .gsp-panel-searchbar .gsp-header-search__input {
  background: color-mix(in srgb, var(--color-surface) 74%, transparent);
}

.gala-students-shell-body .gsp-panel-searchbar .gsp-header-search__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-accent) 72%, white 8%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent),
    0 18px 45px color-mix(in srgb, #000 13%, transparent);
}

/* Accès rapides critiques depuis la vue d’un gala */
.gala-view-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gala-view-shortcut {
  appearance: none;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--color-surface) 94%, transparent),
      color-mix(in srgb, var(--color-surface-soft) 82%, transparent));
  color: var(--theme-text);
  box-shadow: 0 14px 34px color-mix(in srgb, #000 8%, transparent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gala-view-shortcut:hover,
.gala-view-shortcut:focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border-subtle));
  box-shadow: 0 18px 42px color-mix(in srgb, #000 11%, transparent);
  transform: translateY(-1px);
}

.gala-view-shortcut--primary {
  border-color: color-mix(in srgb, var(--color-primary) 58%, var(--color-border-subtle));
  background:
    radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 38%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)),
      color-mix(in srgb, var(--color-surface) 88%, transparent));
}

.gala-view-shortcut__icon {
  align-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-surface));
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.gala-view-shortcut__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gala-view-shortcut__text strong {
  font-size: 1rem;
  line-height: 1.05;
}

.gala-view-shortcut__text small {
  color: var(--theme-text-muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.22;
}

/* V33.1 · cartes communes + vue gala modernisée */
.gala-card.ui-accent-card {
  min-height: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gala-card .ui-accent-card__header {
  padding-bottom: 0;
}

.gala-card .ui-accent-card__body {
  padding-top: 12px;
}

.gala-card-meta--stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gala-card-special-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--color-border-subtle) 66%);
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface) 88%);
  color: color-mix(in srgb, var(--color-primary) 72%, var(--theme-text) 28%);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.gala-card-special-count i {
  margin: 0;
  font-size: 0.82rem;
}

.gala-card-style-breakdown {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gala-style-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--gala-style-pill-border, var(--color-border-subtle));
  border-radius: 999px;
  background: var(--gala-style-pill-bg, color-mix(in srgb, var(--color-surface-soft) 85%, transparent));
}

.gala-style-pill__name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gala-style-pill__name i {
  flex: 0 0 auto;
  font-size: 0.82rem;
  opacity: 0.9;
}

.gala-style-pill__name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gala-style-pill__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--gala-style-pill-border, var(--color-border-subtle));
  border-radius: 999px;
  background: var(--gala-style-pill-count-bg, color-mix(in srgb, var(--color-surface) 88%, transparent));
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.gala-view-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gala-view-identity {
  --gala-view-accent: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 8px;
}

.gala-view-identity__main {
  min-width: 0;
}

.gala-view-identity__titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gala-view-identity h3 {
  margin: 0;
  color: var(--theme-text);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.gala-view-identity p {
  margin: 6px 0 0;
  color: var(--theme-text-muted);
  font-weight: 850;
}

.gala-view-identity__color {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 14px 34px color-mix(in srgb, #000 12%, transparent);
  overflow: hidden;
}

.gala-view-identity__color span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

.gala-view-identity__color strong {
  display: none;
}

.gala-view-info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gala-view-info-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  box-shadow: 0 12px 26px color-mix(in srgb, #000 7%, transparent);
}

.gala-view-info-chip i {
  flex: 0 0 auto;
  color: var(--color-primary);
}

.gala-view-info-chip span {
  color: var(--theme-text-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gala-view-info-chip strong {
  min-width: 0;
  color: var(--theme-text);
  font-weight: 920;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gala-view-choreos {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gala-program-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 40%),
    color-mix(in srgb, var(--color-surface) 78%, transparent);
  box-shadow: 0 16px 42px color-mix(in srgb, #000 8%, transparent);
}

.gala-program-toolbar__title {
  min-width: min(280px, 100%);
}

.gala-program-toolbar__title h4 {
  margin: 0;
}

.gala-program-toolbar__title p {
  max-width: 520px;
  margin: 5px 0 0;
  color: var(--theme-text-muted);
  font-size: 0.88rem;
  font-weight: 740;
  line-height: 1.35;
}

.gala-program-toolbar__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.gala-gap-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 6px 4px 12px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, #000 7%, transparent);
}

.gala-gap-control span {
  color: var(--theme-text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.gala-gap-control input {
  width: 4.4rem;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
}

.gala-program-action {
  min-height: 40px;
}

.gala-program-row {
  cursor: grab;
}

.gala-program-row__order {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gala-program-row__titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gala-program-break td {
  padding: 12px 8px;
  text-align: center;
  font-weight: 950;
  letter-spacing: 0.08em;
  border-top: 1px dashed var(--color-border-subtle);
  border-bottom: 1px dashed var(--color-border-subtle);
  opacity: 0.86;
}

/* V33.2 · programme gala en cartes drag & drop, sans scroll horizontal */
.gala-program-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.gala-program-part {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.gala-program-part__label {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface-soft) 82%, transparent);
  color: var(--theme-text-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gala-program-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.gala-program-item {
  display: grid;
  grid-template-columns: minmax(54px, 0.18fr) minmax(190px, 0.7fr) minmax(260px, 1.05fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 38%),
    color-mix(in srgb, var(--color-surface) 74%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, #000 6%, transparent);
  cursor: default;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.gala-program-item.is-dragging,
.gala-program-item.is-pointer-dragging {
  opacity: 0.62;
  transform: scale(0.992);
}

.gala-program-item.is-drop-target {
  border-color: color-mix(in srgb, var(--color-primary) 58%, var(--color-border-subtle));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent),
    0 18px 36px color-mix(in srgb, #000 10%, transparent);
}

.gala-program-drag-handle {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 70%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface-soft) 78%, transparent);
  color: var(--theme-text-muted);
  font: inherit;
  font-weight: 950;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.gala-program-drag-handle:active {
  cursor: grabbing;
}

.gala-program-drag-handle[disabled] {
  opacity: 0.35;
  cursor: default;
}

.gala-program-item__choreo,
.gala-program-item__course {
  min-width: 0;
}

.gala-program-item__meta {
  margin-top: 3px;
  font-size: 0.82rem;
  font-weight: 720;
}

.gala-program-course-card {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  min-width: 0;
  padding: 9px 11px !important;
  border: 1px solid color-mix(in srgb, var(--gala-program-course-accent, var(--color-primary)) 34%, var(--color-border-subtle)) !important;
  border-radius: 16px !important;
  background: var(--gala-program-course-bg, var(--color-surface-soft)) !important;
  pointer-events: none;
  user-select: none;
}

.gala-program-course-card__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gala-program-course-accent, var(--color-primary)) 18%, var(--color-surface) 82%);
  color: color-mix(in srgb, var(--gala-program-course-accent, var(--color-primary)) 76%, var(--theme-text) 24%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gala-program-course-accent, var(--color-primary)) 22%, transparent);
}

.gala-program-course-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gala-program-course-card__title,
.gala-program-course-card__meta {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.16;
}

.gala-program-course-card__title {
  font-weight: 900;
}

.gala-program-course-card__title-short {
  display: none;
}

.gala-program-course-card__meta {
  font-weight: 700;
  opacity: 0.88;
}

.gala-program-break {
  width: 100%;
  padding: 11px 8px;
  text-align: center;
  border-top: 1px dashed var(--color-border-subtle);
  border-bottom: 1px dashed var(--color-border-subtle);
  color: var(--theme-text-muted);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gala-edit-panel {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gala-edit-panel__intro {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 6%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--color-surface) 80%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, #000 9%, transparent);
}

.gala-edit-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gala-edit-panel__intro h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.gala-edit-panel__intro p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--theme-text-muted);
  font-weight: 760;
  line-height: 1.45;
}

.gala-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gala-edit-color-field {
  align-items: flex-start;
}

.gala-edit-color-input {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 14px 34px color-mix(in srgb, #000 12%, transparent);
  cursor: pointer;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.gala-edit-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.gala-edit-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.gala-edit-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.gala-edit-color-input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 34%, transparent);
  outline-offset: 4px;
}

.gala-edit-active-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  cursor: pointer;
}

.gala-edit-active-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.gala-edit-active-toggle span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gala-edit-active-toggle small {
  color: var(--theme-text-muted);
  font-weight: 720;
}

/* V33.3 · affinage Gala : pastille couleur alignée + insertion DnD lisible */
.gala-card-title-row {
  align-items: center;
  flex-wrap: nowrap;
}

.gala-card-title-row .gala-active-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.gala-view-identity__main {
  width: 100%;
}

.gala-view-identity__titleline {
  width: 100%;
  flex-wrap: nowrap;
}

.gala-view-identity__titleline h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gala-view-identity__titleline .gala-active-badge {
  flex: 0 0 auto;
}

.gala-view-identity__titleline .gala-view-identity__color {
  margin-left: auto;
}

.gala-program-item {
  position: relative;
}

.gala-program-item.is-drop-target {
  border-color: color-mix(in srgb, var(--color-primary) 24%, var(--color-border-subtle));
  box-shadow: 0 14px 30px color-mix(in srgb, #000 7%, transparent);
}

.gala-program-item.is-drop-before,
.gala-program-item.is-drop-after {
  z-index: 2;
}

.gala-program-item.is-drop-before::before,
.gala-program-item.is-drop-after::after {
  content: 'Insérer ici';
  position: absolute;
  left: clamp(56px, 9%, 88px);
  right: 18px;
  height: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--color-primary) 82%, white 18%) 16%,
    color-mix(in srgb, var(--color-primary) 92%, var(--color-accent) 8%) 84%,
    transparent);
  color: color-mix(in srgb, var(--color-primary) 72%, var(--theme-text) 28%);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 var(--color-surface),
    0 -1px 0 var(--color-surface),
    1px 0 0 var(--color-surface),
    -1px 0 0 var(--color-surface);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--color-primary) 8%, transparent),
    0 8px 20px color-mix(in srgb, var(--color-primary) 24%, transparent);
  pointer-events: none;
}

.gala-program-item.is-drop-before::before {
  top: -8px;
}

.gala-program-item.is-drop-after::after {
  bottom: -8px;
}

/* V33.3.1 · Tri chorégraphies : neutralisation sélection native iOS */
.gala-program-board,
.gala-program-board *,
.gala-program-drag-handle,
.gala-program-drag-handle * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gala-program-drag-handle {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

html.gala-program-native-dnd-lock,
html.gala-program-native-dnd-lock *,
body.gala-program-native-dnd-lock,
body.gala-program-native-dnd-lock * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* V33.6.1 · Élèves du gala : filtres lisibles et cartes/tableaux plus visibles */
.gala-students-shell-body .gsp-root .gsp-toolbar-shell {
  position: sticky !important;
  top: var(--gsp-sticky-top, calc(var(--dashboard-floating-top-offset, 5.75rem) + 3.6rem)) !important;
  z-index: 44 !important;
  padding: 0 0 8px !important;
  margin: 0 0 8px !important;
  border-radius: 0 0 26px 26px !important;
  background: color-mix(in srgb, var(--color-bg, #f8fafc) 82%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

html[data-theme="dark"] .gala-students-shell-body .gsp-root .gsp-toolbar-shell {
  background: color-mix(in srgb, var(--color-bg, #020617) 82%, transparent) !important;
}

.gala-students-shell-body .gsp-root .gsp-toolbar-shell::before {
  height: 12px !important;
  top: -12px !important;
  background: inherit !important;
}

.gala-students-shell-body .gsp-root .gsp-toolbar__top {
  padding: 0 0 6px !important;
  align-items: center !important;
}

.gala-students-shell-body .gsp-root .gsp-results-inline {
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 72%, transparent) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, #000 7%, transparent) !important;
}

.gala-students-shell-body .gsp-root .gsp-active-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

.gala-students-shell-body .gsp-root .gsp-active-filter-pill {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 1px solid color-mix(in srgb, var(--color-accent) 24%, var(--color-border-subtle)) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)) !important;
  color: var(--theme-text) !important;
  font: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px color-mix(in srgb, #000 8%, transparent) !important;
}

.gala-students-shell-body .gsp-root .gsp-active-filter-pill span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gala-students-shell-body .gsp-root .gsp-filters-panel {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 46 !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  padding: 0 16px !important;
  transform: none !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.gala-students-shell-body .gsp-root .gsp-filters-panel.is-open {
  max-height: min(68vh, 760px) !important;
  margin-top: 6px !important;
  padding: 16px !important;
  opacity: 1 !important;
  overflow: auto !important;
  pointer-events: auto !important;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-border-subtle) 76%, transparent) !important;
  box-shadow: 0 18px 46px color-mix(in srgb, #000 14%, transparent) !important;
  scrollbar-width: thin !important;
}

html[data-theme="dark"] .gala-students-shell-body .gsp-root .gsp-filters-panel.is-open {
  background: color-mix(in srgb, var(--color-surface) 86%, transparent) !important;
}

.gala-students-shell-body .gsp-root .gsp-toolbar__matrix-head {
  margin-top: 8px !important;
}

.gala-students-shell-body .gsp-root .gsp-quick-filter-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.gala-students-shell-body .gsp-root .gsp-quick-filter {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--color-border-subtle) 74%, transparent) !important;
  background: color-mix(in srgb, var(--color-surface-elevated, var(--color-surface)) 88%, transparent) !important;
  color: var(--theme-text) !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
}

.gala-students-shell-body .gsp-root .gsp-quick-filter.is-active {
  border-color: color-mix(in srgb, var(--color-accent) 58%, transparent) !important;
  background: color-mix(in srgb, var(--color-accent) 15%, var(--color-surface)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 42%, transparent), 0 10px 24px color-mix(in srgb, #000 9%, transparent) !important;
}

.gala-students-shell-body .gsp-root .gsp-stat-card--button {
  pointer-events: auto !important;
  cursor: pointer !important;
  appearance: none !important;
  width: 100% !important;
  color: inherit !important;
  font: inherit !important;
}

.gala-students-shell-body .gsp-root .gsp-stat-card--button.is-active {
  border-color: color-mix(in srgb, var(--gsp-stat, var(--color-accent)) 54%, transparent) !important;
  background: color-mix(in srgb, var(--gsp-stat, var(--color-accent)) 12%, var(--color-surface)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gsp-stat, var(--color-accent)) 38%, transparent), var(--shadow-sm) !important;
}

.gala-students-shell-body .gsp-root .gsp-course-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
}

.gala-students-shell-body .gsp-root .gsp-course-filter-card,
.gala-students-shell-body .gsp-root .gsp-room-filter-card {
  min-height: 64px !important;
}

.gala-students-shell-body .gsp-root .gsp-row-card {
  overflow: hidden !important;
}

.gala-students-shell-body .gsp-root .gsp-row-card__stats {
  align-self: stretch !important;
}

.gala-students-shell-body .gsp-root .gsp-matrix-shell,
.gala-students-shell-body .gsp-root .gsp-matrix-head-shell {
  max-width: 100% !important;
  overflow: hidden !important;
}

.gala-students-shell-body .gsp-root .gsp-matrix-body-scroll,
.gala-students-shell-body .gsp-root .gsp-matrix-head-scroll {
  overscroll-behavior-x: contain !important;
}


/* =========================================================
   Gala · Panel bénévoles
   ========================================================= */
.gala-volunteers-shell-body{
  --gvl-accent: #38bdf8;
  --gvl-ok: #10b981;
  --gvl-warning: #f43f5e;
}

.gvl-root{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding-bottom:42px;
}

.gvl-hero{
  display:grid;
  grid-template-columns:minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap:18px;
  align-items:stretch;
  border:1px solid var(--color-border-subtle);
  border-radius:28px;
  padding:24px;
  background:
    radial-gradient(circle at 86% 16%, rgba(244, 63, 94, 0.13), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(14, 165, 233, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(248,250,252,0.72));
  box-shadow:var(--shadow-sm);
}

html[data-theme="dark"] .gvl-hero{
  background:
    radial-gradient(circle at 86% 16%, rgba(244, 63, 94, 0.17), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(14, 165, 233, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(15,23,42,0.84), rgba(2,6,23,0.74));
}

.gvl-hero__copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.gvl-eyebrow{
  margin:0 0 8px 0;
  color:#e11d48;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.76rem;
  font-weight:950;
}

.gvl-hero h2{
  margin:0;
  color:var(--theme-text);
  font-size:clamp(2rem, 4vw, 4.1rem);
  line-height:.92;
  letter-spacing:-.06em;
  font-weight:950;
}

.gvl-hero p:not(.gvl-eyebrow){
  max-width:44rem;
  margin:14px 0 0 0;
  color:var(--theme-text-muted);
  font-weight:750;
  line-height:1.45;
}

.gvl-summary{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-content:center;
}

.gvl-stat{
  border:1px solid rgba(148,163,184,.23);
  border-radius:22px;
  padding:16px 18px;
  background:rgba(255,255,255,.72);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
  min-width:0;
}

html[data-theme="dark"] .gvl-stat{
  background:rgba(15,23,42,.72);
}

.gvl-stat.is-ok{ border-color:rgba(16,185,129,.25); }
.gvl-stat.is-warning{ border-color:rgba(244,63,94,.28); }

.gvl-stat__value{
  color:var(--theme-text);
  font-size:1.85rem;
  line-height:1;
  font-weight:950;
}

.gvl-stat__label{
  margin-top:4px;
  color:var(--theme-text);
  font-weight:900;
}

.gvl-stat__hint{
  margin-top:4px;
  color:var(--theme-text-muted);
  font-size:.88rem;
  line-height:1.3;
}

.gvl-toolbar{
  position:sticky;
  top:calc(var(--dashboard-floating-content-offset, 76px) + 8px);
  z-index:22;
  display:grid;
  grid-template-columns:minmax(280px, 1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  padding:12px;
  background:rgba(255,255,255,.76);
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  box-shadow:0 18px 44px rgba(15,23,42,.08);
}

html[data-theme="dark"] .gvl-toolbar{
  background:rgba(2,6,23,.72);
}

.gvl-search-wrap{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  padding:0 16px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}

html[data-theme="dark"] .gvl-search-wrap{
  background:rgba(255,255,255,.04);
}

.gvl-search-wrap i{
  color:var(--theme-text-muted);
}

.gvl-search{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--theme-text);
  font:inherit;
  font-weight:750;
}

.gvl-filter-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.gvl-filter-tab,
.gvl-active-pill{
  min-height:42px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--theme-text);
  background:rgba(255,255,255,.6);
  font:inherit;
  font-weight:850;
  cursor:pointer;
}

html[data-theme="dark"] .gvl-filter-tab,
html[data-theme="dark"] .gvl-active-pill{
  background:rgba(255,255,255,.04);
}

.gvl-filter-tab.is-active{
  border-color:rgba(14,165,233,.38);
  background:rgba(14,165,233,.14);
  color:#0284c7;
}

.gvl-active-filters{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.gvl-active-pill.is-warning{
  border-color:rgba(244,63,94,.28);
  background:rgba(244,63,94,.10);
}

.gvl-active-pill.is-ok{
  border-color:rgba(16,185,129,.28);
  background:rgba(16,185,129,.10);
}

.gvl-courses{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.gvl-list-head{
  color:var(--theme-text-muted);
  font-weight:850;
  padding:0 6px;
}

.gvl-course-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(360px, 1fr));
  gap:14px;
}

.gvl-course-card{
  --gvl-course-color:#38bdf8;
  position:relative;
  overflow:hidden;
  border:1px solid var(--color-border-subtle);
  border-radius:24px;
  padding:18px;
  background:var(--color-surface);
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.gvl-course-card::before{
  content:"";
  position:absolute;
  inset:16px auto 16px 14px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--gvl-course-color), var(--gvl-course-color));
  opacity:.9;
}

html[data-theme="dark"] .gvl-course-card{
  background:rgba(255,255,255,.04);
}

.gvl-course-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-left:18px;
}

.gvl-course-card__title-wrap{
  min-width:0;
}

.gvl-course-card__title{
  margin:0;
  color:var(--theme-text);
  font-size:1.05rem;
  line-height:1.18;
  font-weight:950;
}

.gvl-course-card__meta{
  margin:5px 0 0 0;
  color:var(--theme-text-muted);
  font-size:.92rem;
  font-weight:750;
}

.gvl-course-status{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.22);
  background:rgba(14,165,233,.08);
  color:#0284c7;
  font-weight:900;
  font-size:.82rem;
  white-space:nowrap;
}

.gvl-course-card.is-complete .gvl-course-status{
  border-color:rgba(16,185,129,.25);
  background:rgba(16,185,129,.10);
  color:#059669;
}

.gvl-course-card.is-missing .gvl-course-status{
  border-color:rgba(244,63,94,.25);
  background:rgba(244,63,94,.10);
  color:#e11d48;
}

.gvl-slots{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  padding-left:18px;
}

.gvl-slot{
  display:flex;
  flex-direction:column;
  gap:8px;
  border:1px solid var(--color-border-subtle);
  border-radius:18px;
  padding:12px;
  background:rgba(248,250,252,.76);
}

html[data-theme="dark"] .gvl-slot{
  background:rgba(255,255,255,.03);
}

.gvl-slot.is-assigned{
  border-color:rgba(16,185,129,.25);
  background:rgba(16,185,129,.08);
}

.gvl-slot__label{
  color:var(--theme-text);
  font-weight:900;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.gvl-slot__field{
  position:relative;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  padding:0 14px;
  background:var(--color-surface);
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}

html[data-theme="dark"] .gvl-slot__field{
  background:rgba(255,255,255,.04);
}

.gvl-slot__field i{
  color:var(--theme-text-muted);
}

.gvl-autocomplete{
  position:fixed;
  left:var(--gvl-autocomplete-left, 12px);
  top:var(--gvl-autocomplete-top, 12px);
  width:var(--gvl-autocomplete-width, 260px);
  max-height:var(--gvl-autocomplete-max-height, 260px);
  z-index:2147483000;
  display:flex;
  flex-direction:column;
  gap:4px;
  box-sizing:border-box;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(148,163,184,.24);
  border-radius:18px;
  padding:6px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 54px rgba(15,23,42,.22);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
}

html[data-theme="dark"] .gvl-autocomplete{
  background:rgba(15,23,42,.94);
}

.gvl-autocomplete__item{
  width:100%;
  min-height:38px;
  border:0;
  border-radius:14px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--theme-text);
  background:transparent;
  font:inherit;
  font-weight:850;
  text-align:left;
  cursor:pointer;
}

.gvl-autocomplete__name{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gvl-autocomplete__role{
  flex:0 0 auto;
  border:1px solid rgba(14,165,233,.2);
  border-radius:999px;
  padding:3px 7px;
  color:#0284c7;
  background:rgba(14,165,233,.08);
  font-size:.72rem;
  font-weight:900;
  line-height:1;
}

html[data-theme="dark"] .gvl-autocomplete__role{
  color:#7dd3fc;
  background:rgba(14,165,233,.16);
  border-color:rgba(125,211,252,.28);
}

.gvl-autocomplete__item:hover,
.gvl-autocomplete__item:focus-visible{
  outline:0;
  background:rgba(14,165,233,.12);
}

.gvl-autocomplete__item i{
  color:#0ea5e9;
}

.gvl-autocomplete__item.is-gala-student .gvl-autocomplete__role{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.12);
  color:#b45309;
}

.gvl-autocomplete__item.is-gala-student i{
  color:#f59e0b;
}

html[data-theme="dark"] .gvl-autocomplete__item.is-gala-student .gvl-autocomplete__role{
  border-color:rgba(251,191,36,.32);
  background:rgba(251,191,36,.16);
  color:#fbbf24;
}

.gvl-input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--theme-text);
  font:inherit;
  font-weight:800;
}

.gvl-input::placeholder{
  color:var(--theme-text-muted);
}

.gvl-empty{
  border:1px dashed var(--color-border-subtle);
  border-radius:20px;
  padding:22px;
  color:var(--theme-text-muted);
  background:rgba(148,163,184,.08);
  font-weight:800;
}

@media (max-width: 1023px){
  .gvl-hero{
    grid-template-columns:1fr;
  }

  .gvl-toolbar{
    grid-template-columns:1fr;
  }

  .gvl-filter-tabs{
    justify-content:flex-start;
  }
}

/* V33.13 · Bénévoles : postes personnalisés + grille large */
.gvl-create-panel{
  border:1px solid rgba(148,163,184,.24);
  border-radius:26px;
  padding:18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(14,165,233,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(248,250,252,.70));
  box-shadow:var(--shadow-sm);
}

html[data-theme="dark"] .gvl-create-panel{
  background:
    radial-gradient(circle at 88% 10%, rgba(14,165,233,.16), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.78), rgba(2,6,23,.66));
}

.gvl-create-panel__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}

.gvl-create-panel__head h3{
  margin:0;
  color:var(--theme-text);
  font-size:1.35rem;
  line-height:1.08;
  font-weight:950;
}

.gvl-create-panel__head p:not(.gvl-eyebrow){
  margin:6px 0 0;
  color:var(--theme-text-muted);
  font-weight:800;
}

.gvl-mini-btn,
.gvl-mini-icon-btn{
  border:1px solid var(--color-border-subtle);
  background:rgba(255,255,255,.68);
  color:var(--theme-text);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}

.gvl-mini-btn{
  min-height:38px;
  border-radius:999px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.gvl-mini-icon-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  color:#e11d48;
}

html[data-theme="dark"] .gvl-mini-btn,
html[data-theme="dark"] .gvl-mini-icon-btn{
  background:rgba(255,255,255,.05);
}

.gvl-create-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.gvl-post-type-toggle{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.gvl-post-type-toggle label{
  min-height:40px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.64);
  color:var(--theme-text);
  font-weight:900;
}

html[data-theme="dark"] .gvl-post-type-toggle label{
  background:rgba(255,255,255,.04);
}

.gvl-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.gvl-field[hidden]{
  display:none !important;
}

.gvl-field span,
.gvl-need-field span{
  color:var(--theme-text-muted);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.gvl-field input,
.gvl-field select,
.gvl-need-field input{
  min-width:0;
  width:100%;
  min-height:44px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  padding:0 14px;
  background:rgba(255,255,255,.76);
  color:var(--theme-text);
  font:inherit;
  font-weight:850;
  outline:0;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

html[data-theme="dark"] .gvl-field input,
html[data-theme="dark"] .gvl-field select,
html[data-theme="dark"] .gvl-need-field input{
  background:rgba(255,255,255,.05);
}

.gvl-create-counts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.gvl-create-submit{
  grid-column:1 / -1;
  min-height:46px;
  border:1px solid rgba(16,185,129,.26);
  border-radius:999px;
  background:rgba(16,185,129,.14);
  color:#059669;
  font:inherit;
  font-weight:950;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.gvl-posts{
  width:100%;
}

.gvl-post-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}

@media (min-width: 1540px){
  .gvl-post-list{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.gvl-post-card{
  --gvl-course-color:#38bdf8;
  position:relative;
  overflow:visible;
  border:1px solid var(--color-border-subtle);
  border-radius:24px;
  padding:18px 18px 18px 28px;
  background:var(--color-surface);
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.gvl-post-card::before{
  content:"";
  position:absolute;
  inset:18px auto 18px 14px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--gvl-course-color), color-mix(in srgb, var(--gvl-course-color) 62%, transparent));
  opacity:.92;
}

html[data-theme="dark"] .gvl-post-card{
  background:rgba(255,255,255,.04);
}

.gvl-post-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.gvl-post-card__title-wrap{
  min-width:0;
}

.gvl-post-kind{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--theme-text-muted);
  font-size:.75rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:4px;
}

.gvl-post-card__title{
  margin:0;
  color:var(--theme-text);
  font-size:1.08rem;
  line-height:1.14;
  font-weight:950;
}

.gvl-post-card__meta{
  margin:5px 0 0 0;
  color:var(--theme-text-muted);
  font-size:.9rem;
  font-weight:780;
}

.gvl-post-card__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.gvl-post-card.is-complete .gvl-course-status{
  border-color:rgba(16,185,129,.25);
  background:rgba(16,185,129,.10);
  color:#059669;
}

.gvl-post-card.is-missing .gvl-course-status{
  border-color:rgba(244,63,94,.25);
  background:rgba(244,63,94,.10);
  color:#e11d48;
}

.gvl-post-card__needs{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.gvl-need-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.gvl-need-field input{
  max-width:100%;
}

.gvl-post-card .gvl-slots{
  padding-left:0;
}

.gvl-post-empty-slots,
.gvl-empty--posts{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.gvl-empty--posts i{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(14,165,233,.12);
  color:#0284c7;
  font-size:1.25rem;
}

.gvl-post-empty-slots{
  border:1px dashed var(--color-border-subtle);
  border-radius:18px;
  padding:14px;
  color:var(--theme-text-muted);
  font-weight:850;
  background:rgba(148,163,184,.08);
}

/* ==========================================================================
   Gala · Chorégraphies spéciales
   ========================================================================== */
.gala-special-shell-body{
  padding-bottom:calc(var(--dashboard-bottom-safe, 28px) + 24px);
}

.gsc-root{
  width:min(1160px, calc(100vw - 2rem));
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.gsc-hero,
.gsc-form-panel,
.gsc-toolbar,
.gsc-list{
  border:1px solid var(--color-border-subtle);
  border-radius:28px;
  background:
    radial-gradient(circle at 82% 8%, rgba(244,114,182,.16), transparent 34%),
    radial-gradient(circle at 8% 90%, rgba(14,165,233,.11), transparent 36%),
    color-mix(in srgb, var(--color-surface) 92%, transparent);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.gsc-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(360px, 480px);
  align-items:center;
  gap:24px;
  padding:34px;
  min-height:230px;
}

.gsc-hero__copy h2{
  margin:4px 0 10px 0;
  font-size:clamp(2.35rem, 5vw, 4.45rem);
  line-height:.9;
  letter-spacing:-.06em;
  font-weight:980;
  color:var(--theme-text);
}

.gsc-hero__copy p{
  max-width:560px;
  margin:0;
  color:var(--theme-text-muted);
  font-weight:850;
  line-height:1.45;
}

.gsc-eyebrow{
  margin:0 0 8px 0;
  color:#e11d48;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:.72rem;
  font-weight:950;
}

.gsc-summary{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.gsc-stat{
  min-height:92px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.22);
  background:color-mix(in srgb, var(--color-surface) 82%, transparent);
  box-shadow:0 14px 35px rgba(15,23,42,.08);
}

.gsc-stat strong{
  display:block;
  font-size:1.65rem;
  line-height:1;
  font-weight:980;
  color:var(--theme-text);
}

.gsc-stat span,
.gsc-stat small{
  display:block;
}

.gsc-stat span{
  margin-top:6px;
  font-weight:950;
  color:var(--theme-text);
}

.gsc-stat small{
  margin-top:4px;
  color:var(--theme-text-muted);
  font-weight:750;
}

.gsc-stat.is-main{ border-color:rgba(14,165,233,.24); }
.gsc-stat.is-ok{ border-color:rgba(16,185,129,.24); }

.gsc-form-panel{
  padding:20px;
}

.gsc-form-panel__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.gsc-form-panel__head h3{
  margin:0;
  font-size:1.45rem;
  font-weight:950;
  color:var(--theme-text);
}

.gsc-form-panel__head p:not(.gsc-eyebrow){
  margin:5px 0 0 0;
  color:var(--theme-text-muted);
  font-weight:780;
}

.gsc-mini-btn,
.gsc-mini-icon-btn{
  border:1px solid var(--color-border-subtle);
  background:color-mix(in srgb, var(--color-surface) 88%, transparent);
  color:var(--theme-text);
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.07);
}

.gsc-mini-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border-radius:999px;
}

.gsc-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.gsc-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.gsc-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}

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

.gsc-field span{
  color:var(--theme-text-muted);
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.gsc-field input,
.gsc-field select,
.gsc-field textarea,
.gsc-search-wrap input{
  width:100%;
  min-height:46px;
  border:1px solid var(--color-border-subtle);
  border-radius:999px;
  background:color-mix(in srgb, var(--color-surface) 88%, transparent);
  color:var(--theme-text);
  font-weight:850;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 12px 28px rgba(15,23,42,.07);
}

.gsc-field input,
.gsc-field select{
  padding:0 16px;
}

.gsc-field textarea{
  min-height:90px;
  border-radius:20px;
  padding:13px 16px;
  resize:vertical;
}


.gsc-costume-field{
  gap:10px;
}

.gsc-costume-source-toggle{
  margin:0 0 4px;
}

.gsc-costume-preview{
  margin-top:0;
}

.gsc-costume-selection{
  width:100%;
}

.gsc-costume-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gsc-costume-thumb{
  width:82px;
  height:82px;
  flex:0 0 82px;
  border:1px solid var(--color-border-subtle);
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:color-mix(in srgb, var(--color-surface) 88%, transparent);
  color:var(--theme-text-muted);
  box-shadow:0 14px 32px rgba(15,23,42,.08);
}

.gsc-costume-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.gsc-costume-hint{
  margin:0;
}

.gsc-student-picker{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border:1px solid color-mix(in srgb, var(--color-border-subtle) 82%, #38bdf8 18%);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(14,165,233,.08), rgba(236,72,153,.06));
}

.gsc-selected-students{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.gsc-student-chip,
.gsc-empty-chip{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 11px;
  border-radius:999px;
  font-weight:900;
}

.gsc-student-chip{
  border:1px solid rgba(14,165,233,.22);
  background:rgba(14,165,233,.10);
  color:#0284c7;
  cursor:pointer;
}

.gsc-empty-chip{
  border:1px dashed var(--color-border-subtle);
  background:rgba(148,163,184,.08);
  color:var(--theme-text-muted);
}

.gsc-field--student-search input{
  border-radius:18px;
}

.gsc-student-suggestions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.gsc-student-suggestion{
  min-height:40px;
  border:1px solid var(--color-border-subtle);
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  background:color-mix(in srgb, var(--color-surface) 86%, transparent);
  color:var(--theme-text);
  font-weight:900;
  cursor:pointer;
}

.gsc-picker-hint{
  margin:0;
  color:var(--theme-text-muted);
  font-weight:780;
}

.gsc-form-actions{
  display:flex;
  justify-content:flex-end;
}

.gsc-submit{
  min-height:46px;
  border:1px solid rgba(16,185,129,.32);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 20px;
  background:linear-gradient(135deg, rgba(187,247,208,.92), rgba(167,243,208,.82));
  color:#047857;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 16px 32px rgba(16,185,129,.16);
}

.gsc-toolbar{
  padding:12px;
}

.gsc-search-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.gsc-search-wrap i{
  position:absolute;
  left:16px;
  color:var(--theme-text-muted);
  pointer-events:none;
}

.gsc-search-wrap input{
  padding:0 16px 0 42px;
}

.gsc-list{
  padding:14px;
}

.gsc-list-head{
  margin:2px 4px 12px 4px;
  color:var(--theme-text);
  font-weight:900;
}

.gsc-card-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.gsc-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--color-border-subtle);
  border-radius:24px;
  padding:16px 16px 16px 28px;
  background:color-mix(in srgb, var(--color-surface) 90%, transparent);
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

.gsc-card::before{
  content:'';
  position:absolute;
  top:16px;
  bottom:16px;
  left:11px;
  width:4px;
  border-radius:999px;
  background:var(--gsc-accent, #38bdf8);
  box-shadow:0 0 22px color-mix(in srgb, var(--gsc-accent, #38bdf8) 38%, transparent);
}

.gsc-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.gsc-type-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:0 10px;
  border:1px solid color-mix(in srgb, var(--gsc-accent, #38bdf8) 38%, var(--color-border-subtle));
  border-radius:999px;
  background:color-mix(in srgb, var(--gsc-accent, #38bdf8) 12%, var(--color-surface) 88%);
  color:var(--theme-text);
  font-weight:950;
  font-size:.78rem;
}

.gsc-card h3{
  margin:9px 0 0 0;
  color:var(--theme-text);
  font-weight:980;
  line-height:1.1;
}

.gsc-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:8px 0 0 0;
  color:var(--theme-text-muted);
  font-weight:820;
}

.gsc-card__meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.gsc-card__actions{
  display:flex;
  flex:0 0 auto;
  gap:7px;
}

.gsc-mini-icon-btn{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
}

.gsc-mini-icon-btn.is-danger{
  border-color:rgba(244,63,94,.28);
  color:#e11d48;
  background:rgba(244,63,94,.08);
}

.gsc-card__students{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.gsc-card-student{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.18);
  background:rgba(14,165,233,.08);
  color:var(--theme-text);
  font-weight:850;
}

.gsc-muted{
  color:var(--theme-text-muted);
  font-weight:820;
}

.gsc-card__notes{
  margin:12px 0 0 0;
  color:var(--theme-text-muted);
  font-weight:780;
  line-height:1.35;
}


.gsc-transfer-panel{
  margin-top:14px;
  padding:14px;
  border:1px solid color-mix(in srgb, var(--gsc-accent, #38bdf8) 24%, var(--color-border-subtle));
  border-radius:20px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--gsc-accent, #38bdf8) 9%, var(--color-surface) 91%) 0%,
    color-mix(in srgb, var(--color-surface) 92%, transparent) 100%);
  display:grid;
  gap:12px;
}

.gsc-transfer-panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.gsc-transfer-title{
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--theme-text);
  font-weight:950;
}

.gsc-field--transfer-target{
  margin:0;
}

.gsc-transfer-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.gsc-transfer-btn{
  min-height:42px;
  border-radius:999px;
  border:1px solid rgba(14,165,233,.25);
  background:rgba(14,165,233,.12);
  color:var(--theme-text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  font-weight:950;
  cursor:pointer;
}

.gsc-transfer-btn.is-move{
  border-color:rgba(168,85,247,.25);
  background:rgba(168,85,247,.12);
}

.gsc-empty{
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  color:var(--theme-text-muted);
  font-weight:850;
}

.gsc-empty i{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(236,72,153,.12);
  color:#db2777;
  font-size:1.35rem;
}

.gsc-empty strong{
  color:var(--theme-text);
  font-size:1.2rem;
  font-weight:950;
}

/* V34.7.1 · Entracte déplaçable dans la vue du gala */
.gala-program-break {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 0;
  color: var(--theme-text-muted);
  opacity: 1;
}

.gala-program-break__handle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 18px;
  border: 1px dashed color-mix(in srgb, var(--color-border-subtle) 78%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-surface) 84%, transparent), transparent),
    color-mix(in srgb, var(--color-surface-soft) 70%, transparent);
  color: var(--theme-text-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  box-shadow: 0 10px 26px color-mix(in srgb, #000 6%, transparent);
}

.gala-program-break__handle:active,
.gala-program-break.is-dragging .gala-program-break__handle,
.gala-program-break.is-pointer-dragging .gala-program-break__handle {
  cursor: grabbing;
  border-style: solid;
  border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border-subtle));
  color: color-mix(in srgb, var(--color-primary) 72%, var(--theme-text) 28%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent),
    0 14px 32px color-mix(in srgb, #000 10%, transparent);
}

.gala-program-item.is-drop-before::before,
.gala-program-item.is-drop-after::after {
  content: var(--gala-drop-label, 'Insérer ici');
}

.gala-program-item.is-drop-break-target::before,
.gala-program-item.is-drop-break-target::after {
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, #f59e0b 82%, white 18%) 16%,
    color-mix(in srgb, #f59e0b 92%, var(--color-accent) 8%) 84%,
    transparent);
  color: color-mix(in srgb, #f59e0b 70%, var(--theme-text) 30%);
  box-shadow:
    0 0 0 5px color-mix(in srgb, #f59e0b 10%, transparent),
    0 8px 20px color-mix(in srgb, #f59e0b 24%, transparent);
}

.gala-program-board,
.gala-program-board *,
.gala-program-break__handle,
.gala-program-break__handle * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
