@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #fff5f9 50%, #ffdce9 100%);
}

a:link,
a:visited {
  color: inherit;
}
/* Début du Header */

/* Gestion taille et aspect global du header */

.header-form {
  background-color: rgb(255, 255, 255);
  position: relative;
  height: 80px;
  top: 0;
  border-bottom: 1px solid #ffc3d8;
  box-shadow: 0px 2px rgba(0, 0, 0, 0.05);
}

header > * {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 30px 0 30px;
}

/* Gestion du menu de navigation */

.menu a:hover:not(#accueil-active) {
  border: 2px solid transparent;
  background-color: #fed6e6d0;
  padding: 0.4rem 0.8rem;
}

#accueil-active {
  background: linear-gradient(135deg, #ff5f95, #ff758c);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
}

.menu {
  right: 0;
  text-decoration: none;
}

.menu-text {
  color: #495871;
  font-family: "Poppins";
  font-size: 18px;
  margin: 5px;
  font-weight: 600;
  display: inline-block;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Gestion du texte à gauche du header */

header > a {
  text-decoration: none;
  font-size: 27px;
  font-weight: 600;
  margin-left: 20px;
}

/* Fin du Header */

/* Début de la Main Page */

.main-page {
  display: block;
  margin: 40px auto 0 auto;
  width: 80%;
  text-align: center;
}

/* Effets sur la main page */

/* 🌿 Apparition rapide et élégante de la page */
body {
  opacity: 0;
  transform: translateY(8px);
  animation: pageFadeIn 0.5s ease-out forwards;
}

/* Animation fluide mais plus courte */
@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ✨ Apparition en cascade des rectangles + bouton */
.rectangles-form li,
button {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.45s ease-out forwards;
}

.rectangles-form li:nth-child(1) {
  animation-delay: 0.2s;
}
.rectangles-form li:nth-child(2) {
  animation-delay: 0.3s;
}
.rectangles-form li:nth-child(3) {
  animation-delay: 0.4s;
}
button {
  animation-delay: 0.55s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation texte principal */

.main-texts h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

.rectangle:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/*Textes Principaux*/

.main-texts h1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #f472b6, #ec4899, #db2777);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  overflow: hidden;
}

.hearts-form {
  width: 25px;
  height: auto;
}

.p-title {
  font-family: "Poppins";
  font-size: 22px;
  margin-bottom: 2px;
  color: #5b6a84;
}

.p-text {
  font-family: "Poppins";
  font-size: 20px;
  margin: 7px;
}

/* Rectangles images  */

.rectangles-form {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  align-items: start;
  margin: 50px auto;
  max-width: 1000px;
  width: 100%;
  list-style: none;
  padding: 0 10px;
}

/* Intérieur des rectangles */

.rectangle {
  width: 100%;
  max-width: 260px;
  background-color: #ffffff;
  border: 1px solid #ffc3d8;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rectangle-icon {
  margin-bottom: 10px;
  width: 40px;
  height: 40;
  color: white;
  background: linear-gradient(135deg, #ff2d73, #ff637dbe);
  border-radius: 9999px;
  padding: 0.8rem 0.8rem;
}

.rectangle-first-text {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 20px;
}

.rectangle-second-text {
  font-size: 15px;
  color: #374151bb;
  font-family: "Poppins";
}

/* Mise en forme du Boutton*/

button:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.45);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  margin-bottom: 30px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #ec4899, #db2777);
  border: none;
  border-radius: 9999px; /* forme pill arrondie */
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button i {
  width: 20px;
  height: 20px;
  color: white;
  display: block;
}

#phrase {
  color: #5b6a84;
  font-weight: 600;
}
/*Fin de la Main Page */

/* Début du Footer*/

footer {
  margin-top: 60px;
  position: relative;
  width: 100%;
  height: 60px;
  background-color: white;
  border-top: 1px solid #ffc3d8;
  box-shadow: 0 px 5px rgba(0, 0, 0, 0.2);
}

.footer-text {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #f472b6, #ec4899, #db2777);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
  text-align: center;
}

/* Affichage responsive (tablette = 1100px) */

@media screen and (max-width: 600px) {
  .rectangles-form {
    justify-content: center;
    padding: 0; /* enlève la marge interne à gauche/droite */
  }

  .rectangle {
    max-width: 90%; /* ils se centrent parfaitement */
  }
}

@media screen and (max-height: 770px) {
  #phrase {
    margin-top: 25px;
  }
}

@media screen and (max-width: 700px) {
  /* Gestion du header  */

  .menu .menu-label {
    display: none;
  }

  .menu a {
    gap: 0.25rem;
  }

  header > a {
    font-size: 18px;
  }
}
