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

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #fffbf5;
}


/* Header Styles */
/* Navbar */
header .navbar {
  background-color: #fffbf5 !important;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-family: "Georgia", "Playfair Display", serif !important;
  font-size: 20px;
}

#logo {
  width: 120px;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.1) rotate(2deg);
}

/* Links */
.poetic-link {
  position: relative;
  color: #4a3f35 !important;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: lowercase;
  font-variant: small-caps;
}

.poetic-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: #8b6f47;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.poetic-link:hover::after {
  width: 70%;
}

.poetic-link:hover {
  color: #8b6f47 !important;
  transform: translateY(-1px);
}


main {
  background-color: #fffbf5;
  min-height: 100vh;
  font-family: Lora;
  display: block;
  box-sizing: border-box;
}

p {
  text-align: justify;
  font-size: 17px;
  font-weight: 300;
  line-height: 150%;
  margin-bottom: 40px;
}

/*hero-section*/

#hero-section {
  position: relative;
  overflow: hidden;
  background-image: url("pictures/texture-hero.png");
  background-size: cover;
  background-position: center;
  width: 100%;
  border: 0.5px solid #e0d8c3;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 75vh;
  margin: 0 auto;
  max-width: 1500px;
}

#left-section-hero {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  position: relative;
}

#portrait-dessin {
  width: auto;
  max-width: 400px;
  filter: drop-shadow(0 8px 15px rgba(164, 160, 160, 0.3));
}

#flower-portrait {
  position: absolute;
  left: -14%;
  bottom: 24%;
  max-width: 380px;
}

#left-section-hero h1 {
  font-weight: 600;
  font-size: 34px;
  font-style: italic;
  font-family: "Lora", serif;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 120%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#left-section-hero span {
  font-style: italic;
}

#right-section-hero {
  flex: 0 0 10%;
  position: relative;
  display: flex;
  width: fit-content;
}

.paper {
  width: 250px;
  height: 320px;
  background: white;
  border: 0.5px solid rgb(105, 105, 105);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  position: relative;
}

.headen {
  top: 0;
  left: 0;
  transform: translateX(50%) rotate(-5deg);
}

.top {
  top: 0px;
  left: 0px;
  transform: translateX(-40%) rotate(3deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.adj {
  font-family: "Dancing Script", cursive;
  letter-spacing: 1.5px;
  font-weight: bolder;
  font-size: 22px;
  margin: 0;
  animation-fill-mode: both;
}

#first-adj {
  animation: 9s anim-lineUp ease-out 1;
}
#second-adj {
  animation: 13s anim-lineUp ease-out 1;
}

#third-adj {
  animation: 17s anim-lineUp ease-out 1;
}

@keyframes anim-lineUp {
  0% {
    opacity: 0;
    transform: translateY(80%);
  }
  20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(0%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}

#deco-paper {
  position: absolute;
  width: 260px;
  transform: translateY(15%) translateX(90%) rotate(10deg);
}

#btn-discover {
  display: inline-block;
  z-index: 10;
  background: #9a4429;
  text-align: center;
  justify-content: center;
  color: white;
  width: min-content;
  margin-top: 5%;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

#btn-discover:hover {
  transform: scale(1.1);
}

.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c8b6a2;
  width: 100%;
  min-height: 110px;
  padding: 0 5%;
}

.quote h1 {
  font-family: "Dancing Script", cursive;
  text-align: center;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 1.5px;
  margin: 0;
  color: #5e3b3b;
  font-weight: bold;
}

#about-recueil {
  background-color: #fffbf5;
  margin: 60px 0px;
  padding-right: 5%;
  display: flex;
  flex-direction: row;
  gap: 8%;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: auto;
  min-height: 80vh;
  margin: 0 auto;
  max-width: 1500px;
}

#butterfly {
  position: relative;
  left: 0%;
  width: 0px;
  transform: translateY(-115%);
}

.content-duo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#couverture-fleurie {
  width: 190%;
  height: auto;
  max-width: 1000px;
}

.details {
  text-align: justify;
  height: 150%;
  padding: 5% 4% 5% 4%;
  background-image: url("pictures/texture-hero.png");
  position: relative;
  overflow: hidden;
  max-width: 550px;
  border: 0.5px solid #e6dfcc;
}

.details p {
  margin: 20px;
  text-align: justify;
  font-size: 17px;
  font-weight: 300;
  line-height: 150%;
}

#presentation {
  border-radius: 2px 8px 2px 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05);
}

#presentation::before {
  content: "";
  position: absolute;
  top: 0px;
  left: -8px;
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, rgba(59, 59, 59, 0.2) 50%, #e9e3d0 50%);
  transform: rotate(65deg);
  box-shadow: -2px -2px 5px rgba(43, 43, 43, 0.2);
  z-index: 1;
}

.press-quote {
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  text-align: center;
  font-style: italic;
}
.press-name {
  font-style: normal;
  font-weight: 900;
}

/*cd*/

#about-cd {
  background-color: #fffbf5;
  display: flex;
  margin: 80px 0px;
  padding-left: 4%;
  padding-bottom: 5%;
  padding-top: 5%;
  flex-direction: row;
  gap: 15%;
  align-items: center;
  align-content: center;
  width: 100%;
  height: auto;
  min-height: 30vh;
  margin: 0 auto;
  max-width: 1500px;
}

#cd-detail {
  border-radius: 2px 8px 2px 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05);
  inset: 0 0 10px rgba(0, 0, 0, 0.05);
  min-height: 550px;
}

#cd-detail::before {
  content: "";
  position: absolute;
  border-radius: 0 0 0 8px;
  top: 0.5px;
  right: 0; /* Ancrage à l'angle haut droit */
  width: 30px; /* Légère réduction pour un effet plus net */
  height: 30px;
  background: linear-gradient(40deg, rgba(59, 59, 59, 0.2) 45%, #e9e3d0 50%);
  transform: rotate(185deg);
  box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

#visual-cd {
  position: relative;
}

#cd-rectangle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-130%, -45%);
  max-width: 260px;
  z-index: 3;
  box-shadow: 0 2px 8px 0 #8e8e8e33, 0 6px 20px 0 rgba(101, 101, 101, 0.19);
}

#round {
  max-width: 300px;
  z-index: 3;
  clip-path: circle(100%);
  margin-bottom: 30%;
}

#round {
  transition: transform 3s ease-in;
}

#round:hover {
  transform: rotate(360deg);
}

.audio-container audio {
  filter: invert(1) hue-rotate(180deg); /* rend les contrôles clairs */
  width: 230px;
}

.audio-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
  color: #9a4429;
  letter-spacing: 0.5px;
}
.audio-title::after {
  content: "";
  display: block;
  margin: 6px auto 0;
  width: 50px;
  height: 2px;
  background: #9a4429;
  border-radius: 2px;
}

footer #content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  max-width: 1500px;
}

footer a {
  color: #f1936f;
  text-decoration: none;
  margin: 0 10px;
}

#copyright {
  margin-left: 10%;
}


/* Responsiveness with button for the menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #fffbf5;
    padding: 24px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
  }

  #logo {
    display: none;
  }
  .poetic-link {
    font-size: 19px;
    padding: 10px 0 !important;
  }
}


/* responsiveness for the rest of the webpage*/

@media (max-width: 992px) {
  .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    height: auto;
    min-height: 55vh;
    margin: 0 auto;
    gap: 40px;
    width: 100%;
  }

  #portrait-dessin {
    max-width: 350px;
  }

  #left-section-hero h1 {
    font-size: 20px;
  }

  #left-section-hero p {
    text-align: justify;
    font-size: 16px;
  }

  #flower-portrait {
    display: none;
  }

  .paper {
    width: 200px;
    height: 250px;
  }

  p {
    font-size: 16px;
  }

  #deco-paper {
    max-height: 250px;
    width: auto;
    transform: translateY(35%) translateX(115%);
  }

  .quote h1 {
    text-align: center;
    font-size: 20px;
  }

  #about-recueil {
    padding: 40px 20px 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  #about-cd {
    padding: 40px 20px 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  #butterfly {
    display: none;
  }

  #couverture {
    width: 150%;
    height: 150%;
    margin-left: 0;
  }

  .btn {
    margin-left: 0;
  }

  .details {
    padding: 5%;
  }

  .details p {
    margin: 10px;
  }
  .press-quote {
    font-size: 16px;
  }

  .resume {
    font-size: 17px;
  }

  #cd-rectangle {
    left: 80%;
    top: 55%;
    z-index: 10;
  }
}

footer {
  flex-direction: column;
}


@media (max-width: 768px) {
  #left-section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  } 

  #portrait-dessin {
    max-width: 300px;
  }

  #deco-paper {
    transform: translateY(25%);
  }

   .paper {
    width: 180px;
    height: 230px;
  }
  
  #cd-rectangle {
    display: none;
  }
}


@media only screen and (min-height: 1500px) {
  .content {
    flex-direction: column;
    padding: 120px 10%;
    min-height: 45vh;
    margin: 0 auto;
  }

  #deco-paper {
    transform: translateX(120%) translateY(35%);
  }

  .paper {
    width: 280px;
    height: 360px;
  }
  #couverture {
    width: 220%;
    height: 220%;
  }

  #about-recueil {
    margin: 0px;
  }
}
