/* Page formation : un hero sur l’aplat, puis la fiche sur papier,
   le contenu à gauche et l’essentiel à droite. */

/* Hero */

.sheet__hero {
  background: var(--accent);
  color: var(--on-accent);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem);
}

.sheet__hero ::selection {
  background: var(--on-accent);
  color: var(--accent);
}

.sheet__hero :focus-visible {
  outline-color: var(--on-accent);
}

.sheet__hero-inner {
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.sheet__title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.25rem + 3.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 750;
  text-wrap: balance;
}

.sheet__title--long {
  max-width: 22ch;
  font-size: clamp(2.25rem, 1.1rem + 3vw, 3.75rem);
}

.sheet__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  margin-top: clamp(2rem, 1.25rem + 2.5vw, 3rem);
  padding-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.25rem);
  border-top: 2px solid var(--on-accent-line);
}

.sheet__lead {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--on-accent-2);
  text-wrap: pretty;
}

.sheet__art {
  max-width: 40rem;
}

/* Fiche : contenu et essentiel */

.sheet {
  display: grid;
}

.sheet__aside {
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.sheet__aside-inner {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.sheet__aside-title {
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
}

.facts {
  margin-top: 1rem;
}

.facts div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line-strong);
  font-size: var(--step--1);
  line-height: 1.45;
}

.facts div:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.facts dt {
  color: var(--ink-2);
}

.facts dd {
  font-weight: 600;
  color: var(--ink);
}

.sheet__aside .button {
  align-self: flex-start;
  margin-top: 1.75rem;
}

.sheet__page {
  min-width: 0;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) clamp(4rem, 3rem + 4vw, 6.5rem);
}

.sheet__part {
  max-width: 46rem;
}

.sheet__part + .sheet__part {
  margin-top: clamp(4rem, 3rem + 4vw, 6.5rem);
}

.sheet__part h2 {
  font-size: var(--step-2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.sheet__part h3 {
  margin-top: 2.25rem;
}

.sheet__part > p {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--ink-2);
}

.sheet__part-note {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
}

.rows {
  margin-top: 1.75rem;
}

.rows div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  column-gap: 1.75rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line-strong);
}

.rows div:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.rows dt {
  font-size: var(--step--1);
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.rows dd {
  color: var(--ink-2);
}

/* Connaissances et compétence d’un bloc */

.rows__line {
  display: block;
}

.rows__line + .rows__line {
  margin-top: 0.5rem;
}

.rows__line strong {
  font-weight: 600;
  color: var(--ink);
}

/* Bénéfices d’un cas */

.rows__gain {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--step--1);
}

.rows__gain strong {
  font-weight: 600;
  color: var(--ink);
}

/* Fin de fiche */

.sheet__end {
  padding-top: 2.5rem;
  border-top: 2px solid var(--ink);
}

.sheet__end .button {
  margin-top: 1.75rem;
}

@media (min-width: 64rem) {
  .sheet__hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 1rem + 4vw, 5.5rem);
    align-items: center;
  }

  .sheet {
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    column-gap: clamp(3rem, 1rem + 5vw, 7rem);
  }

  .sheet__page {
    grid-column: 1;
    grid-row: 1;
  }

  .sheet__aside {
    grid-column: 2;
    grid-row: 1;
    padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
    padding-bottom: clamp(4rem, 3rem + 4vw, 6.5rem);
  }

  .sheet__aside-inner {
    position: sticky;
    top: 6.25rem;
  }
}

@media (max-width: 40rem) {
  .rows div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.125rem;
  }

  .sheet__row .button,
  .sheet__aside .button,
  .sheet__end .button {
    align-self: stretch;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sheet__aside .button {
    padding-inline: 1.25rem;
  }
}
