@font-face {
  font-family: "Magnolia";
  src: url("../fonts/Magnolia.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --color-paper: #f5f2eb;
  --color-pink: #eb5293;
  --color-orange: #f48054;
  --color-brown: #8c6d53;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

body {
  background-color: var(--color-paper);
  font-family: "Inter", sans-serif;
}

.font-magnolia {
  font-family: "Magnolia", cursive;
}

.font-serif-chic {
  font-family: "Cormorant Garamond", serif;
}

#envelope {
  background-color: var(--color-paper);
}

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background-color: var(--color-paper);
  cursor: pointer;
  transition:
    transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease-in-out;
}

.envelope-card {
  width: 100%;
  max-width: 750px;
  max-height: 70vh;
  aspect-ratio: 1.41 / 1;
  background-image: url("../images/enveloppe-background.webp");
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  box-shadow: 0 30px 60px -15px rgba(107, 88, 76, 0.3);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-image 1.5s ease-in-out;
}

.envelope-card.is-open {
  background-image: url("../images/enveloppe-background-ouverte.webp");
}

.envelope-screen:hover .envelope-card:not(.is-open) {
  transform: scale(1.02);
}

.envelope-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(3);
}

.instruction-text {
  transition: opacity 0.3s ease;
}

.instruction-text.hide {
  display: none;
  opacity: 0;
  transition: none;
}

@keyframes bounce-soft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.animate-bounce-slow {
  animation: bounce-soft 2s infinite;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none; /* Edge */
  scrollbar-width: none; /* Firefox */
}

#mon-carousel {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}