/* Base */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 2rem;
  text-align: center;
}

/* Conteneurs généraux */
.container, .card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: auto;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

/* Titres */
h1 {
  font-size: 1.8rem;
  color: #333;
}

/* Formulaires */
input[type="text"] {
  padding: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

input {
  padding: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

/* Boutons */
button {
  padding: 1rem;
  background-color: #ff5e57;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover {
  background-color: #ff2e2a;
}

/* Listes */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Résultat */
#result img {
  transition: transform 0.3s;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 0.5rem;
}
#result img:hover {
  transform: scale(1.05);
}

/* Responsive padding */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .container, .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.badge {
  text-align: center;
  max-width: 100px;
}

.badge img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.badge img:hover {
  transform: scale(1.1);
}

.badge p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

.alert-warning {
  background-color: #fff8e1;
  color: #8a6d3b;
  border: 1px solid #ffdd99;
  padding: 1rem;
  border-radius: 0.75rem;
  max-width: 600px;
  margin: 1rem auto 2rem auto;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.alert-warning a {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  color: #d35400;
}

.alert-warning a:hover {
  text-decoration: underline;
}

.intro-section {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 900px;
}

.feature-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex: 1 1 250px;
  max-width: 280px;
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Nav container */
.main-nav {
  background-color: #2a9d8f;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  user-select: none;
}

/* Menu toggle button for mobile */
#menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Navigation menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: #e9c46a;
  border-bottom-color: #e9c46a;
  outline: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #2a9d8f;
    flex-direction: column;
    display: none;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .nav-menu li a {
    padding: 1rem 1.5rem;
    border-bottom: none;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

thead {
  background-color: #4CAF50;
  color: white;
}

tbody tr:hover {
  background-color: #f1f1f1;
}

.btn-report {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.btn-report:hover {
  background-color: #c0392b;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-bar .fill {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.5s ease-in-out;
}

