/* Fond et centrage */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
  padding: 1rem;
}

/* Carte du formulaire */
.formulaire-inscription {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 420px;
  width: 100%;
}

/* Titre */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
}

/* Champs */
.input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 5px rgba(25,118,210,0.35);
  outline: none;
}

/* Bouton */
button.btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.btn:hover {
  background: #125a9c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}


.circuit-inscription-cadre {
  position: relative;
  width: 520px;
  margin: 0 auto;
}

.circuit-svg-container {
  position: relative;
  width: 100%;
  height: 320px;
  margin-bottom: -260px; /* superpose le circuit à la carte */
  z-index: 2;
}

.circuit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  pointer-events: none;
  z-index: 1;
}

.formulaire-inscription {
  position: relative;
  z-index: 3;
  margin-top: -260px;
  background: #fff;
  padding: 2rem;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 420px;
  width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Animation voiture sur le circuit */
.car-circuit-cadre {
  position: absolute;
  width: 70px;
  height: auto;
  z-index: 5;
  animation: carTour 8s linear infinite;
}

@keyframes carTour {
  0%   { top: 10px; left: 10px; transform: rotate(0deg);}
  12%  { top: 10px; left: 440px; transform: rotate(90deg);}
  25%  { top: 10px; left: 500px; transform: rotate(90deg);}
  37%  { top: 250px; left: 500px; transform: rotate(180deg);}
  50%  { top: 250px; left: 440px; transform: rotate(180deg);}
  62%  { top: 250px; left: 10px; transform: rotate(270deg);}
  75%  { top: 250px; left: -30px; transform: rotate(270deg);}
  87%  { top: 10px; left: -30px; transform: rotate(360deg);}
  100% { top: 10px; left: 10px; transform: rotate(360deg);}
}

.circuit-start-cadre {
  position: absolute;
  left: 30px;
  top: 0px;
  font-size: 1rem;
  color: #2c3e50;
  font-weight: bold;
  background: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #1976d2;
  z-index: 6;
}

/* Responsive */
@media (max-width: 480px) {
    .formulaire-inscription {
        padding: 0.5rem;
    }

    #utilisateur_email,
    #utilisateur_plainPassword_first,
    #utilisateur_plainPassword_second
    {
        width: 90%;

    }
    .circuit-inscription-cadre,
    .circuit-svg-container,
    .circuit-svg,
    .car-circuit-cadre{
      font-size: 1.2rem;
      font-weight: 100px;
    }

    h1.h3.mb-3 {
        font-size: 1.5rem;
    }

     @keyframes carTour {
        0%   { top: 10px; left: 10px; transform: rotate(0deg);}
        12%  { top: 10px; left: 384px; transform: rotate(90deg);}
        25%  { top: 10px; left: 432px; transform: rotate(90deg);}
        37%  { top: 140px; left: 432px; transform: rotate(180deg);}
        50%  { top: 140px; left: 384px; transform: rotate(180deg);}
        62%  { top: 140px; left: 10px; transform: rotate(270deg);}
        75%  { top: 140px; left: 0px; transform: rotate(270deg);}
        87%  { top: 10px; left: 0px; transform: rotate(360deg);}
        100% { top: 10px; left: 10px; transform: rotate(360deg);}
    }
}
