.exam-page {
  --exam-text: #44584d;
  --exam-sage: #e9eee3;
  --exam-panel: #fffdf7;
  --exam-radius: 12px;
}

.exam-page main { min-height: 64vh; padding-bottom: clamp(48px, 7vw, 92px); }
.exam-page :is(a, button):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.exam-page .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.exam-page h1 { width: auto; max-width: 100%; font-size: clamp(41px, 6vw, 76px); letter-spacing: -.05em; margin: 0; }
.exam-page .exam-lede { max-width: 59ch; color: var(--exam-text); margin: 0; line-height: 1.72; }

.exam-breadcrumb { display: block; padding-block: 15px; color: #516458; }
.exam-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .84rem;
}
.exam-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.exam-breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid #849388;
  border-right: 1px solid #849388;
  transform: rotate(45deg);
}
.exam-breadcrumb a { font-size: inherit; padding-block: 5px; text-decoration: underline; text-underline-offset: 3px; }
.exam-breadcrumb a::after { display: none; }
.exam-breadcrumb [aria-current] { color: var(--ink); font-weight: 650; }

.exam-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  padding-block: clamp(22px, 5vw, 64px);
}
.exam-subtitle {
  margin: 16px 0 18px;
  color: var(--green);
  font: italic clamp(22px, 2.6vw, 34px)/1.25 var(--serif);
}
.exam-hero .exam-lede { max-width: 47ch; }
.exam-page .exam-primary, .exam-page .exam-back {
  min-height: 46px;
  gap: 14px;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: 8px;
}
.exam-page .button.button-dark:focus-visible {
  outline: 2px solid var(--student-action);
  outline-offset: 3px;
}
.exam-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.exam-hero-actions a::after { content: none; }
.exam-hero-actions .exam-primary { white-space: normal; }
.brevet-start-options {
  display: grid;
  flex: 1 0 100%;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brevet-start-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid #b5c5ac;
  border-radius: 8px;
  background: var(--exam-sage);
  color: var(--ink);
  line-height: 1.3;
  text-decoration: none;
}
.brevet-start-option:hover {
  border-color: var(--green);
  background: #dce8d5;
  text-decoration: none;
}
.brevet-start-option .exam-icon {
  width: 37px;
  height: 37px;
  background: #f7f9f2;
}
.brevet-start-option .exam-icon svg { width: 22px; height: 22px; }
.brevet-start-option-copy { display: grid; gap: 2px; min-width: 0; }
.brevet-start-option-copy strong { font-size: 1rem; }
.brevet-start-description { font-size: .9rem; color: var(--exam-text); }
html:not([lang="en"]) .brevet-start-options [lang="en"],
html[lang="en"] .brevet-start-options [lang="fr"] { display: none; }
.brevet-start-secondary {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 10px;
}
.brevet-start-secondary .button {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--student-sage-border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
}
.exam-resume-context {
  flex: 1 0 100%;
  color: var(--exam-text);
  font-size: .85rem;
}
.exam-figure {
  margin: 0;
  padding: 17px 20px 13px;
  border: 1px solid #cfd8c8;
  border-radius: var(--exam-radius);
  background: #f2f3e9;
  box-shadow: 0 18px 42px #234b3e0a;
}
.exam-figure-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #d5ddce;
  padding-bottom: 10px;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
}
.exam-figure-label span:last-child { color: #806538; font: italic 1.35rem/1 var(--serif); }
.exam-figure img { display: block; width: 100%; height: auto; }
.exam-figure figcaption {
  border-top: 1px solid #d5ddce;
  padding-top: 10px;
  color: #445b4b;
  text-align: center;
  font: italic 1rem/1.35 var(--serif);
}
.exam-directory { padding-top: clamp(16px, 3vw, 38px); }
.exam-directory-heading .eyebrow { text-transform: uppercase; }
.exam-directory-heading .exam-lede { margin-top: 13px; }
.exam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 28px 0 32px;
  list-style: none;
}
.exam-grid li { display: flex; min-width: 0; }
.exam-card {
  --exam-icon-bg: var(--exam-sage);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid #d4dbce;
  border-radius: var(--exam-radius);
  background: var(--exam-panel);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.exam-grid li:nth-child(4n + 2) .exam-card { --exam-icon-bg: #eee6ce; }
.exam-grid li:nth-child(4n + 3) .exam-card { --exam-icon-bg: #e5eceb; }
.exam-card:is(:hover, :focus-visible) { border-color: #819880; box-shadow: 0 10px 24px #234b3e12; }
@media (hover: hover) { .exam-card:hover { transform: translateY(-3px); } }
.exam-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.exam-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--exam-icon-bg, var(--exam-sage));
  color: var(--green);
}
.exam-icon svg { width: 27px; height: 27px; }
.exam-number { color: #4e6255; font-size: .68rem; font-weight: 700; letter-spacing: .09em; }
.exam-card h2 { font-size: clamp(23px, 2.05vw, 30px); letter-spacing: -.03em; line-height: 1.12; margin: 16px 0 8px; }
.exam-card p { color: var(--exam-text); font-size: .92rem; line-height: 1.55; margin: 0 0 15px; }
.exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9cfb6;
  border-radius: 999px;
  padding: 3px 10px;
  background: #f4eee0;
  color: #584722;
  font-size: .75rem;
  font-weight: 650;
}
.exam-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #97793e; }
.exam-card .exam-badge { margin-top: auto; }
.exam-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 12px;
  color: var(--green);
  font-size: .87rem;
  font-weight: 700;
}
.exam-card-action span { font-size: 1.2rem; line-height: 1; }

.exam-module { padding-top: clamp(12px, 3vw, 34px); }
.exam-module-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, 23%);
  align-items: stretch;
  gap: 20px;
  border: 1px solid #d1dbcb;
  border-radius: var(--exam-radius);
  background: #eef2e7;
  padding: clamp(24px, 5vw, 56px);
}
.exam-module-heading .eyebrow { text-transform: uppercase; }
.exam-module-heading h1 { font-size: clamp(38px, 5.8vw, 68px); margin: 15px 0 12px; }
.exam-module-art {
  display: grid;
  place-items: center;
  min-height: 150px;
  background: radial-gradient(#95ac9c 1px, transparent 1px) center / 15px 15px;
  border: 1px solid #d1dbcb;
  border-radius: var(--exam-radius);
}
.exam-module-art .exam-icon {
  width: 86px;
  height: 86px;
  border: 1px solid #bcccb9;
  border-radius: 50%;
  background: #f8f8ef;
}
.exam-module-art svg { width: 46px; height: 46px; }
.exam-purpose {
  margin-block: 22px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--exam-radius);
  background: var(--exam-panel);
}
.exam-purpose h2 { font-size: clamp(24px, 3vw, 33px); letter-spacing: -.03em; margin-bottom: 8px; }
.exam-purpose p { max-width: 65ch; margin: 0; color: var(--exam-text); }
.exam-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1050px) {
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .exam-hero { grid-template-columns: 1fr; }
  .exam-figure { width: min(100%, 470px); }
  .exam-module-heading { grid-template-columns: 1fr; }
  .exam-module-art { display: none; }
}
@media (max-width: 560px) {
  .exam-grid { grid-template-columns: 1fr; gap: 12px; }
  .exam-card h2 { font-size: 26px; }
  .exam-card p { margin-bottom: 12px; }
  .exam-actions > a { flex: 1 1 100%; }
  .exam-hero-actions > .exam-primary { flex: 1 1 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .exam-page :is(.exam-card, .exam-primary, .exam-back, .brevet-start-secondary .button) { transition: none; transform: none; }
}

/* Follow the work area without covering the site navigation. */
.exam-sticky-clock:not([hidden]) {
  position: sticky;
  inset-block-start: var(--exam-clock-top, 102px);
  z-index: 19;
  box-shadow: 0 4px 12px #234b3e1a;
}
