/* Global styles */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #f8f9fa; /* Couleur de fond plus claire */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}

header {
  /* background: linear-gradient(135deg, #d1d11a, #c8c808); Dégradé turquoise */
  background-color: #FFCC00; /* Jaune Western Union */
  color: #120101;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.8em;
  font-weight: bold;
  letter-spacing: 1px;
}

header p {
  font-size: 1.3em;
  margin-top: 10px;
  font-weight: 300;
}

/* Cards container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px;
  margin: 0 auto;
  max-width: 1200px;
}

/* Card Styles */
.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h2 {
  color: #020605;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.card p {
  font-size: 1em;
  color: #7f8c8d;
  margin: 8px 0;
}

.card button {
  background-color: #FFCC00;
  color: #090101;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card button:hover {
  background-color: #FFCC00;
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.5);
}

/* Footer styles */
footer {
  background: #2c3e50;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  font-size: 1em;
}

/* Popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5em;
  cursor: pointer;
  color: #e74c3c;
}

.hidden {
  display: none;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
#personneReference {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 5px rgba(26, 188, 156, 0.4);
  outline: none;
}

label::after {
  content: '*';
  color: #e74c3c;
  margin-left: 4px;
  font-size: 1.2em;
}

input[type="checkbox"] {
  margin-right: 8px;
}

/* Boutons de formulaire */
button[type="submit"] {
  background-color: #1abc9c;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #16a085;
  box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
}

button[type="button"] {
  background-color: #e74c3c;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="button"]:hover {
  background-color: #c0392b;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.5);
}

/* Liens */
a {
  color: #1abc9c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .popup-content {
    width: 95%;
    padding: 20px;
  }
}
