/* Réinitialisation des styles par défaut */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li, form, input, button {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Open Sans", sans-serif;
  vertical-align: baseline;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  margin-bottom: 30px;
}

/* Titre */
h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 35px;
  text-align: center;
}

/* Champs de saisie */
input[type="number"] {
  width: 90%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

select, option {
  font-size: 16px;
  padding:3px;
}

/* Bouton */
button {
  display: block;
  width: 90%;
  padding: 10px;
  margin-top: 20px;
  background-color: #82259C;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #AA30CC;
}

/* Résultat */
.result-container {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #212529;
}

.result-container p {
  margin-bottom: 10px;
  color: #6c757d;
}

.result-container strong {
  color: #212529;
  font-weight: 600;
}

/* Message d'erreur */
.error {
  color: red;
  margin-top: 10px;
}

footer {
  display: flex;
  flex-direction: row;
  height: 5vh;
  width: 30vw;
  margin: auto;
  background-color: #f8f8f8;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  justify-content:space-around;
  align-items:center;
}

body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.card {
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.card-title {
  font-weight: 600;
  margin-bottom: 15px;
}

.card-text {
  color: #6c757d;
}

.btn-primary {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  /* GM select container for mobile */
  .w-50 {
    width: 50% !important;
  }
}

/* GM select container for extra small screens */
@media (max-width: 575.98px) {
  .w-50 {
    width: 100% !important;
  }
}