:root {
  --accent: #4e168f;
  --accent-dark: #2f0d68;
  --border: #dddddd;
  --ink: #1f2b33;
  --muted: #5d6970;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-header {
  color: #ffffff;
  background: #3b0d6b;
}

.header-content,
.breadcrumb > div,
main,
footer > div {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.header-content {
  display: flex;
  align-items: center;
  min-height: 82px;
}

.institution-logo {
  width: 235px;
  flex: 0 0 235px;
  display: flex;
  align-items: center;
}

.institution-logo img {
  display: block;
  width: 165px;
  height: auto;
}

.logo-link {
  display: block;
}

.logo-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

.course-name {
  min-height: 46px;
  padding-left: 30px;
  border-left: 1px solid rgb(255 255 255 / 35%);
  display: flex;
  align-items: center;
}

.course-name span,
.course-name strong {
  display: block;
}

.course-name span {
  color: rgb(255 255 255 / 75%);
  font-size: 13px;
}

.course-name strong {
  font-size: 18px;
  line-height: 1.25;
}

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: #f5f8fa;
}

.breadcrumb > div {
  padding: 7px 0;
  font-size: 13px;
}

.breadcrumb span,
.breadcrumb a {
  margin-right: 10px;
  font-weight: 400;
}

main {
  padding: 32px 0 64px;
}

h1,
h2,
h3 {
  color: #263c49;
  font-weight: 600;
}

h1 {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: #17384b;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin: 36px 0 14px;
  font-size: 24px;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding-left: 40px;
  list-style-type: square;
}

li {
  margin: 5px 0;
}

li::marker {
  color: var(--accent);
}

.slides-indisponibles,
.document-indisponible {
  color: var(--muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.schedule {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.schedule th,
.schedule td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.schedule thead th {
  text-align: center;
}

.schedule thead th:first-child {
  width: 90px;
}

.schedule thead th:last-child {
  width: 175px;
}

.schedule tbody th {
  text-align: center;
}

.schedule tbody tr:hover {
  background: #faf8ff;
}

footer {
  padding: 18px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #f5f8fa;
  font-size: 13px;
}

@media (max-width: 700px) {
  .header-content {
    min-height: 68px;
  }

  .institution-logo {
    width: 110px;
    flex-basis: 110px;
  }

  .institution-logo img {
    width: 96px;
  }

  .course-name {
    padding-left: 16px;
  }

  .course-name span {
    font-size: 12px;
  }

  .course-name strong {
    font-size: 15px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 23px;
  }

  .table-scroll {
    overflow: visible;
  }

  .schedule,
  .schedule tbody,
  .schedule tr,
  .schedule th,
  .schedule td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .schedule thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .schedule tbody tr {
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }

  .schedule tbody tr:last-child {
    border-bottom: 1px solid var(--border);
  }

  .schedule tbody th,
  .schedule tbody td {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 8px;
    padding: 3px 0;
    border: 0;
    text-align: left;
  }

  .schedule tbody th::before {
    content: "Semaine";
    color: var(--muted);
    font-weight: 400;
  }

  .schedule tbody td:nth-of-type(1)::before {
    content: "Séance A";
    color: var(--muted);
  }

  .schedule tbody td:nth-of-type(2)::before {
    content: "Séance B";
    color: var(--muted);
  }

  .schedule tbody td:nth-of-type(3)::before {
    content: "Évaluation";
    color: var(--muted);
  }

  .schedule tbody td:empty {
    display: none;
  }
}

@media print {
  .site-header {
    color: #171717;
    background: #ffffff;
    border-bottom: 2px solid var(--accent);
  }

  .course-name {
    border-left-color: var(--border);
  }

  .breadcrumb,
  footer {
    display: none;
  }
}
