/* Portail client — aligné sur le site (rouge #C12026, primary-btn, Poppins) */

.portail-area {
  background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 45%);
  min-height: 55vh;
}

.portail-sidebar {
  background: #111111;
  color: #ffffff;
  padding: 28px 0 20px;
  margin-bottom: 30px;
}

.portail-sidebar-brand {
  padding: 0 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.portail-sidebar-eyebrow {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C12026;
  margin-bottom: 8px;
}

.portail-sidebar-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.portail-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portail-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.25s;
}

.portail-sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.portail-sidebar-nav li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.portail-sidebar-nav li a:hover i {
  color: #C12026;
}

.portail-sidebar-nav li.is-active a {
  color: #ffffff;
  background: rgba(193, 32, 38, 0.18);
  border-left-color: #C12026;
}

.portail-sidebar-nav li.is-active a i {
  color: #C12026;
}

.portail-sidebar-nav li.is-logout {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.portail-sidebar-nav li.is-logout a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.portail-panel,
.portail-auth-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.portail-panel-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid #eeeeee;
}

.portail-panel-header h1 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  line-height: 1.25;
}

.portail-panel-body {
  padding: 28px 32px 36px;
}

.portail-panel-body > p:first-child {
  margin-top: 0;
}

.portail-lead {
  font-size: 16px;
  color: #505050;
  margin-bottom: 28px;
}

.portail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.portail-stat {
  flex: 1 1 160px;
  background: #f7f7f7;
  border-left: 3px solid #C12026;
  padding: 18px 20px;
}

.portail-stat-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
  margin-bottom: 6px;
}

.portail-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777777;
}

.portail-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.portail-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.portail-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.portail-table th,
.portail-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
  vertical-align: middle;
}

.portail-table th {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #777777;
  background: #fafafa;
  border-bottom-color: #e5e5e5;
}

.portail-table tbody tr:hover td {
  background: #fcfcfc;
}

.portail-empty {
  color: #777777;
  font-style: italic;
  margin: 0;
}

.portail-actions {
  margin-top: 8px;
}

.portail-auth-card .portail-panel-header {
  text-align: center;
}

.portail-auth-card .portail-sidebar-eyebrow {
  margin-bottom: 10px;
}

.portail-form .form-group {
  margin-bottom: 18px;
}

.portail-form label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 6px;
}

.portail-form .form-control {
  height: 46px;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

.portail-form .form-control:focus {
  border-color: #C12026;
  box-shadow: none;
}

.portail-form .primary-btn,
.portail-panel-body .primary-btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-right: 10px;
  margin-top: 6px;
}

.portail-form .primary-btn:hover,
.portail-panel-body .primary-btn:hover {
  background: #111111;
  color: #ffffff !important;
}

.portail-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #C12026;
  text-decoration: none;
}

.portail-link:hover {
  color: #111111;
  text-decoration: none;
}

.portail-alert {
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.portail-alert-error {
  background: #fdecea;
  color: #8a1f1c;
  border-left: 3px solid #C12026;
}

.portail-alert-success {
  background: #eef8ee;
  color: #1f5b2a;
  border-left: 3px solid #2e7d32;
}

.portail-divider {
  height: 1px;
  background: #eeeeee;
  margin: 36px 0 28px;
  border: 0;
}

@media (max-width: 767px) {
  .portail-sidebar {
    margin-bottom: 20px;
  }

  .portail-sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
  }

  .portail-sidebar-nav li {
    flex: 1 1 50%;
  }

  .portail-sidebar-nav li.is-logout {
    flex: 1 1 100%;
    margin-top: 0;
  }

  .portail-panel-header,
  .portail-panel-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .portail-panel-header h1 {
    font-size: 22px;
  }
}

/* Formulaire d'inscription */
.inscription-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.inscription-step {
  flex: 1 1 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-left: 3px solid #dddddd;
}

.inscription-step.is-done {
  border-left-color: #111111;
}

.inscription-step.is-current {
  border-left-color: #C12026;
  background: #fff5f5;
}

.inscription-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dddddd;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.inscription-step.is-current .inscription-step-num {
  background: #C12026;
  color: #fff;
}

.inscription-step.is-done .inscription-step-num {
  background: #111111;
  color: #fff;
}

.inscription-step-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #505050;
}

.inscription-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inscription-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  cursor: pointer;
}

.inscription-choice input {
  margin-top: 3px;
}

.inscription-branch[style*="display: none"] {
  display: none !important;
}

.inscription-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.inscription-btn-secondary {
  background: #111111 !important;
}

.inscription-btn-secondary:hover {
  background: #C12026 !important;
}

/* Accueil Mon compte — 2 colonnes */
.portail-split-page-header {
  margin-bottom: 28px;
}

.portail-split-page-header h1 {
  margin: 6px 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #111111;
  line-height: 1.2;
}

.portail-split-auth .portail-auth-card {
  height: 100%;
}

.portail-split-auth .portail-panel-header h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111111;
}

.portail-reset-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #eeeeee;
}

.portail-reset-block h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portail-reset-block .portail-lead {
  font-size: 14px;
  margin-bottom: 16px;
}

.portail-recaptcha {
  margin-bottom: 18px;
}

.portail-recaptcha .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 991px) {
  .portail-split-page-header h1 {
    font-size: 26px;
  }

  .portail-split-auth > [class*="col-"] {
    margin-bottom: 20px;
  }
}
