/* Appliquer box-sizing globalement */

/* Variables principales (couleurs du site) */
:root {
  --primary-color: #D32F2F; /* Rouge */
  --secondary-color: #ffffff; /* Blanc */
  --accent-color: #B71C1C;  /* Rouge foncé pour les accents */
  --text-color: #333;
}
body {
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}
/* Conteneur principal */
.auth-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--secondary-color);
  border-radius: 0.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
/* Titre de la page */
.auth-container h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
}
/* Section d'alerte pour les messages Django */
.alert-container .alert {
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  color: #000; /* Texte en blanc */
}
.alert-success {
  background-color: #dcffe2;
}
.alert-error,
.alert-danger {
  background-color: #eec3c0;
}
.alert-info {
  background-color: #e3f0fe;
}
/* Titres de section (Login, Register, etc.) */
.auth-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-align: center;
}
/* Espacement des formulaires et champs */
.mb-3 { margin-bottom: 1rem !important; }
.form-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;

}

.form-label1 {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
   text-align: center;

}
.form-check-label a { text-decoration: underline; }
/* Styles pour les champs de formulaire */
.form-control {
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
select.form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 4 5'%3E%3Cpath fill='%23666' d='M2 0L0 2h4zM0 3l2 2 2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem auto;
}
/* Bouton principal */
.cta-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px -4px rgba(0,0,0,0.25);
  display: inline-block;
  margin-top: 0.75rem;
  width: 100%;
  cursor: pointer;
}
.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
/* Spinner CSS pour la soumission */
.spinner {
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Liens sous les boutons */
.form-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
/* Icône de bascule du mot de passe */
.input-container { position: relative; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
}
.password-toggle i { font-size: 1.1rem; }
/* Champ de code unique pour vérification ou réinitialisation */
.code-input-single {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.code-input-single input {
  width: 140px;
  height: 50px;
  font-size: 1.8rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Responsive */
@media (max-width: 576px) {
  .body {
    margin-right: 2rem;
    padding: 2rem;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 50vh;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  background: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--secondary-color);
  padding: 1.5rem;
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
  transition: transform 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* La div de background lazy-load */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


/* L’image <img> à l’intérieur du <picture> doit recouvrir complètement */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-start {
  text-align: left;
}

/* Bouton arrondi pour la modal */
.btn-rounded {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50px;
  border: none;
  padding: 0.5rem 1rem;
}


/* auth.css – ajoute à la fin */
.code-input-multi{
  display:flex; gap:.4rem; justify-content:center;
}
.code-cell{
  width:2.5rem; height:3rem; font-size:1.4rem; text-align:center;
}