:root {
  --paper: #f3eee4;
  --card: #fbf7f1;
  --ink: #241c14;
  --muted: #5c5348;
  --line: #e6dccb;
  --gold: #74561f;
  --gold-soft: #c6a15b;
  --focus: #74561f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(70rem 28rem at 50% -8rem, #fffaf3 0%, transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, "Inter", "Liberation Sans", "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 1;
  background: var(--ink);
  color: var(--card);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
  top: 1rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.entete,
main {
  width: min(40rem, calc(100% - 2rem));
}

.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  margin: 1.5rem auto 0;
}

main {
  margin: 1rem auto 1.25rem;
}

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-soft);
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem 2rem;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Noto Serif", serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.marque a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.marque a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.langues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
}

.langues a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.langues a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.langues a:hover {
  color: var(--ink);
}

.etoile {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--gold-soft);
  flex: none;
}

h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Noto Serif", serif;
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.chapeau {
  margin: 0;
  max-width: 38rem;
}

.essai {
  margin-top: 1.5rem;
}

.essai p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.etiquette {
  margin: 2rem 0 0.75rem;
  color: var(--gold);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Noto Serif", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.etudes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.etudes li {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid var(--gold-soft);
}

.etudes strong {
  font-weight: 700;
}

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: etape;
}

.etapes li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  align-items: start;
}

.etapes li::before {
  counter-increment: etape;
  content: counter(etape);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--card);
  font-family: Georgia, "Iowan Old Style", Palatino, "Liberation Serif", serif;
  font-size: 1.15rem;
}

.etapes h3,
.etapes p {
  grid-column: 2;
}

.etapes h3 {
  margin: 0.1rem 0 0.15rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Noto Serif", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.etapes p {
  margin: 0;
  color: var(--muted);
}

.prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 2rem 0 0.2rem;
}

.montant {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", "Noto Serif", serif;
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.periode,
.conditions {
  color: var(--muted);
}

.conditions {
  margin: 0 0 1.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}

.cta:hover {
  background: #3c3228;
}

.cta:active {
  background: #1a150f;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.pied {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.pied p {
  margin: 0.15rem 0;
}

.pied a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.pied .legal {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pied .legal a {
  display: inline;
  min-height: 0;
  color: var(--muted);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.pied .legal a:hover {
  color: var(--ink);
}

.texte h1 {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.texte p,
.texte ul {
  margin: 0.65rem 0 0;
}

.texte ul {
  padding-left: 1.2rem;
}

.texte li + li {
  margin-top: 0.35rem;
}

.texte a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 720px) {
  .entete {
    margin-top: 2.75rem;
  }

  main {
    margin-top: 1.15rem;
  }

  section {
    padding: 2.75rem 2.5rem 2.4rem;
  }
}

@media (forced-colors: active) {
  .cta,
  .etapes li::before {
    border: 2px solid ButtonText;
    background: ButtonText;
    color: ButtonFace;
  }

  .etiquette,
  .pied a,
  .langues a,
  .texte a {
    color: LinkText;
  }

  .langues a[aria-current="page"] {
    color: CanvasText;
    box-shadow: inset 0 -2px 0 CanvasText;
  }

  .etoile {
    fill: ButtonText;
  }
}

@media print {
  body {
    background: #fff;
  }

  section {
    border: 1px solid #000;
  }

  .cta {
    color: #000;
    background: transparent;
    border: 1px solid #000;
  }
}
