/* Pages compte : inscription, connexion, profil */

.lbn-account-card {
  max-width: 520px;
  margin: 24px auto;
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  padding: 28px 32px;
  overflow: hidden;
}

.lbn-form {
  min-width: 0;
}

.lbn-account-card--wide {
  max-width: 640px;
}

.lbn-account-card__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-account-card__intro {
  margin: 0 0 24px;
  color: var(--lbn-grey);
  font-size: 0.9rem;
}

.lbn-account-card__footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--lbn-grey);
}

.lbn-account-card__footer a {
  color: var(--lbn-purple);
  font-weight: 700;
}

.lbn-form__section {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}

.lbn-form__section legend {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--lbn-purple);
  margin-bottom: 16px;
  padding: 0;
}

.lbn-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lbn-form__grid--3 {
  grid-template-columns: 120px 1fr 1fr;
}

.lbn-field {
  margin-bottom: 16px;
}

.lbn-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lbn-text);
}

.lbn-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e8;
  border-radius: 10px;
  font-family: var(--lbn-font);
  font-size: 0.95rem;
  color: var(--lbn-text);
  background: var(--lbn-white);
  transition: border-color 0.15s;
}

.lbn-input:focus {
  outline: none;
  border-color: var(--lbn-purple-light);
}

.lbn-field--error .lbn-input {
  border-color: #ef5350;
}

.lbn-field-errors {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: #c62828;
  font-weight: 600;
}

.lbn-field-help {
  margin: 5px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--lbn-grey);
}

.lbn-field--checkbox {
  margin-bottom: 20px;
}

.lbn-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}

.lbn-checkbox__text {
  flex: 1;
  min-width: 0;
}

.lbn-checkbox__text a {
  color: var(--lbn-purple);
  font-weight: 700;
  text-decoration: underline;
}

.lbn-checkbox__text a:hover {
  color: var(--lbn-purple-dark);
}

.lbn-checkbox__input {
  margin-top: 3px;
  accent-color: var(--lbn-purple);
  flex-shrink: 0;
  width: auto;
}

.lbn-form__submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lbn-purple) 0%, var(--lbn-purple-light) 100%);
  color: var(--lbn-white);
  font-family: var(--lbn-font);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}

.lbn-form__submit:hover {
  filter: brightness(1.08);
}

.lbn-form__submit:active {
  transform: scale(0.99);
}

.lbn-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lbn-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lbn-alert a {
  color: inherit;
  font-weight: 700;
}

.lbn-alert--error {
  background: #ffebee;
  color: #c62828;
}

.lbn-alert--warning {
  background: #fff8e1;
  color: #e65100;
}

.lbn-flash--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.lbn-flash--warning {
  background: #fff8e1;
  color: #e65100;
}

/* Mes grilles */
.lbn-my-grids__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--lbn-grey);
}

.lbn-my-grids__empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  color: var(--lbn-purple-light);
}

.lbn-my-grids__play-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--lbn-purple);
  font-weight: 800;
  text-decoration: none;
}

.lbn-my-grids__day {
  margin-bottom: 28px;
}

.lbn-my-grids__day:last-child {
  margin-bottom: 0;
}

.lbn-my-grids__day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #f0ebf5;
}

.lbn-my-grids__day-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-my-grids__day-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--lbn-grey);
}

.lbn-my-grids__day-points {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.lbn-my-grids__draw {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
  border-radius: 12px;
  border: 1px solid #ffe082;
}

.lbn-my-grids__draw-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #5d4e00;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
}

.lbn-my-grids__draw-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lbn-my-grids__draw-plus {
  font-weight: 800;
  color: #9e9e9e;
  font-size: 0.85rem;
  padding: 0 2px;
}

.lbn-my-grids__draw-mult {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.75rem;
  color: #e65100;
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
  text-align: right;
  max-width: 150px;
}

.lbn-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lbn-ball--draw {
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  color: #3d1f5c;
  box-shadow: 0 2px 4px rgba(255, 179, 0, 0.35);
}

.lbn-ball--draw-bonus {
  background: linear-gradient(135deg, #ff80ab, #e91e8c);
  color: #fff;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 4px rgba(233, 30, 140, 0.35);
}

.lbn-ball--main {
  background: #ede7f6;
  color: #5b2d8e;
  border: 2px solid #d1c4e9;
}

.lbn-ball--bonus {
  background: #fce4ec;
  color: #e91e8c;
  border: 2px solid #f8bbd0;
  width: 38px;
  height: 38px;
}

.lbn-ball--hit {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: #fff;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.35);
}

.lbn-ball--miss {
  background: #f5f5f5;
  color: #bdbdbd;
  border-color: #e0e0e0;
}

.lbn-ball--hit-bonus {
  background: linear-gradient(135deg, #ff5cad, #e91e8c);
  color: #fff;
  border-color: #c2185b;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.35);
}

.lbn-ball--miss-bonus {
  background: #f5f5f5;
  color: #bdbdbd;
  border-color: #e0e0e0;
}

.lbn-my-grids__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lbn-my-grid-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px 14px;
  padding: 12px 14px;
  border: 1px solid #ececf2;
  border-radius: 12px;
  background: #faf9fc;
}

.lbn-my-grid-card--pending {
  border-left: 4px solid var(--lbn-yellow-dark);
}

.lbn-my-grid-card--scored {
  border-left: 4px solid var(--lbn-purple-light);
}

.lbn-my-grid-card__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lbn-grey);
  gap: 4px;
}

.lbn-my-grid-card__numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lbn-my-grid-card__result {
  display: flex;
  justify-content: flex-end;
}

.lbn-my-grid-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.lbn-my-grid-card__badge--pending {
  background: #fff8e1;
  color: #e65100;
}

.lbn-my-grid-card__badge--points {
  background: #e8f5e9;
  color: #2e7d32;
}

.lbn-my-grid-card__mult {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  color: #e65100;
}

.lbn-my-grid-card__badge--gift {
  background: #e3f2fd;
  color: #1565c0;
}

.lbn-my-grid-card__badge--cash {
  background: #e0f2f1;
  color: #00695c;
}

.lbn-my-grid-card__badge--jackpot {
  background: linear-gradient(135deg, #ffd54f, #ff8f00);
  color: #3d1f5c;
}

.lbn-my-grid-card__badge--none {
  background: #f5f5f5;
  color: #bdbdbd;
}

@media (max-width: 600px) {
  .lbn-my-grid-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lbn-my-grid-card__time {
    flex-direction: row;
    justify-content: flex-start;
  }

  .lbn-my-grid-card__result {
    justify-content: flex-start;
  }

  .lbn-form__grid,
  .lbn-form__grid--3 {
    grid-template-columns: 1fr;
  }

  .lbn-account-card {
    padding: 20px;
  }

  .lbn-header__tagline {
    display: none;
  }
}
