@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&amp;display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #004d7a;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .logo a {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

nav .logo span {
  color: #4ade80;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: auto;
}

nav ul li a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease;
}

nav ul li a:hover {
  transform: scale(1.1);
}

.fa-bars {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Section de succès */
.index-section1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.index-section1 .content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  max-width: 500px;
  width: 90%;
  border-top: 5px solid #4ade80;
}

.index-section1 h1 {
  color: #10b981;
  font-size: 28px;
  margin-bottom: 15px;
}

.index-section1 p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.index-section1 a {
  display: inline-block;
  background-color: #004d7a;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.index-section1 a:hover {
  background-color: #0369a1;
}

/* Pied de page */
footer {
  background-color: #004d7a;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .fa-bars {
    display: block;
  }
}

.p {
    text-align: center;
    font-size: 20px;
    margin: 40px 20px 20px;
    color: #004d7a;
    font-weight: 600;
    animation: fadeIn 0.8s ease-in-out;
  }
  
  /* Grille responsive pour les banques */
  .imgg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;text-align: center;
  }
  
  .imgg a {
    display: block;
    transition: transform 0.3s ease;
  }
  
  .imgg a:hover {
    transform: scale(1.05);
  }
  
  .imgg img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 300px;
  }
  
  /* Responsive menu (déjà partiellement présent) */
  @media (max-width: 768px) {
   
    .imgg img {
        width: 100%;
        text-align: center;
        align-items: center;
        margin: auto;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
        object-fit: cover;
        height: 250px;
      }
    nav ul {
      display: none;
      flex-direction: column;
      background-color: #004d7a;
      position: absolute;
      top: 60px;
      right: 20px;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
  
    nav ul.show {
      display: flex;
    }
  
    .fa-bars {
      display: block;
    }
  }
  
  /* Animation (si non déjà présente) */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

  .code-section {
    max-width: 500px;
    margin: 80px auto 40px;
    padding: 30px 20px;
    background-color: #f4f9ff;
    margin-top: 200px;
    margin-bottom: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.7s ease-in-out;
  }
  
  .code-section input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 2px solid #0077b6;
    border-radius: 10px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  .code-section input:focus {
    border-color: #00b4d8;
  }
  
  .code-section button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    background-color: #38b000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .code-section button:hover {
    background-color: #2d8800;
  }
  
  #loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 5px solid #eee;
    border-top: 5px solid #0077b6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
  }
  
  #message {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  @media (max-width: 600px) {
    .code-section {
      margin: 60px 15px;
      padding: 25px 15px;
      margin-top: 200px;
    margin-bottom: 200px;
    }
  
    .code-section input,
    .code-section button {
      font-size: 15px;
    }



  }

  /* IMAGE DANS LE FORMULAIRE */
  .form {
    margin-top: 100px;
    width: 100%;
    margin-bottom: 100px;
  }
.form .img {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .form .img img {
    max-width: 350px;

    height: auto;
    height: 300px;
  }
  
  /* CHAMPS DE FORMULAIRE */
  form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-align: left;
  }
  
  form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 45px;
  }
  
  /* BOUTON */
  form button {
    width: 100%;
    padding: 12px;
    background: green;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
  }
  
  form button:hover {
    background: #004d00;
  }
  @media (max-width: 768px) {
    .form {
        width: 95%;
        margin: auto;
        margin-top: 20px;

    }
    .form img{
        width: 100%;
        margin: auto;
    }
  }
  /* MENU BURGER STYLE */
  .fa-bars {
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
  }
  
  @media (max-width: 768px) {

    .fa-bars {
      display: block;
    }
  
    .menu {
      display: none;
      flex-direction: column;
      background: #006400;
      margin: auto;
      width: 90%;
      text-align: center;
     
    }
  
    .menu.show {
      display: flex;
    }
  
    .menu li {
      padding: 10px;
      text-align: center;
    }
  }
  
  

  .dashboard {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #f9fef9;
    border: 2px solid #4caf50;
    border-radius: 10px;
    font-family: 'Noto Sans Mongolian', sans-serif;
    color: #333;
    text-align: center;
  }
  
  .dashboard h2 {
    margin-bottom: 30px;
    color: #2e7d32;
  }
  
  .account-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .account-info > div {
    flex: 1 1 45%;
    background: white;
    border: 1px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  }
  
  .account-info h3 {
    color: #388e3c;
    margin-bottom: 10px;
  }
  
  .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e7d32;
  }
  
  .status p {
    font-size: 1.1rem;
    color: #555;
  }
  
  .actions button {
    background-color: #4caf50;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    cursor: not-allowed;
    opacity: 0.5;
    transition: background-color 0.3s ease;
  }
  
  .actions button:hover:not(:disabled) {
    background-color: #388e3c;
  }
  @media screen and (max-width: 900px) {
    .actions{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
  }

  .hide {
    display: none;
}
