/* Page détail cours régulier — alignée maquette V2 */

.course-detail-shell {
  display: flex;
  min-height: calc(100vh - var(--dancr-topbar-height) - 120px);
}

.course-detail-shell--no-sidebar .course-detail-main {
  margin: 0 auto;
  width: 100%;
}

/* Footer minimal (layout_shell=minimal sur fiche cours) */
.layout-minimal-footer {
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dancr-text-muted, #666);
}

.layout-minimal-footer__copy {
  margin: 0;
}

.layout-minimal-footer a {
  color: var(--dancr-orange, #f29a30);
  text-decoration: none;
}

.dancr-topbar--minimal .dancr-topbar__actions {
  margin-left: auto;
}

.course-detail-main {
  flex: 1;
  padding: 1.5rem 1.75rem 3rem;
  min-width: 0;
  max-width: 1100px;
}

/* Hero */
.course-detail-hero {
  height: 200px;
  border-radius: var(--dancr-radius-lg);
  background: linear-gradient(90deg, #e8dff5 0%, #fdebd0 55%, #f8efe6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.course-detail-hero__emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Titre + CTA */
.course-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.course-detail-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.35rem 0 0.25rem;
  line-height: 1.2;
}

.course-detail-subtitle {
  color: var(--dancr-text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.course-detail-price-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.course-detail-price-list__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(242, 154, 48, 0.12);
  font-size: 0.9rem;
}

.course-detail-price-list__label {
  color: var(--dancr-text-muted);
}

.course-detail-price-list__amount {
  color: var(--dancr-text);
  font-weight: 800;
}

.course-detail-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--dancr-radius-pill);
  background: var(--dancr-badge-regular);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.course-detail-badge--independent {
  background: #eef6ff;
  color: #1a5fb4;
}

.course-detail-cta-hint--independent {
  max-width: 22rem;
  line-height: 1.45;
}

.course-stat-pill--independent {
  border-color: #c8e1ff;
  background: #f8fbff;
}

.course-detail-header__cta {
  text-align: right;
  flex-shrink: 0;
}

.course-detail-cta {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--dancr-radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.course-detail-cta:hover {
  background: #333;
  color: #fff;
}

.course-detail-cta--admin {
  background: #fff;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  margin-bottom: 0.55rem;
}

.course-detail-cta--admin:hover {
  background: #f4f4f4;
  color: #1a1a1a;
}

.course-detail-cta-hint {
  font-size: 0.78rem;
  color: var(--dancr-text-muted);
  margin: 0.45rem 0 0;
  max-width: 200px;
  margin-left: auto;
  text-align: center;
  line-height: 1.3;
}

/* Bloc central : prof/école + stats verticales */
.course-detail-middle {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.course-detail-middle__left {
  flex: 1;
  min-width: 0;
}

/* Panneau unique prof + école */
.course-people-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--dancr-radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.course-people-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #efefef;
  transition: background 0.15s;
}

.course-people-row:hover {
  background: #fafafa;
}

.course-people-row--last {
  border-bottom: none;
}

a.course-people-row:hover .course-people-row__name {
  color: var(--dancr-orange);
}

.course-people-row__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.course-people-row__avatar--teacher {
  background: #f0f0f0;
}

.course-people-row__avatar--school {
  background: var(--dancr-peach);
}

.course-people-row__body {
  flex: 1;
  min-width: 0;
}

.course-people-row__name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  word-break: break-word;
}

.course-people-row__role {
  font-size: 0.82rem;
  color: var(--dancr-text-muted);
  margin-top: 0.15rem;
}

.course-people-row__chevron {
  color: #bbb;
  font-size: 1.35rem;
  font-weight: 300;
  flex-shrink: 0;
}

.course-detail-description {
  margin: 1rem 0 0;
  padding: 0 0.15rem;
  line-height: 1.65;
  color: var(--dancr-text-muted);
  font-size: 0.92rem;
}

/* 3 tuiles empilées à droite */
.course-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 200px;
  flex-shrink: 0;
}

.course-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--dancr-radius-md);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.course-stat-pill__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dancr-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.course-stat-pill__icon--enroll {
  font-size: 1rem;
}

.course-stat-pill__value {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.course-stat-pill__value--small {
  font-size: 0.82rem;
  font-weight: 600;
}

.course-stat-pill__label {
  font-size: 0.75rem;
  color: var(--dancr-text-muted);
  margin-top: 0.15rem;
}

/* Séances — carrousel style maquette */
.course-sessions-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.course-sessions-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}

.course-session-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  min-height: 220px;
  border-radius: var(--dancr-radius-lg);
  padding: 0.85rem;
  background: linear-gradient(145deg, #ebe4f8 0%, #fdebd0 70%, #fff8f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.course-session-card.is-cancelled {
  background: #f3f3f3;
  border-color: #e5e5e5;
  opacity: 0.85;
}

.course-session-card.is-focused {
  outline: 2px solid var(--dancr-orange);
  outline-offset: 2px;
}

.course-session-card__date {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.course-session-routine-thumb {
  position: relative;
  flex: 1;
  min-height: 120px;
  border-radius: var(--dancr-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.course-session-routine-thumb img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.course-session-routine-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.course-session-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.course-session-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin: 0;
  padding: 1.5rem 0.25rem;
}

.course-session-link {
  font-size: 0.8rem;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: underline;
  text-align: center;
  margin-top: auto;
}

.course-session-card.is-cancelled .course-session-link {
  display: none;
}

@media (max-width: 900px) {
  .course-detail-shell {
    flex-direction: column;
  }

  .course-detail-middle {
    flex-direction: column;
  }

  .course-stat-stack {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .course-stat-pill {
    flex: 1 1 140px;
  }

  .course-detail-header__cta {
    text-align: left;
    width: 100%;
  }

  .course-detail-cta-hint {
    margin-left: 0;
    text-align: left;
  }
}

.course-pending-checkout-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.course-pending-checkout-banner p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6d4c00;
}

.course-pending-checkout-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.course-detail-cta--resume {
  display: inline-block;
  width: auto;
  font-size: 0.92rem;
}

.course-pending-checkout-cancel-form {
  margin: 0;
}

.course-pending-checkout-cancel-btn {
  font-size: 0.88rem;
}

.course-enroll-school-year-banner {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  background: #fff6eb;
  border: 1px solid #f5d4a8;
  color: #5c3d12;
  font-size: 0.82rem;
  line-height: 1.45;
}

.course-enroll-school-year-banner--prereg {
  background: #eef6ff;
  border-color: #b8d4f5;
  color: #1a3f66;
}

.course-enroll-school-year-banner__until {
  display: inline;
  font-weight: 500;
}

.course-enroll-price-breakdown {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #ececec;
  font-size: 0.86rem;
}

.course-enroll-price-breakdown__title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dancr-text-muted, #666);
}

.course-enroll-price-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
}

.course-enroll-price-breakdown__row--extra span:last-child {
  font-weight: 600;
}

.course-enroll-price-breakdown__row--ok span:last-child {
  color: #0a7a4b;
  font-size: 0.82rem;
}

.course-enroll-price-breakdown__row--total {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.course-enroll-price-breakdown__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--dancr-text-muted, #666);
  line-height: 1.4;
}

.course-enroll-price-detail {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--dancr-text-muted, #666);
}

.course-enroll-price-detail__hint {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.course-enroll-variant-block + .course-enroll-variant-block {
  margin-top: 0.75rem;
}

.course-enroll-modal[hidden] {
  display: none !important;
}

.course-enroll-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.course-enroll-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.course-enroll-modal__panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: var(--dancr-radius-lg, 12px);
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.course-enroll-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.course-enroll-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.course-enroll-modal__school-year {
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: #fff6eb;
  border: 1px solid #f5d4a8;
  color: #5c3d12;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.course-enroll-modal__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--dancr-text-muted, #666);
}

.course-enroll-modal__lines {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid #eee;
}

.course-enroll-modal__lines li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}

.course-enroll-modal__lines li.is-discount {
  color: #0a7a4b;
}

.course-enroll-modal__cart-courses {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  list-style: none;
  background: #f5f5f5;
  border-radius: 8px;
}

.course-enroll-modal__cart-courses li {
  padding: 0.2rem 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.course-enroll-modal__cart-courses li::before {
  content: '📚 ';
}

.course-enroll-modal__fee-notes {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
}

.course-enroll-modal__fee-notes li {
  font-size: 0.82rem;
  color: #0a7a4b;
  padding: 0.15rem 0;
}

.course-enroll-modal__fee-notes li::before {
  content: '✓ ';
}

.course-enroll-modal__ghost--danger {
  color: #b42318;
  border-color: #f5c2c0;
}

.course-enroll-modal__total {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.course-enroll-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-enroll-modal__ghost {
  border: 1px solid var(--dancr-border, #ddd);
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.course-enroll-modal__status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.course-enroll-cart-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1a1a1a;
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.course-enroll-cart-bar__btn {
  border: none;
  background: var(--dancr-orange, #f5a623);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
