/* Pôle Supérieur - formations (timeline) + événements */

.sup-filiere-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.sup-filiere-hero__media {
  position: absolute;
  inset: 0;
}

.sup-filiere-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sup-filiere-hero__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 50%;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1.1rem;
  color: #fff;
}

.sup-filiere-hero__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}

.sup-filiere-hero__intro {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (min-width: 1280px) {
  .sup-filiere-hero__title {
    font-size: 1.1875rem;
  }

  .sup-filiere-hero__intro {
    font-size: 0.875rem;
  }
}

.sup-level-row {
  --sup-joint-y: 1.375rem;
  --sup-badge-w: 4.5rem;
  --sup-track-w: 1.125rem;
  --sup-row-gap: 0.5rem;
  display: grid;
  grid-template-columns: var(--sup-badge-w) var(--sup-track-w) minmax(0, 1fr);
  column-gap: var(--sup-row-gap);
  align-items: stretch;
}

.sup-level-row--multiple .sup-level-track {
  align-self: stretch;
  min-height: 100%;
}

.sup-level-row--multiple .sup-level-rail {
  bottom: 0;
}

.sup-level-badge-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--sup-joint-y) - 0.875rem);
}

.sup-level-rail__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sup-badge-w);
  border-radius: 9999px;
  padding: 0.4rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #fff;
}

.sup-level-track {
  position: relative;
  align-self: stretch;
  min-height: 100%;
  pointer-events: none;
}

.sup-level-row--condensed {
  align-items: center;
}

.sup-level-row--condensed .sup-level-badge-wrap {
  padding-top: 0;
  align-self: center;
}

.sup-level-row--condensed .sup-level-track {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 0;
  height: auto;
}

.sup-level-row--condensed .sup-level-joint {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.sup-level-row--condensed .sup-level-content {
  display: flex;
  align-items: center;
  align-self: center;
  min-height: 2.75rem;
}

.sup-level-row--condensed .sup-level-content > p {
  margin: 0;
  line-height: 1.35;
}

.sup-level-row--condensed .sup-level-course-link {
  width: 100%;
}

.sup-level-joint {
  position: absolute;
  top: var(--sup-joint-y);
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.sup-level-joint__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--sup-accent, #ee7773);
  transform: translate(-50%, -50%);
}

.sup-level-joint__arm {
  position: absolute;
  top: 0;
  right: 0;
  height: 2px;
  /* Du cercle jusqu’au bord droit de la pastille (pas à travers le texte) */
  width: calc(var(--sup-row-gap) + (var(--sup-track-w) / 2));
  background: var(--sup-accent, #ee7773);
  transform: translateY(-50%);
}

.sup-level-rail {
  position: absolute;
  top: var(--sup-joint-y);
  left: 50%;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.sup-level-rail::before {
  content: "";
  flex: 1 1 auto;
  width: 2px;
  min-height: 0;
  background: color-mix(in srgb, var(--sup-accent, #ee7773) 48%, #c5cad6);
}

.sup-level-down__arrow {
  flex-shrink: 0;
  display: block;
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--sup-accent, #ee7773);
}

.sup-level-content {
  min-width: 0;
}

.sup-level-courses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sup-level-courses > li {
  margin: 0;
}

.sup-level-course-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.75rem;
  border: 1px solid #aaaaab;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3e4a66;
  text-decoration: none;
  background: #fff;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.sup-level-course-link:hover {
  color: var(--sup-accent, #ee7773);
  border-color: color-mix(in srgb, var(--sup-accent, #ee7773) 55%, #aaaaab);
}

.sup-filiere-card .sup-level-course-link__chevron {
  flex-shrink: 0;
  color: var(--sup-accent, #ee7773);
}

.sup-level-special-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sup-level-special-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #aaaaab;
  border-radius: 8px;
  text-decoration: none;
  color: #3e4a66;
  background: #fff;
  transition: border-color 0.2s ease;
}

a.sup-level-special-card:hover {
  border-color: color-mix(in srgb, var(--sup-accent, #ee7773) 55%, #aaaaab);
}

span.sup-level-special-card {
  cursor: default;
}

.sup-level-special-card__badge {
  display: flex;
  flex: 0 0 32%;
  align-items: center;
  justify-content: center;
  max-width: 8.25rem;
  padding: 0.6rem 0.45rem;
  background: var(--sup-accent, #ee7773);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.sup-level-special-card__body {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
}

.sup-level-special-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.sup-level-special-card__chevron {
  flex-shrink: 0;
  color: var(--sup-accent, #ee7773);
}

#formations {
  padding-bottom: 3.25rem;
}

@media (min-width: 768px) {
  #formations {
    padding-bottom: 3.5rem;
  }
}

.sup-recherche-section {
  padding-top: 0;
  padding-bottom: 3.25rem;
}

@media (min-width: 768px) {
  .sup-recherche-section {
    padding-bottom: 3.5rem;
  }
}

.sup-recherche-section form select,
.sup-recherche-section form input[type="search"] {
  font-size: 0.9375rem;
  line-height: 1.35;
  padding-bottom: 0.625rem;
  padding-left: 0.875rem;
  padding-top: 0.625rem;
}

.sup-recherche-section form select {
  padding-right: 2.5rem;
}

.sup-recherche-section form input[type="search"] {
  padding-right: 0.875rem;
}

.sup-recherche-section form .relative > img.pointer-events-none {
  height: 1.25rem;
  right: 0.875rem;
  width: 1.25rem;
}

.sup-recherche-section form button[type="submit"].btn-salmon {
  font-size: 1rem;
  gap: 0.5rem;
  height: auto;
  line-height: 1.25;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
}

.sup-recherche-section form button[type="submit"] img {
  height: 1.25rem;
  width: 1.25rem;
}

.sup-residence-section {
  padding-top: 0;
  padding-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .sup-residence-section {
    padding-bottom: 2rem;
  }
}

.sup-residence-promo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--color-navy-dark, #020d22);
  color: #fff;
}

.sup-residence-promo__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: 1.75rem 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .sup-residence-promo__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2.25rem 2rem 2rem 2.25rem;
  }
}

.sup-residence-promo__top-rule {
  margin-bottom: 1rem;
}

.sup-residence-promo__kicker {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-salmon, #ee7773);
}

.sup-residence-promo__title {
  margin: 0.85rem 0 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.sup-residence-promo__title .text-page-accent {
  color: var(--page-accent, var(--color-salmon, #ee7773));
}

@media (min-width: 768px) {
  .sup-residence-promo__title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .sup-residence-promo__title {
    font-size: 2.25rem;
  }
}

.sup-residence-promo__text {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.88);
}

@media (min-width: 768px) {
  .sup-residence-promo__text {
    font-size: 1.125rem;
  }
}

.sup-residence-promo__cta {
  margin-top: 1.75rem;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.625rem 1.25rem;
  text-transform: uppercase;
}

.sup-residence-promo__cta img {
  height: 1rem;
  width: 1rem;
}

.sup-residence-promo__media {
  min-width: 0;
}

.sup-residence-promo__photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 14rem;
  max-height: 22rem;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .sup-residence-promo__photo {
    min-height: 18rem;
    max-height: none;
    height: 100%;
    max-height: 20rem;
  }
}

.sup-events-section {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .sup-events-section {
    padding-top: 1.75rem;
    padding-bottom: 5rem;
  }
}

/* Événements / actualités (maquette Figma) */
.sup-events-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .sup-events-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.sup-events-layout__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-content: start;
  min-height: 0;
}

@media (min-width: 640px) {
  .sup-events-layout__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sup-events-layout__cards {
    height: 100%;
    align-content: stretch;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

/* Carte mise en avant : image | contenu */
.sup-event-featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background-color: #020d22;
  color: #fff;
  min-height: 0;
}

@media (min-width: 768px) {
  .sup-event-featured {
    flex-direction: row;
    align-items: stretch;
    min-height: 22rem;
  }
}

@media (min-width: 1024px) {
  .sup-event-featured {
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }
}

.sup-event-featured__media-wrap {
  flex: 1 1 50%;
  min-height: 12rem;
  min-width: 0;
  display: flex;
}

@media (min-width: 768px) {
  .sup-event-featured__media-wrap {
    min-height: 0;
    align-self: stretch;
  }
}

.sup-event-featured__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .sup-event-featured__media {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }
}

.sup-event-featured__body {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 1.25rem 1.35rem 1.35rem;
}

@media (min-width: 768px) {
  .sup-event-featured__body {
    padding: 1.35rem 1.5rem 1.5rem;
  }
}

.sup-event-featured__badge {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ee7773;
}

.sup-event-featured__title {
  margin: 0.65rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .sup-event-featured__title {
    font-size: 1.5rem;
  }
}

.sup-event-featured__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.92);
}

.sup-event-featured__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
}

.sup-event-featured__meta-row img {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.95;
}

.sup-event-featured__summary {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.9);
}

.sup-event-featured__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sup-event-featured__cta img {
  height: 1rem;
  width: 1rem;
}

/* Cartes secondaires */
.sup-event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #878787;
  background: #fff;
  min-height: 0;
}

@media (min-width: 480px) {
  .sup-event-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 9.5rem;
  }
}

@media (min-width: 1024px) {
  .sup-event-card {
    height: 100%;
    min-height: 0;
  }
}

.sup-event-card__media-wrap {
  flex: 0 0 auto;
  width: 100%;
  height: 8rem;
}

@media (min-width: 480px) {
  .sup-event-card__media-wrap {
    width: 38%;
    max-width: 9.5rem;
    align-self: stretch;
    height: auto;
    min-height: 100%;
  }
}

.sup-event-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sup-event-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem 0.85rem 0.85rem;
}

@media (min-width: 480px) {
  .sup-event-card__body {
    padding: 0.65rem 0.75rem 0.75rem;
  }
}

.sup-event-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.sup-event-card__badge {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ee7773;
}

.sup-event-card__date {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #aaaaab;
  white-space: nowrap;
}

.sup-event-card__title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3e4a66;
}

@media (min-width: 1024px) {
  .sup-event-card__title {
    font-size: 0.9375rem;
  }
}

.sup-event-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3e4a66;
  text-decoration: none;
}

.sup-event-card__more:hover {
  color: #020d22;
}

