/* ---------- BODY ---------- */
body {
  height: 100%;
  width: 100%;
  background: #0f1b33;
  overflow: hidden;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ---------- TITLE ---------- */
.page-title {
  position: absolute;
  top: 20px;               /* place le titre en haut */
  left: 50%;               /* centre horizontalement */
  transform: translateX(-50%);
  font-family: 'Cursive', 'Arial', sans-serif;  /* style élégant */
  font-size: 48px;         /* taille du texte */
  color: #ffd1dc;          /* couleur rose douce */
  text-shadow: 0 0 10px rgba(255, 209, 220, 0.7), 
               0 0 20px rgba(255, 209, 220, 0.5); /* léger glow */
  z-index: 100;            /* au-dessus de la fleur */
  opacity: 0;
  animation: fadeInTitle 2s ease forwards 0.5s; /* apparait en douceur */
}


/* ---------- CONTAINER FLEUR ---------- */
.container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.5); /* agrandit la fleur */
  transform-origin: center;
}

/* ---------- VASE ---------- */
.glass {
  height: 350px;
  width: 200px;
  background: #122139;
  border-radius: 300px 300px 0 0;
  position: relative;
}

.glass:before {
  content: "";
  height: 10px;
  width: 10px;
  transform-origin: center;
  border: 10px solid #122139;
  border-radius: 100%;
  position: absolute;
  left: 87px;
  top: -25px;
}

.glass:after {
  content: "";
  position: absolute;
  height: 15px;
  width: 250px;
  background: #a52a2a;
  top: 100%;
  left: -13%;
}

/* ---------- BRILLANCE ---------- */
.shine {
  width: 12px;
  height: 140px;
  background: white;
  opacity: 0.2;
  position: absolute;
  left: 85%;
  top: 80px;
  border-radius: 100px;
  z-index: 10;
}

.shine:before {
  content: "";
  width: 12px;
  height: 20px;
  position: absolute;
  background: white;
  top: 160px;
  border-radius: 100px;
}

/* ---------- PETALS ---------- */
.petals > div {
  position: absolute;
  background: #d52d58;
  width: 45px;
  height: 80px;
  top: 55px;
  transition: all 0.5s ease-out;
}

.petals > div:nth-child(1) {
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(245, 148, 184, 1);
  left: 80px;
  top: 60px;
  background: #d52d58;
}

.petals > div:nth-child(2),
.petals > div:nth-child(4),
.petals > div:nth-child(6) {
  background: #b81b43;
  left: 60px;
  border-radius: 0 30px 0 30px;
  transform-origin: bottom right;
}

.petals > div:nth-child(3),
.petals > div:nth-child(5),
.petals > div:nth-child(7) {
  background: #b81b43;
  left: 100px;
  border-radius: 30px 0 30px 0;
  transform-origin: bottom left;
}

/* Animations spécifiques aux pétales */
.petals > div:nth-child(2) { z-index: 5; background: #a51d3d; top: 75px; height: 70px; box-shadow: 0 0 50px rgba(245,148,184,0.5); animation: bloom2 3s ease-in-out forwards; }
.petals > div:nth-child(3) { z-index: 4; background: #a51d3d; top: 75px; height: 70px; box-shadow: 0 0 50px rgba(245,148,184,0.5); animation: bloom3 3s ease-in-out, glowing 2.5s ease-in-out infinite; animation-fill-mode: forwards; }
.petals > div:nth-child(4) { z-index: 3; background: #b81b43; top: 70px; height: 75px; box-shadow: 0 0 50px rgba(245,148,184,0.5); animation: bloom4 3s ease-in-out, glowing 2.5s ease-in-out infinite; animation-fill-mode: forwards; }
.petals > div:nth-child(5) { z-index: 2; background: #b81b43; top: 70px; height: 75px; box-shadow: 0 0 50px rgba(245,148,184,0.5); animation: bloom5 3s ease-in-out, glowing 2.5s ease-in-out infinite; animation-fill-mode: forwards; }
.petals > div:nth-child(6) { z-index: 1; background: #c9204b; top: 65px; height: 70px; box-shadow: 0 0 50px rgba(245,148,184,0.3); animation: bloom6 3s ease-in-out, glowing 2.5s ease-in-out infinite; animation-fill-mode: forwards; }
.petals > div:nth-child(7) { z-index: 0; background: #c9204b; top: 65px; height: 70px; box-shadow: 0 0 50px rgba(245,148,184,0.3); animation: bloom7 3s ease-in-out, glowing 2.5s ease-in-out infinite; animation-fill-mode: forwards; }

/* ---------- DEAD PETALS ---------- */
.deadPetals > div {
  position: absolute;
  background: #d52d58;
  width: 20px;
  height: 15px;
  top: 120px;
  border-radius: 0 30px 0 30px;
  box-shadow: 0 0 30px rgba(245,148,184,0.5);
  transition: all 0.5s ease-out;
}

.deadPetals > div:nth-child(1) { left: 72px; transform: rotate(-30deg); animation: falling 20s 4s ease-in-out infinite; }
.deadPetals > div:nth-child(2) { left: 118px; transform: rotate(-30deg); animation: falling 20s 8s ease-in-out infinite; }
.deadPetals > div:nth-child(3) { left: 85px; transform: rotate(-30deg); animation: falling 20s 12s ease-in-out infinite; }
.deadPetals > div:nth-child(4) { left: 110px; transform: rotate(-30deg); animation: falling 20s 16s ease-in-out infinite; }

/* ---------- LEAVES ---------- */
.leaves > div:nth-last-child(1) { position: absolute; width: 55px; height: 30px; background: #338f37; top: 120px; left: 75px; border-radius: 100px; }
.leaves > div:nth-child(1) { position: absolute; width: 6px; height: 210px; background: #065f06; top: 95px; left: 100px; border-radius: 0 0 100px 100px; }
.leaves > div:nth-child(2) { position: absolute; width: 30px; height: 50px; top: 180px; left: 80px; border-radius: 5px 40px 20px 40px; background: #065f06; transform-origin: bottom; transform: rotate(-30deg); box-shadow: inset 5px 5px #0a9b0a; }
.leaves > div:nth-child(3) { position: absolute; width: 30px; height: 50px; top: 150px; left: 95px; border-radius: 40px 5px 40px 20px; background: #065f06; transform-origin: bottom; transform: rotate(30deg); box-shadow: inset -5px 5px #0a9b0a; }

/* ---------- THORNS ---------- */
.thorns > div { position: absolute; width: 0; height: 0; top: 140px; }
.thorns > div:nth-child(odd) { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid #065f06; left: 105px; }
.thorns > div:nth-child(even) { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 5px solid #065f06; left: 95px; }
.thorns > div:nth-child(1) { top: 200px; }
.thorns > div:nth-child(2) { top: 170px; }
.thorns > div:nth-child(4) { top: 230px; }

/* ---------- TEXTES GAUCHE & DROITE ---------- */
.text-left, .text-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  padding: 15px 20px;
  background: rgba(18,33,57,0.5);
  color: #fffafa;
  font-family: Arial, sans-serif;
  font-size: 18px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  opacity: 0; /* invisible au départ */
}

.text-left {
  left: 2%;   /* plus éloigné de la fleur */
  width: 35%;
  animation: showLeft 5s forwards;
}

.text-right {
  right: 2%;  /* plus éloigné de la fleur */
  width: 35%;
  animation: showRight 5s 3s forwards;
}


/* Keyframes pour glisser depuis encore plus loin */
@keyframes showLeft {
  0% { opacity: 0; transform: translateY(-50%) translateX(-150px); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes showRight {
  0% { opacity: 0; transform: translateY(-50%) translateX(150px); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}


/* ---------- ANIMATIONS PETALS ---------- */
@keyframes bloom2 { 50% { transform: rotate(-90deg); top:200px; left:100px; } 100% { transform: rotate(-60deg); top:252px; left:50px; background:#99523b; box-shadow:0 0 0 rgba(245,148,184,0); } }
@keyframes bloom3 { 100% { transform: rotate(45deg); } }
@keyframes bloom4 { 100% { transform: rotate(-20deg); } }
@keyframes bloom5 { 100% { transform: rotate(20deg); } }
@keyframes bloom6 { 100% { transform: rotate(-5deg); } }
@keyframes bloom7 { 100% { transform: rotate(5deg); } }
@keyframes glowing { 50% { background:#d9405b; box-shadow:0 0 60px rgba(245,148,184,1); } }
@keyframes falling { 20% { top:335px; background:#b32142; box-shadow:0 0 0 rgba(245,148,184,0); } 100% { top:335px; opacity:0; } }
/* ---------- ANIMATION TITLE ---------- */
/* Animation pour faire apparaître le titre */
@keyframes fadeInTitle {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}