.course-page .site-header {
  position: relative;
  height: auto;
  background: rgba(156, 142, 127, 0.562);
}

.course-page .header-container {
  background-color: rgba(156, 142, 127, 0.562);
  height: auto;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.course-page .header-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.course-page .course-section {
  padding-top: 48px;
}

.course-page .course-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-page .course-offer {
  order: 1;
  margin-top: 24px;
}

.course-page .course-learning {
  order: 2;
  margin-top: 40px;
}

.course-page .course-location {
  order: 3;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #e5d6c5;
  border-radius: 12px;
}

.course-page .course-location p {
  margin-top: 12px;
}

.course-page .course-inscription {
  order: 4;
  margin-top: 32px;
  padding: 24px;
  background: #fffaf5;
  border: 1px solid #e5d6c5;
  border-radius: 12px;
  scroll-margin-top: 24px;
}

.course-inscription[hidden] {
  display: none;
}

.course-inscription h2 {
  font-family: var(--font-serif);
  margin-bottom: 12px;
}

.course-inscription label {
  display: block;
  margin: 18px 0 6px;
}

.course-inscription input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  font: inherit;
  border: 1px solid #c7bbae;
  border-radius: 6px;
  background: #fff;
}

.course-inscription input[readonly] {
  background: #f1ece6;
}

.course-inscription button {
  margin-top: 24px;
}

.course-page #course-status {
  grid-column: 1 / -1;
  color: #60442d;
  overflow-wrap: anywhere;
}

.course-page #course-status:empty {
  display: none;
}

.course-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid #b78e69;
  border-radius: 999px;
  background: #f6e8d9;
  color: #3e2d21;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(48, 33, 22, .08);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.course-home-link svg { flex-shrink: 0; transition: transform .2s ease; }
.course-home-link:hover { background: #e6c8a9; color: #302116; box-shadow: 0 5px 16px rgba(48, 33, 22, .14); transform: translateY(-2px); }
.course-home-link:hover svg { transform: translateX(-3px); }
.course-home-link:focus-visible { outline: 3px solid #b78e69; outline-offset: 5px; }

.course-page .course-footer {
  padding: 52px 0 24px;
  background: linear-gradient(120deg, #302a27, #433933);
  color: #f5ece1;
  border-top: 3px solid #c5a880;
}

.course-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 34px; }
.course-footer-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.course-footer-monogram { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border: 1px solid #a98b69; border-radius: 50%; color: #dfc3a0; font: 2rem var(--font-serif); }
.course-footer-eyebrow { color: #dfc3a0; font-size: .65rem; font-weight: 600; letter-spacing: .18em; }
.course-footer-name { margin: 6px 0 8px; font: 1.8rem var(--font-serif); line-height: 1.2; }
.course-footer-description { color: #d5c8bc; font-size: .82rem; line-height: 1.6; }
.course-home-link-footer { flex-shrink: 0; background: transparent; color: #f5ece1; border-color: #a98b69; box-shadow: none; }
.course-home-link-footer:hover { background: #e6c8a9; }
.course-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(223, 195, 160, .2); color: #cbbbaf; font-size: .72rem; line-height: 1.6; }

@media (max-width: 767px) {
  .course-page .course-footer { padding-top: 36px; }
  .course-footer-main { flex-direction: column; align-items: flex-start; gap: 26px; padding-bottom: 28px; }
  .course-footer-brand { gap: 14px; }
  .course-footer-monogram { width: 48px; height: 48px; font-size: 1.5rem; }
  .course-footer-name { font-size: 1.5rem; }
  .course-footer-bottom { flex-direction: column; gap: 6px; }
}

.course-page .user-nav-menu {
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .course-page .header-container {
    justify-content: center;
  }

  .course-page .header-actions {
    width: 100%;
    justify-content: center;
  }

  .course-page .course-section {
    padding-top: 28px;
  }

  .course-page .course-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .course-page .course-image-column {
    position: static;
  }

  .course-page .course-image {
    max-height: 420px;
    object-position: center;
  }

  .course-page .course-inscription {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
