/* --- Guide interactif : concours UEH 2026–2027 ---------------------------
   Le contenu officiel reste lisible sans JavaScript. La recherche, la
   sélection, le calendrier et la checklist sont des améliorations légères. */
.content.article-wide {
  max-width: var(--wrap);
}

.ueh-page-hero {
  padding-top: 54px;
  padding-bottom: 50px;
}

.ueh-page-hero .breadcrumb {
  margin-bottom: 14px;
}

.ueh-page-hero .h1 {
  max-width: 820px;
  margin-top: 5px;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.ueh-hero-kicker {
  color: var(--blue);
  font: 800 12px/1.35 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ueh-hero-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

.ueh-page-hero .legal-meta {
  margin-top: 15px;
}

.ueh-article-intro {
  max-width: 740px;
}

.ueh-status,
.ueh-guide {
  margin-top: 34px;
}

.ueh-status {
  padding: clamp(22px, 3.4vw, 32px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(127, 212, 184, 0.24), transparent 70%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.content .ueh-status h2,
.content .ueh-guide h2,
.content .ueh-guide h3 {
  margin: 0;
}

.content .ueh-status h2 {
  max-width: 660px;
  color: var(--white);
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.ueh-kicker {
  margin-bottom: 7px !important;
  color: var(--blue) !important;
  font: 760 11.5px/1.35 var(--sans) !important;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.ueh-status .ueh-kicker {
  color: var(--mint) !important;
}

.content .ueh-deadline {
  margin-top: 9px;
  color: #dce7fb;
  font-size: 15px;
  font-weight: 550;
}

.ueh-deadline.is-closed {
  color: #fed7aa;
}

.ueh-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.ueh-facts div {
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.08);
}

.ueh-facts strong,
.ueh-facts span {
  display: block;
}

.ueh-facts strong {
  font: 660 clamp(19px, 2.2vw, 23px)/1.15 var(--sans);
  color: var(--white);
}

.ueh-facts span {
  margin-top: 4px;
  color: #c8d5ea;
  font-size: 13px;
}

.ueh-status .action-row {
  margin-top: 20px;
}

.ueh-status .btn {
  min-height: 43px;
  padding: 10px 17px;
  font-size: 13.5px;
}

.ueh-status .btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: none;
}

.ueh-status .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
}

.ueh-guide {
  display: grid;
  gap: 28px;
}

.ueh-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.ueh-section-heading > div {
  max-width: 770px;
}

.content .ueh-section-heading h2 {
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.content .ueh-section-heading p:not(.ueh-kicker) {
  margin-top: 8px;
  color: var(--muted);
}

.ueh-section-heading.compact {
  align-items: center;
}

.ueh-count-badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font: 750 13px var(--sans);
  white-space: nowrap;
}

.ueh-planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas: "browser selection";
  gap: 22px;
  align-items: start;
}

.ueh-entity-browser {
  grid-area: browser;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ueh-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.ueh-filters label {
  display: grid;
  gap: 6px;
  color: var(--slate);
  font: 700 12.5px var(--sans);
}

.ueh-filters input,
.ueh-filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccd6e5;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 15px var(--body);
}

.ueh-filters input:focus,
.ueh-filters select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--ring);
}

.ueh-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12.5px;
}

.ueh-results-meta strong {
  color: var(--slate);
}

.ueh-entity-list,
.ueh-selected-list,
.ueh-step-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.ueh-entity-list {
  max-height: 650px;
  overflow-y: auto;
}

.content .ueh-entity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.ueh-entity-row:last-child {
  border-bottom: 0;
}

.ueh-entity-row[hidden] {
  display: none;
}

.ueh-entity-row.is-selected {
  background: #f1faf7;
  box-shadow: inset 3px 0 var(--mint);
}

.ueh-entity-copy {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.ueh-acronym {
  color: var(--blue);
  font: 800 12px/1.35 var(--sans);
  letter-spacing: 0.025em;
}

.content .ueh-entity-copy strong {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
}

.content .ueh-entity-row time {
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}

.ueh-select-button {
  display: none;
  min-width: 72px;
  min-height: 38px;
  border: 1px solid #c8d4e7;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--white);
  color: var(--blue);
  font: 750 12.5px var(--sans);
  cursor: pointer;
}

.js .ueh-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ueh-select-button[aria-pressed="true"] {
  border-color: #93e8c1;
  background: #eafaf3;
  color: #08775a;
}

.ueh-select-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ueh-selection {
  position: sticky;
  top: 96px;
  grid-area: selection;
  padding: 20px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius-lg);
  background: #f6f9ff;
  box-shadow: var(--shadow-sm);
}

.ueh-selection-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ueh-selection-heading .i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.content .ueh-selection-heading h3 {
  font-size: 20px;
}

.content .ueh-selection-heading p,
.content .ueh-selection > small {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.content .ueh-selection-empty {
  margin-top: 20px;
  padding: 18px 12px;
  border: 1px dashed #b9c8df;
  border-radius: 10px;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
}

.ueh-selected-list {
  display: grid;
  gap: 8px;
  margin-top: 18px !important;
}

.content .ueh-selected-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.ueh-selected-list span {
  color: var(--muted);
  text-align: right;
}

.content .ueh-conflict {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12.5px;
  line-height: 1.45;
}

.ueh-calendar-button {
  width: 100%;
  margin-top: 16px;
}

.ueh-calendar-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.content .ueh-selection > small {
  display: block;
  margin-top: 9px;
  text-align: center;
}

.ueh-process,
.ueh-checklist {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: none;
}

.ueh-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px !important;
}

.content .ueh-step-list li {
  display: flex;
  gap: 13px;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.ueh-step-list li > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font: 800 13px var(--sans);
}

.content .ueh-step-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.ueh-check-grid {
  display: grid;
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ueh-check-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}

.ueh-check-item:last-child {
  border-bottom: 0;
}

.ueh-check-item:hover {
  background: var(--surface);
}

.ueh-check-item input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.ueh-check-item span,
.ueh-check-item strong,
.ueh-check-item small {
  display: block;
}

.ueh-check-item strong {
  font: 650 14.5px/1.4 var(--sans);
}

.ueh-check-item small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.ueh-check-item:has(input:checked) {
  background: #f1faf7;
}

.ueh-check-item:has(input:checked) strong {
  color: #08775a;
}

.ueh-source {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #f2f7ff;
}

.ueh-source > .i {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  color: var(--blue);
}

.content .ueh-source h2 {
  font-size: 17px;
}

.content .ueh-source p {
  margin-top: 5px;
  color: #34537f;
  font-size: 13px;
  line-height: 1.55;
}

.ueh-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 9px;
}

.content .ueh-source-links a {
  font-size: 13px;
}

@media (max-width: 900px) {
  .ueh-planner-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "selection" "browser";
  }

  .ueh-selection {
    position: static;
  }
}

@media (max-width: 700px) {
  .ueh-page-hero {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .ueh-page-hero .h1 {
    font-size: 34px;
  }

  .ueh-hero-subtitle {
    font-size: 18px;
  }

  .ueh-status,
  .ueh-guide {
    margin-top: 26px;
  }

  .ueh-facts {
    grid-template-columns: 1fr;
  }

  .ueh-facts div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 15px;
  }

  .ueh-facts strong {
    font-size: 21px;
  }

  .ueh-status .action-row,
  .ueh-status .btn {
    width: 100%;
  }

  .ueh-section-heading {
    align-items: flex-start;
  }

  .ueh-filters,
  .ueh-step-list {
    grid-template-columns: 1fr;
  }

  .ueh-results-meta span {
    display: none;
  }

  .ueh-entity-list {
    max-height: none;
  }

  .content .ueh-entity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
  }

  .ueh-entity-copy {
    grid-column: 1 / -1;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px;
  }

  .content .ueh-entity-row time {
    padding-left: 93px;
    font-size: 13px;
    white-space: normal;
  }

  .ueh-select-button {
    align-self: end;
  }

  .ueh-process,
  .ueh-checklist {
    padding: 19px 16px;
  }
}

@media (max-width: 430px) {
  .ueh-section-heading {
    display: grid;
  }

  .ueh-count-badge {
    justify-self: start;
  }

  .content .ueh-entity-row time {
    padding-left: 0;
  }
}
