/* --- Style global et centrage parfait --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  font-family: "Poppins", "Segoe UI", sans-serif;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background: url(../img_1/acceuil/pattern_1_50.svg),
    linear-gradient(
      180deg,
      rgba(187, 0, 255, 0.7) 10%,
      rgba(136, 0, 255, 0.7) 20%,
      rgba(0, 0, 255, 0.7) 40%,
      rgba(0, 178, 255, 0.7) 50%,
      rgba(0, 255, 229, 0.7) 60%,
      rgba(13, 255, 0, 0.7) 70%,
      rgba(255, 242, 0, 0.7) 80%,
      rgba(255, 98, 0, 0.7) 90%,
      rgba(255, 0, 0, 0.7) 100%
    );
  background-size: 18%;
  background-position: center;
  display: flex;
  justify-content: center;
  padding: 8%;
  position: relative;
}

/* --- Conteneur principal --- */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* --- Boîte du formulaire de paiement --- */
.payment-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 500px;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeIn 0.6s ease;
}

/* --- Animation d'apparition --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Titre --- */
.payment-box h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 600;
}

/* --- Champs de formulaire --- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

input {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #000000;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* --- Disposition des champs sur une ligne --- */
.row {
  display: flex;
  gap: 12px;
}

.half {
  flex: 1;
}

/* --- Bouton de paiement --- */
.btn-pay {
  background: linear-gradient(135deg, #000000, #000000);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-pay:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 0, 0, 0.514) 0%,
    rgba(255, 98, 0, 0.599) 15%,
    rgba(255, 242, 0, 0.507) 25%,
    rgba(13, 255, 0, 0.514) 35%,
    rgba(0, 255, 229, 0.438) 45%,
    rgba(0, 179, 255, 0.435) 55%,
    rgba(0, 0, 255, 0.418) 65%,
    rgba(136, 0, 255, 0.308) 85%,
    rgba(187, 0, 255, 0.449) 95%
  );

  -webkit-text-fill-color: #000000;

  color: transparent;
  filter: contrast(200%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* --- Texte de sécurité --- */
.secure {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 15px;
}

.main_4 {
  position: relative;
  overflow: hidden;
}

.main_4 .drops-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.main_4 .drops-bg span {
  position: absolute;
  bottom: 90%;
  width: 2.5%;
  height: 99%;
  background: rgba(0, 0, 0, 0.168);
  border-radius: 49%;
  animation: rainDrop 6s linear infinite;
}

/* Gouttes animées */
.main_4 .drops-bg span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}
.main_4 .drops-bg span:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 5s;
}
.main_4 .drops-bg span:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 8s;
}
.main_4 .drops-bg span:nth-child(4) {
  left: 55%;
  animation-delay: 1s;
  animation-duration: 6s;
}
.main_4 .drops-bg span:nth-child(5) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}
.main_4 .drops-bg span:nth-child(6) {
  left: 85%;
  animation-delay: 5s;
  animation-duration: 7s;
}
.main_4 .drops-bg span:nth-child(7) {
  left: 15%;
  animation-delay: 6s;
  animation-duration: 6s;
}
.main_4 .drops-bg span:nth-child(8) {
  left: 35%;
  animation-delay: 1.5s;
  animation-duration: 8s;
}
.main_4 .drops-bg span:nth-child(9) {
  left: 60%;
  animation-delay: 2.5s;
  animation-duration: 5s;
}
.main_4 .drops-bg span:nth-child(10) {
  left: 80%;
  animation-delay: 4.5s;
  animation-duration: 9s;
}

@keyframes rainDrop {
  0% {
    transform: translateY(-10%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}
/* animation */

.main_4 .content {
  position: relative;
  z-index: 1;
}

.main_4 {
  background: url(../img_1/acceuil/pattern_1_50.svg),
    linear-gradient(
      180deg,
      rgba(255, 0, 0, 0.7) 0%,
      rgba(255, 98, 0, 0.7) 10%,
      rgba(255, 242, 0, 0.7) 20%,
      rgba(13, 255, 0, 0.7) 30%,
      rgba(0, 255, 229, 0.7) 40%,
      rgba(0, 178, 255, 0.7) 50%,
      rgba(0, 0, 255, 0.7) 60%,
      rgba(136, 0, 255, 0.7) 80%,
      rgba(187, 0, 255, 0.7) 90%
    );
  background-size: 18%;
  background-position: center;
  display: flex;
  justify-content: center;
  padding: 8%;
}

.content {
  background-color: black;
  width: 75%;
  padding: 4%;
  display: flex;
  flex-direction: column;
  gap: 4%;
}

.top-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/*_________________________________footer_________________________________________________________*/

/* Bouton hover existant */
.bouton_1:hover {
  background-color: #b36c3e;
  color: #fff;
  transform: scale(1.2);
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

/* Footer fixe en bas */
footer {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 1.5px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 3.5%;
  overflow: hidden;
  transition: height 0.4s ease;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  font-size: 60%;
  font-family: "Sour Gummy", sans-serif;
}

/* Pseudo-élément fleur pour afficher la nav */
footer::before {
  content: "✿"; /* fleur */
  display: block;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 5px;
}

/* Liste dans le footer en colonne et centrée */
footer ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;

  display: flex;
  flex-direction: column; /* empile les items verticalement */
  align-items: center; /* centre horizontalement */
  justify-content: center; /* centre verticalement si nécessaire */
  gap: 10px; /* espace entre les items */

  opacity: 0; /* caché par défaut */
  transition: opacity 0.4s ease;
}

/* Liens dans le footer */
footer a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

footer a:hover {
  transform: scale(1.2);

  background: linear-gradient(
    90deg,
    rgb(139, 0, 0) 0%,
    rgb(150, 57, 1) 10%,
    rgb(178, 169, 0) 20%,
    rgb(6, 121, 0) 30%,
    rgb(0, 157, 142) 40%,
    rgb(0, 142, 202) 50%,
    rgb(0, 0, 116) 60%,
    rgb(71, 0, 133) 80%,
    rgb(102, 7, 136) 90%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: contrast(200%);
}

footer img {
  width: 40px;
  height: auto;
  border-radius: 40px;
}

footer:hover {
  height: 100px;
}

footer:hover ul {
  opacity: 1;
}
