:root {
  --placeholder-color: hsl(0deg, 0%, 85%);
  --shadow-color: hsl(0deg, 0%, 80%);
  --primary: #061443;
  --accent: #7c8d69;
  --primary-btn: #a1b2be;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Prata", serif;
  font-style: normal;
  font-weight: 400;
  color: var(--primary);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  background-image: url("./assets/Blue_Toile_de_Jouy_Seamless-Pattern_2.jpg");
  --size: 500px;
  background-size: var(--size) var(--size);
  background-repeat: repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
}

a {
  text-decoration: none;
  color: var(--primary);
}

main {
  flex: 1;
}

.container {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  background-color: white;
  box-shadow: 0px 0px 8px 0px var(--shadow-color);
  margin-bottom: 2rem;
  z-index: 1;
}

.active {
  color: var(--accent);
}

img {
  display: block;
  width: 100%;
}

.page-title {
  font-family: "Tenor Sans", serif;
  text-align: center;
  font-size: 5rem;
  letter-spacing: -10px;
  margin-bottom: 1rem;
  font-weight: 300;
}

.page-title span {
  display: inline-block;
  font-family: "Great Vibes", serif;
  transform: rotate(-15deg);
  position: relative;
  bottom: 6px;
  letter-spacing: 0;
  font-weight: 100;
}

.page-subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

section {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

p {
  max-width: 75ch;
  text-wrap: balance;
  text-align: center;
}

footer {
  background-color: #575761;
  color: white;
  display: flex;
  justify-content: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* -------------------------------------------- */
/* ----------------- NAVBAR ------------------- */
/* -------------------------------------------- */

.top-navbar {
  display: flex;
  justify-content: center;
}

.top-navbar > * {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-navbar img {
  height: 100px;
  object-fit: contain;
}

.top-navbar__sublink,
.top-navbar__link {
  position: relative;
}

.top-navbar__sublink::after,
.top-navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary);
  transition: width 300ms ease-in-out;
}

.top-navbar__sublink:hover::after,
.top-navbar__link:hover::after {
  width: 100%;
}

.top-navbar--has-subnav {
  position: relative;
}

.top-navbar--has-subnav i {
  margin-left: 8px;
  position: relative;
  bottom: 2px;

  transition-duration: 350ms;
  transition-property: transform;
  transition-timing-function: linear;
}

.top-navbar__link:hover + i {
  transform: rotate(90deg);
}

.top-navbar--has-subnav:hover .top-navbar__subnav {
  visibility: visible;
  opacity: 1;
  transform: translateX(0px);
}

.top-navbar__subnav {
  position: absolute;
  top: 80px;
  left: 50%;
  padding: 1.5rem;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: white;
  box-shadow: 0px 0px 8px 0px var(--shadow-color);

  visibility: hidden;
  opacity: 0;
  transform: translateX(-10px);

  transition-duration: 150ms;
  transition-property: opacity transform;
  transition-timing-function: ease-in-out;
}

/* ------------------------------------------------- */
/* -------------------- UTILITIES ------------------ */
/* ------------------------------------------------- */

.script {
  font-family: "Pinyon Script", serif;
  font-weight: 400;
  font-size: 2rem;
}

.header-text {
  margin-left: auto;
  margin-right: auto;
  /* text-align: center; */
}

.button {
  display: inline-block;
  padding: 1.5rem 3rem;
  background-color: var(--primary-btn);
  color: white;

  transition-duration: 150ms;
  transition-property: background-color;
  transition-timing-function: ease-in-out;
}

.button:hover {
  background-color: var(--primary);
}

/* ------------------------------------------------- */
/* -------------------- INDEX.HTML ----------------- */
/* ------------------------------------------------- */

.hero {
  height: min(750px, 90vh);
}

.info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.info-card h2 {
  margin-bottom: 1rem;
}

.info-card p {
  margin-bottom: 0.5rem;
}

.info-card .fa-solid,
.info-card .fa-regular {
  margin-right: 0.5rem;
}

.polaroid-wrapper {
  position: absolute;
  top: 200px;
  right: 0;
  /* border: 1px solid red; */
  width: 900px;
  height: 800px;
  z-index: -1;
}

.polaroid {
  display: inline;
  width: 360px;
  position: absolute;
  top: 80px;
  right: 0px;
}

.polaroid-1 {
  transform: rotate(12deg) translateX(-50%);
}

.polaroid-2 {
  transform: rotate(23deg) translateY(30%) translateX(20%);
}

.polaroid-3 {
  transform: rotate(-20deg) translateX(-100%) translateY(20%);
}

/* ------------------------------------------------- */
/* --------------------- TRANSPORTS ---------------- */
/* ------------------------------------------------- */

.transport .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------------------------- */
/* ------------------ LISTE MARIAGE ---------------- */
/* ------------------------------------------------- */

.wedding-list .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------------------------- */
/* --------------------- DETAILS ------------------- */
/* ------------------------------------------------- */

.flow > * + * {
  margin-top: 1rem;
}

.detail-card::before {
  content: "";
  background-color: #f6f7f5;
  position: absolute;
  top: 0px;
  bottom: 0px;
  z-index: -1;
  opacity: 0.7;
}

.detail-card:nth-of-type(1)::before {
  right: 0;
  left: 30%;
}

.detail-card:nth-of-type(2)::before {
  right: 30%;
  left: 0;
}

.detail-card {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
  padding: 4rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.detail-card:nth-of-type(2n + 1) {
  padding-left: 0;
}

.detail-card:nth-of-type(2n) {
  flex-direction: row-reverse;
  text-align: right;
  padding-right: 0;
}

.detail-card img {
  width: 70%;
}

.detail-card h2 {
  color: var(--accent);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.detail-card a {
  background-color: var(--accent);
  color: white;
}

.detail-card a:hover {
  background-color: #95a484;
}

/* ------------------------------------------------- */
/* ------------------- VALIDATION ------------------ */
/* ------------------------------------------------- */

.group-member {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------------------------- */
/* --------------------- MARIAGE ------------------- */
/* ------------------------------------------------- */

.mariage-page img {
  object-fit: cover;
}

.lieux-wrapper {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.lieux-card {
  flex: 1;
  /* box-shadow: 0px 4px 8px 0px var(--shadow-color); */
  overflow: hidden;
  /* border-radius: 1rem; */
  /* border: 1px solid hsl(0deg, 0%, 75%); */
  position: relative;
  height: 500px;
  background-image: linear-gradient(
    0deg,
    hsla(0deg, 0%, 0%, 50%) 0%,
    transparent 50%
  );
}

.lieux-card:hover img {
  transform: scale(1);
}

.lieux-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 200px; */
  height: 100%;
  z-index: -1;
  filter: brightness(0.8);
  transform: scale(1.08);

  transition-duration: 300ms;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.81, 0.09, 0.14, 0.53);
}

.lieux-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  padding: 1.5rem;
  /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}

.lieux-card__info > * {
  /* text-align: center; */
  text-wrap: balance;
  margin-bottom: 0.5rem;
}

.lieux-card__info h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.personnel-wrapper {
  margin-top: 4rem;
}

.personnel-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 100rem;
  margin-inline: auto;
}

.personnel-card-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5rem;
  flex: 1;
  padding: 1rem;
}

.personnel-card-wrapper > h2 {
  text-align: center;
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.personnel-card-wrapper > h2::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: black;
}

.personnel-temoins {
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.personnel-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.personnel-card img {
  --length: 250px;
  width: var(--length);
  height: var(--length);
  border-radius: 9999px;
  border: 3px solid var(--primary);
  background-color: var(--placeholder-color);
  margin-bottom: 2rem;
}

/* --------------------------------------------------- */
/* ------------------- VALIDATION -------------------- */
/* --------------------------------------------------- */

.search,
.group-validate,
.query {
  font-size: 1rem;
  vertical-align: middle;
  padding-block: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--primary-btn);
}

.query {
    padding-inline: .5rem;
    margin-right: 1rem;
}

.query:focus {
    box-shadow: 0 0 4px 2px rgba(0, 123, 255, .5);
    outline: none;
}

.results {
  margin-top: 1rem;
  margin-bottom: 1rem;
  min-height: 50px;
  min-width: 300px;
  padding: 1rem;
}

.query,
.results {
  width: 600px;
  background-color: #f6f7f5b0;
}

.group-validate,
.search {
  background-color: #2f442d;
}

@media (min-width: 1920px) {
  .polaroid-wrapper {
    position: relative;
    top: 0px;
    left: 0px;
  }

  .polaroid-1 {
    transform: rotate(12deg) translateX(-100%);
  }

  .polaroid-2 {
    transform: rotate(23deg) translateY(30%) translateX(-30%);
  }

  .polaroid-3 {
    transform: rotate(-20deg) translateX(-130%) translateY(0%);
  }

  .hero {
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;
  }

  .hero .container {
    margin-inline: 0;
  }
}
