body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f4;
  padding-top: 200px; /* Pour laisser de la place au header */
  padding-bottom: 60px; /* Pour laisser de la place au footer */
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
  background-color: #333;
  color: #f4f4f4;
}

.container {
  background: white;
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  transition: background-color 0.3s ease;
  width: 600px; /* Augmentation de la taille du conteneur */
}

body.dark-theme .container {
  background: #444;
}

.title {
  font-family: 'Josefin Sans', sans-serif;
  color: #333;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}

body.dark-theme .title {
  color: #f4f4f4;
}

/* Barre de progression */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  max-width: 500px; /* Limiter la largeur de la barre de progression */
  margin-left: auto;
  margin-right: auto;
}

.progress-line {
  height: 8px;
  flex: 1;
  max-width: 150px; /* Limiter la taille de la barre de progression */
  background-color: #e0e0e0;
  margin: 0 10px;
  transition: background-color 0.8s ease, width 1s ease;
}

body.dark-theme .progress-line {
  background-color: #e0e0e0;
}

body.dark-theme .progress-line.completed {
  background-color: #4CAF50;
}

body.dark-theme .step {
  background-color: #e0e0e0;
}

body.dark-theme .step.active {
  background-color: #006980;
}

body.dark-theme .step.completed {
  background-color: #4CAF50;
}

.progress-line.completed {
  background-color: #4CAF50;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 1;
  transition: background-color 0.5s ease, transform 0.3s ease;
}

body.dark-theme .step {
  background-color: #666;
}

.step.active {
  background-color: #006980;
  animation: pulse 1s infinite;
}

.step.completed {
  background-color: #4CAF50;
  animation: none;
}

/* Animation de pulsation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Textes autour des étapes */
.step-labels {
  display: flex;
  justify-content: space-between; /* Espace équivalent entre les labels */
  margin-bottom: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step-label-upload,
.step-label-compatibility,
.step-label-download {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: #333;
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.step-labels > span {
  width: 30%; /* Assurez une largeur égale pour chaque label */
  text-align: center; /* Centrer le texte à l'intérieur du label */
}

body.dark-theme .step-label-upload,
body.dark-theme .step-label-compatibility,
body.dark-theme .step-label-download {
  color: #f4f4f4;
}

/* Zone de dépôt */
.dropzone {
  border: 2px dashed #006980;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin: 0 auto 30px; /* Centrage horizontal et espace en bas */
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  font-family: 'Josefin Sans', sans-serif;
  min-width: 300px;
  max-width: 500px;
  box-sizing: border-box;
}

body.dark-theme .dropzone {
  background-color: #555;
  border-color: #00b4d8;
}

.dropzone:hover {
  background-color: #f1f1f1;
  border-color: #00b4d8;
  transform: scale(1.02);
}

body.dark-theme .dropzone:hover {
  background-color: #666;
}

.dropzone.dragover {
  background-color: #d4f1f9;
  border-color: #48cae4;
  transform: scale(1.05);
}

/* Container des boutons radio */
.radio-buttons-container {
  display: flex;
  justify-content: center; /* Centrer les boutons radio horizontalement */
  gap: 15px;
  margin: 0 auto 30px auto; /* Centrer et espacer en bas */
}

/* Boutons Radio Stylés */
input[type="radio"] {
  display: none;
}

label {
  font-size: 14px;
  background-color: #e0e0e0;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Josefin Sans', sans-serif;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-theme label {
  background-color: #555;
  color: #f4f4f4;
}

input[type="radio"]:checked + label {
  background-color: #006980;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  animation: bounce 0.4s;
}

label:hover {
  background-color: #00b4d8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

body.dark-theme label:hover {
  background-color: #00b4d8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Animation d'oscillation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Bouton Convertir */
.convert-button {
  padding: 10px 40px;
  background-color: #006980;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto; /* Centrage horizontal et espace en haut augmenté à 40px */
}

.convert-button:hover {
  background-color: #00b4d8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.convert-button:active {
  transform: scale(0.95);
}

/* Bouton de thème */
.theme-toggle {
  position: relative;
  margin: 20px auto; /* Centrer et espacer le bouton sur mobile */
  display: block;
  padding: 10px 20px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

body.dark-theme .theme-toggle {
  background-color: #f4f4f4;
  color: black;
}

.theme-toggle:hover {
  background-color: #00b4d8;
  transform: scale(1.05);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
  .theme-toggle {
    margin: 20px auto; /* Centre bien le bouton sur les petits écrans */
  }
}

/* Bandeau supérieur */
.header {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header img.logo {
  max-height: 50px;
}

body.dark-theme .header {
  background-color: #222;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.footer {
  width: 100%;
  padding: 10px 0;
  background-color: white;
  color: #333;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: center;
  z-index: 1000;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Josefin Sans', sans-serif;
}

body.dark-theme .footer {
  background-color: #222;
  color: #f4f4f4;
  box-shadow: 0 -4px 6px rgba(255, 255, 255, 0.1);
}

.footer a {
  color: #006980;
  text-decoration: none;
}

.footer a:visited {
  color: #004d66;
}

body.dark-theme .footer a {
  color: #00b4d8;
}

body.dark-theme .footer a:visited {
  color: #0084a3;
}
