@font-face {
  font-family: "Didot";
  font-style: normal;
  font-weight: normal;
  src: url("/fonts/DidotLTStd-Roman.otf")
    format("opentype");
}

@font-face {
  font-family: "Didot";
  font-style: normal;
  font-weight: bold;
  src: url("/fonts/DidotLTStd-Bold.otf")
    format("opentype");
}

@font-face {
  font-family: "Didot";
  font-style: italic;
  font-weight: normal;
  src: url("/fonts/DidotLTStd-Italic.otf")
    format("opentype");
}

:root {
  --max-width: 640px;
  --main-margin: 12px;
  --highlight-color: #a8490f;
  --font-weight-normal: 300;
  --font-weight-bold: 600;
}

body {
  background-color: #f1e9df;
  box-sizing: border-box;
  font-family: "Didot", "Bodoni Moda", serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
  margin: 0 auto;
  padding: 0 var(--main-margin);
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  max-width: calc(var(--max-width) + 2 * var(--main-margin));
}

strong {
  font-weight: var(--font-weight-bold);
}

a {
  color: var(--highlight-color);
}

nav a {
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

nav a.inactive {
  opacity: 0.4;
}

nav a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}

header h1 {
  text-transform: uppercase;
  font-size: inherit;
  font-weight: var(--font-weight-normal);
  flex-grow: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}
header h1 a:hover {
  text-decoration: underline;
}

header nav {
  width: 60px;
  flex-grow: 0;
  flex-shrink: 0;

  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

header nav:last-child {
  justify-content: flex-end;
}

main {
  border-radius: 50vw 50vw 0 0;
  background: #ffffff;
  min-height: calc(var(--max-width) / 2);

  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  gap: 80px;
  padding: 0 0 80px;
}

main img:first-child {
  align-self: stretch;
}

main > section {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: 40px;
  padding: 0 80px;
}

main > section.short {
  gap: 24px;
}

main > section > section {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

main section p {
  text-align: left;
  margin: 0;
}

main section p.caps {
  text-transform: uppercase;
  text-align: center;
}

main section p.caps a {
  color: inherit;
}

main section p.message {
  font-style: italic;
  max-width: 360px;
  text-align: center;
}

main section h2 {
  font-weight: var(--font-weight-normal);
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.04rem;
}

main section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}
main section h3.gold {
  color: var(--highlight-color);
}

main section img {
  margin-top: 12px;
  width: 100%;
}

main nav {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 22px;
  max-width: 330px;
}

main dl {
  display: grid;
  grid-template-columns: 112px auto;
  gap: 40px 0;
  margin: 0;
  position: relative;
  width: 100%;
}

main dl dd {
  margin: 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  gap: 12px;
}

main dl dd a.cta {
  margin-top: 12px;
}

main dl.apero1::after {
  position: absolute;
  top: 82px;
  right: -80px;
  content: url(/images/apero1.png);
}

main dl.apero2::after {
  position: absolute;
  top: 69px;
  left: -80px;
  content: url(/images/apero2.png);
}

a.cta {
  display: inline-block;
  color: #ffffff;
  font-weight: var(--font-weight-bold);
  background-color: #c35816;
  border-radius: 100px;
  letter-spacing: 0.08rem;
  padding: 10px 16px 8px;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}
a.cta.vraiment {
  padding: 14px 24px 12px;
}

footer {
  padding: 40px 0;
}

footer p {
  text-align: center;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

/* mobile */
@media (max-width: 640px) {
  header,
  footer {
    padding: 32px 0;
  }
  main section {
    padding: 0 24px;
  }
  main dl {
    grid-template-columns: 80px auto;
  }
  main dl.apero1::after {
    right: -44px;
    transform: scale(0.75);
  }
  main dl.apero2::after {
    left: -46px;
    top: 20px;
    transform: scale(0.75);
  }
}
