/* ===== RESET & BASE ===== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== PAGE CONNEXION ===== */
.page {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  max-height: 600px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== PANNEAU GAUCHE ===== */
.panneau-gauche {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-bloc {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo {
  background: #e94560;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.logo-texte {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.panneau-gauche h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.panneau-gauche p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 30px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

/* ===== PANNEAU DROIT ===== */
.panneau-droit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}

.form-card {
  width: 100%;
  max-width: 350px;
}

/* ===== FORM HEADER ===== */
.form-header {
  margin-bottom: 32px;
}

.form-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 13px;
  color: #999;
}

/* ===== ÉTAPES ===== */
.etape {
  display: none;
}

.etape.actif {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CHAMPS ===== */
.champ {
  margin-bottom: 18px;
}

.champ label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.champ input,
.champ textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.champ input:focus,
.champ textarea:focus {
  border-color: #1a1a2e;
  background: #f8f9fa;
}

.champ input::placeholder {
  color: #bbb;
}

.aide {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

/* ===== PASSWORD WRAP ===== */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  flex: 1;
}

.toggle-mdp {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #999;
  padding: 4px 8px;
  transition: color 0.2s;
}

.toggle-mdp:hover {
  color: #333;
}

/* ===== MESSAGES ===== */
.message {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  display: none;
}

.message.erreur {
  background: #ffebee;
  color: #c62828;
  display: block;
}

.message.succes {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.message.chargement {
  background: #e3f2fd;
  color: #1565c0;
  display: block;
}

/* ===== BOUTONS ===== */
.btn-primary {
  width: 100%;
  background: #1a1a2e;
  color: white;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.btn-primary:hover:not(:disabled) {
  background: #e94560;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(233, 69, 96, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: #1a1a2e;
  border: 1.5px solid #1a1a2e;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.btn-secondary:hover {
  background: #1a1a2e;
  color: white;
}

/* ===== SÉPARATEUR ===== */
.separateur {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: #ccc;
}

.separateur::before,
.separateur::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.separateur span {
  font-size: 12px;
  color: #999;
  font-weight: 600;
}

/* ===== LIEN PASSWORD OUBLIÉ ===== */
.lien-mdp {
  text-align: center;
  margin-top: 16px;
}

.lien-mdp a {
  color: #1565c0;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.lien-mdp a:hover {
  text-decoration: underline;
}

/* ===== INFO BLOC ===== */
.info-bloc {
  background: #e3f2fd;
  border-left: 4px solid #1565c0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #0d47a1;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== FORCE MOT DE PASSE ===== */
#force-mdp {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page {
    flex-direction: column;
    max-height: none;
    height: auto;
  }

  .panneau-gauche {
    padding: 30px 24px;
  }

  .panneau-droit {
    padding: 30px 24px;
  }

  .form-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page {
    border-radius: 0;
  }

  .panneau-gauche {
    display: none;
  }

  .panneau-droit {
    padding: 20px 16px;
  }

  .form-header h1 {
    font-size: 20px;
  }

  .champ input,
  .champ textarea {
    padding: 9px 11px;
    font-size: 16px; /* Évite zoom sur mobile */
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ===== AUTRES STYLES (Catalogue, Admin) ===== */
/* Garder le reste de tes styles pour catalogue, admin, etc... */
