/* user.css - Styles spécifiques page utilisateur */
/* Tous les styles communs sont dans common.css */
@import url("../common.css");

/* Page wrapper */
.page-wrapper {
  max-width: 960px;
  margin: 32px auto 40px;
  padding: 0 16px;
}

.page-main {
  margin-top: 20px;
}

/* Formulaires de connexion utilisateur */
#email-form,
#code-form {
  margin-top: 16px;
}

#email-form .input,
#email-form .btn {
  width: 100%;
}

#code-form .input,
#code-form .btn {
  width: 100%;
}

.form-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.help-text {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.highlight {
  font-weight: 600;
  color: var(--color-primary);
}

.input-code {
  text-align: center;
  font-size: 24px;
  letter-spacing: 6px;
  font-weight: 600;
  padding: 12px;
}

.form-row {
  margin-bottom: 20px;
}

.form-actions,
.form-actions-inline {
  margin-top: 24px;
}

/* Section bilans */
.bilans-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.info-box {
  padding: 20px;
  background: #fff5f0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin: 20px 0;
}

.table-header {
  margin-bottom: 12px;
}

.table-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.table-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
}

.bilans-table tbody tr {
  cursor: pointer;
}

.bilans-table tbody tr:hover {
  background: #fff5f0;
}

/* ===================== MODAL PDF COMPARAISON ===================== */


/* --- Sélecteurs gauche / droite --- */
.pdf-selectors {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.pdf-selector-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pdf-selector-group .input {
  width: 100%;
}

/* --- Zone d'affichage PDF --- */
.pdf-compare {
  display: flex;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.pdf-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.pdf-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light, #f5f7fa);
  border-bottom: 1px solid var(--border);
}

.pdf-label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.pdf-iframe {
  flex: 1;
  width: 100%;
  min-height: 60vh;
  border: none;
}

/* --- Bouton petit --- */
.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

/* --- Modal large plein écran --- */
.modal-content.large {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .pdf-selectors {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pdf-compare {
    flex-direction: column;
  }

  .pdf-iframe {
    min-height: 40vh;
  }

  .modal-content.large {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/* Sélecteurs bilan gauche / droite en ligne */
.mr-header .pdf-selectors {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.mr-header .pdf-selector-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mr-header .pdf-selector-group .form-label {
    white-space: nowrap;
    margin: 0;
}
