body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0e7ff 0%, #f4f4f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
  padding: 32px 28px 24px 28px;
  text-align: center;
}

header {
  background: #35424a;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

h1 {
  margin: 0 0 24px 0;
  font-size: 1.6em;
  color: #35424a;
  letter-spacing: 1px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

label {
  font-weight: 500;
  color: #35424a;
  margin-bottom: 4px;
  text-align: left;
}

input[type="file"] {
  margin: 0;
  padding: 8px 0;
  border: none;
  background: none;
}

button {
  font-size: 17px;
  color: #fff;
  background: #35424a;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button:hover:enabled {
  background: #22313a;
}

.link-container {
  margin-top: 20px;
}

.link {
  display: inline-block;
  margin-top: 10px;
  color: #35424a;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.custom-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.custom-file input[type="file"] {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  z-index: -1;
}

.custom-file label {
  background: #e0e7ef; /* Couleur de fond claire */
  color: #35424a; /* Texte foncé */
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  margin: 0;
  white-space: nowrap;
  border: 1px solid #b0b9c8; /* Liseré discret */
}

.custom-file label:hover {
  background: #d1d8e6; /* Légèrement plus foncé au hover */
  color: #22313a;
}

.file-name {
  /* max-width: 280px;*/
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  color: #35424a;
  font-size: 14px;
  margin-left: 4px;
}

@media (max-width: 500px) {
  .container {
    padding: 18px 6px 14px 6px;
    max-width: 98vw;
  }
  h1 {
    font-size: 1.1em;
  }
}
