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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #2d5016;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
}

.logo {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s ease-out 0.1s both;
}

.logo-img {
  width: 140px;
  height: auto;
}

.title {
  font-size: clamp(1.5rem, 2.8vw + 0.5rem, 2.25rem);
  font-weight: 600;
  color: #2d5016;
  letter-spacing: 0.2px;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subtitle {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.125rem);
  color: #558b2f; /* teinte d'origine */
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.9s ease-out 0.3s both;
}

.loading {
  width: 220px;
  height: 10px;
  margin: 0.25rem auto 0;
  background: #e8f5e8; /* fond d'origine */
  border-radius: 999px;
  overflow: hidden;
  animation: fadeInUp 0.9s ease-out 0.4s both;
}

.loading-bar {
  height: 100%;
  width: 36%;
  background: linear-gradient(45deg, #81c784 0%, #ffb74d 100%); /* dégradé d'origine */
  border-radius: inherit;
  animation: progress 1.6s ease-in-out infinite;
}

.footer {
  text-align: center;
  padding: 1rem 1.25rem 2rem;
  color: #4f6f4f;
}

/* Animations */
@keyframes progress {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(10%); }
  100% { transform: translateX(120%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translateZ(0); }
}

/* === Section: Listes du matériel (ajout sans changer la palette) === */
.lists-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.9s ease-out 0.6s both;
}

.lists-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Grille 3 colonnes (2 sur tablette, 1 sur mobile) */
.lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lists { grid-template-columns: 1fr; }
}

.lists li { list-style: none; }

.lists a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #2d5016;
  background: #fff;
  border: 1px solid #e8f5e8;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  word-break: break-word;
}

.lists a::before {
  content: "📄";
  margin-right: .5rem;
  font-size: 1.1rem;
}

.lists a:hover {
  background: #e8f5e8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(129, 199, 132, 0.15);
}

.lists .empty {
  color: #2d5016;
  opacity: 0.85;
  font-size: 0.95rem;
}

.lists-note {
  margin-top: .75rem;
  font-size: .85rem;
  color: #2d5016;
  opacity: .9;
}

/* === Section: Document PDF === */
.pdf-section {
  margin-top: 2rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.9s ease-out 0.6s both;
}

.pdf-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.pdf-viewer {
  width: 100%;
  height: min(85vh, 1000px);
  border: 1px solid #e8f5e8;
  border-radius: 12px;
  background: #fff;
}

.pdf-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #2d5016;
}

.pdf-note a {
  color: #2d5016;
  text-decoration: underline;
}
