/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #f2f2f2;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Main Content */
.main-content {
  flex: 1;
  padding-top: 100px;   /* pour éviter la navbar fixe */
  padding-bottom: 60px; /* pour laisser de l'espace avant le footer */
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: #ffd700;
}

/* Upload Section */
.upload {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 100px 0;
  text-align: center;
  margin-top: 70px; /* pour éviter de chevaucher la navbar fixe */
}

.upload .container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 1rem auto;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
}

.drop-zone.highlight {
  background: #e9f5ff;
  border-color: #66afe9;
}

.drop-zone p {
  margin: 0.5rem 0;
  color: #666;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.feedback {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:disabled {
  background-color: #bbb;
  cursor: not-allowed;
}

button:not(:disabled):hover {
  background-color: #0056b3;
}

/* Packed File Section */
.packed-file-section {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.packed-file-section h2 {
  margin-bottom: 0.5rem;
  color: #333;
}

.packed-file-section a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #28a745;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.packed-file-section a:hover {
  background-color: #218838;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

