:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: #31272b;
  background: #f8f4f0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background: #f8f4f0;
}

main {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  padding-block: 1.25rem 3rem;
}

.accueil,
.partage,
.souvenirs {
  border-radius: 1.5rem;
}

.accueil {
  overflow: hidden;
  background: #eadde0;
}

.photo-couple {
  min-height: 20rem;
  background-color: #d7bec5;
  background-image:
    linear-gradient(to bottom, transparent 55%, rgb(49 39 43 / 35%)),
    url("../assets/images/couple-provisoire.jpg");
  background-position: center;
  background-size: cover;
}

.introduction {
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
}

.date,
.surtitre,
.upload-action__detail {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date {
  margin: 0 0 0.75rem;
  color: #945c6c;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 11vw, 4.5rem);
}

h1 span {
  color: #ae7483;
  font-style: italic;
}

.introduction > p:last-child,
.texte-intro,
.souvenirs > p:last-child {
  margin-bottom: 0;
  color: #62565a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
}

.partage,
.souvenirs {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: #fffdfb;
}

.surtitre {
  margin-bottom: 0.6rem;
  color: #a26978;
  font-size: 0.7rem;
  font-weight: 700;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 8vw, 2.5rem);
}

.texte-intro {
  margin-bottom: 1.25rem;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.upload-action {
  display: block;
  padding: 1.25rem;
  border: 1px solid #c994a1;
  border-radius: 1rem;
  background: #f7ebee;
  color: #553b43;
  box-shadow: 0 0.5rem 1.25rem rgb(134 80 96 / 12%);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.upload-action__titre,
.upload-action__detail {
  display: block;
}

.upload-action__titre {
  font-size: 1.25rem;
}

.upload-action__detail {
  margin-top: 0.4rem;
  color: #965d6c;
  font-size: 0.67rem;
  font-weight: 700;
}

.upload-action:hover {
  background: #f3e1e6;
  transform: translateY(-1px);
}

.upload-input:focus-visible + .upload-action {
  outline: 3px solid #6a4651;
  outline-offset: 3px;
}

.aide-upload {
  margin-bottom: 0;
  color: #786a6f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.aide-upload {
  margin-top: 0.8rem;
}

.message {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  color: #9c2338;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.nombre-selection {
  margin: 1rem 0 0;
  color: #62565a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.liste-apercus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.liste-apercus:empty {
  display: none;
}

.apercu {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 0.85rem;
  background: #f0eaec;
}

.apercu-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retirer-apercu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(49 39 43 / 82%);
  color: #ffffff;
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.retirer-apercu:hover {
  background: #553b43;
}

.retirer-apercu:focus-visible {
  outline: 3px solid #6a4651;
  outline-offset: 2px;
}

.souvenirs {
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px dashed #e1cbd1;
  background: #fcf8f6;
}

.souvenirs .surtitre {
  color: #b28a94;
}

.souvenirs h2 {
  font-size: clamp(1.55rem, 7vw, 2rem);
}

@media (min-width: 40rem) {
  main {
    padding-block: 2rem 4rem;
  }

  .photo-couple {
    min-height: 26rem;
  }

  .introduction,
  .partage,
  .souvenirs {
    padding-inline: 2.5rem;
  }
}
