@font-face {
  font-family: Amsterdam One;
  src: url("/fonts/amsterdamone.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: Alice;
  src: url("/fonts/alice.woff2") format("woff2");
  font-display: swap;
}

:root {
  --highlight-color: #ad7913;
  --text-color: #322617;
  --bg-color: #fffaf2;
  --font-primary: Alice, Times New Roman, Times;
  --font-fancy: Amsterdam One;
}

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

html,
body {
  min-height: 100dvh;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-primary);
  font-size: 1em;
  line-height: 1.75;
  color: var(--text-color);
  background: url("/img/bg/5-13.png"), url("/img/bg/5+13.png"),
    url("/img/bg/6-13.png"), url("/img/bg/6+13.png"), var(--bg-color);
  background-position: left -100px top, right -100px top,
    bottom -150px left -115px, bottom -150px right -115px;
  background-size: 300px, 300px, 300px, 300px;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 1em;
}

a {
  position: relative;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: inherit;
  transition: color 250ms;
}

a:focus,
a:hover {
  color: var(--highlight-color);
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
}

header {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  padding: 30px 1em;
  line-height: normal;
}

header h1 {
  margin: 0;
  padding: 1em 0;
  font-family: var(--font-fancy);
  font-size: 3em;
  line-height: 2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--highlight-color);
}

header h2 {
  margin-top: 0;
  font-size: 1em;
}

header .title {
  text-decoration: none;
}

header .title:hover {
  color: inherit;
}

header .back {
  display: block;
  text-align: left;
  font-size: 0.85em;
}

nav {
  margin: 4em 0;
}

nav > ul {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 1em 0;
  max-width: 1000px;
}

nav > ul > li {
  margin: 1em;
}

nav > ul > li > a {
  display: block;
  text-decoration: none;
}

nav > ul > li > a div {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 1em;
  overflow: hidden;
}

nav > ul > li > a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  transform: scale(1.1);
  transition: transform 350ms ease-in-out;
}

nav > ul > li > a div::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  border: 0em solid transparent;
  transition: border 350ms ease-in-out;
}

nav > ul > li > a:hover img {
  transform: scale(1);
}

nav > ul > li > a:hover div::after {
  border: 0.5em solid var(--highlight-color);
}

.visit-list {
  max-width: 800px;
  margin: 0 auto 5em auto;
  padding: 0;
  list-style: none;
}

.visit-list li {
  padding: 0.25em 0;
}

.visit-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 125px;
}

.visit-images img {
  width: 250px;
  height: 250px;
  border-top: 0.75em solid white;
  border-left: 0.75em solid white;
  border-right: 0.75em solid white;
  border-bottom: 2.5em solid white;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (max-width: 840px) {
  .visit-images {
    padding-bottom: 0;
    margin-bottom: 3em;
  }

  .visit-images-img-wrapper {
    margin: 0.5em;
    transform: none !important;
  }
}

.visit-images-img-wrapper:nth-child(1) {
  transform: rotateZ(-10deg) translateY(10%) translateX(-10%);
}

.visit-images-img-wrapper:nth-child(2) {
  transform: rotateZ(-5deg) translateY(20%);
}

.visit-images-img-wrapper:nth-child(3) {
  transform: rotateZ(5deg) translateY(10%) translateX(15%);
}

.visit-images-img-wrapper:nth-child(4) {
  transform: rotateZ(10deg) translateX(15%);
}

.visit-images-img-wrapper:nth-child(5) {
  transform: rotateZ(5deg) translateY(25%) translateX(-10%);
}

.visit-images-img-wrapper:nth-child(6) {
  transform: rotateZ(-5deg) translateY(30%);
}

.visit-images-img-wrapper:nth-child(7) {
  transform: rotateZ(5deg) translateY(20%) translateX(20%);
}

.visit-images-img-wrapper {
  position: relative;
}

.visit-images-img-wrapper > span {
  display: inline-block;
  position: absolute;
  bottom: 1.25em;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  font-size: 0.85em;
  text-wrap: balance;
  background: #fff;
  padding-top: 0.5em;
}

.program-list {
  max-width: 375px;
  margin: 1em auto 5em auto;
  padding: 0;
  list-style: none;
}

.program-list li {
  display: inline-grid;
  grid-template-columns: 1fr 2fr 3.25fr;
  align-items: center;
  margin: 1em 0;
}

.program-list span {
  line-height: 1;
  font-size: 1.75em;
  color: var(--highlight-color);
}

.program-list span > small {
  font-size: 0.45em;
}

.program-list p {
  text-align: left;
  font-size: 0.85em;
  line-height: 1.25;
  margin-left: 5px;
}

.access {
  margin: 0 auto 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.access img {
  max-width: 100%;
  height: auto;
}

.access-block {
  flex: 1 0 calc(50% - 4em);
  min-width: 0;
  margin: 1em;
}

@media (max-width: 1000px) {
  .access-block {
    flex: 1 0 100%;
  }
}

.access-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acces-block img {
  max-width: 100%;
}

.stay-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.stay-images img {
  width: calc(50% - 2em);
  margin: 1em;
  min-width: 300px;
  height: auto;
  object-fit: cover;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-bottom: 2em;
}

.contact-block {
  flex: 1 0 calc(50% - 2em);
  margin: 1em;
}

.contact-block img {
  width: 400px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page_liste-de-mariage .content {
  max-width: 700px;
}

footer {
  flex-shrink: 0;
  padding: 1em 0;
}

footer > img {
  width: 100px;
  height: auto;
}

@media (max-width: 840px) {
  body {
    background-position: left -50px top, right -50px top,
      bottom -50px left -40px, bottom -50px right -40px;
    background-size: 150px, 150px, 150px, 150px;
  }
}

@media (max-width: 480px) {
  body {
    background-position: left -50px top, right -50px top,
      bottom -50px left -40px, bottom -50px right -40px;
    background-size: 100px, 100px, 100px, 100px;
  }
}
