/* LeBonNumero.fr — page de jeu */

:root {
  --lbn-purple-dark: #3d1f5c;
  --lbn-header-bg: #2f1368;
  --lbn-purple: #5b2d8e;
  --lbn-purple-light: #7b4bb8;
  --lbn-pink: #e91e8c;
  --lbn-pink-light: #ff5cad;
  --lbn-yellow: #ffd54f;
  --lbn-yellow-dark: #f5a623;
  --lbn-orange: #ff8c42;
  --lbn-green: #4caf50;
  --lbn-grey: #9e9e9e;
  --lbn-grey-light: #f5f5f7;
  --lbn-text: #2d2d3a;
  --lbn-white: #ffffff;
  --lbn-radius: 16px;
  --lbn-shadow: 0 4px 24px rgba(61, 31, 92, 0.12);
  --lbn-font: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.lbn-body {
  margin: 0;
  font-family: var(--lbn-font);
  color: var(--lbn-text);
  background: linear-gradient(180deg, #f0ebf5 0%, #faf8fc 40%, #ffffff 100%);
  min-height: 100vh;
}

.lbn-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.lbn-flash {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e3f2fd;
  color: #1565c0;
}

.lbn-flash--danger {
  background: #ffebee;
  color: #c62828;
}

/* Accessibilité */
.lbn-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.lbn-header {
  background: var(--lbn-header-bg);
  color: var(--lbn-white);
  padding: 6px 14px 12px;
}

.lbn-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.lbn-header__burger,
.lbn-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--lbn-white);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.lbn-header__burger:hover,
.lbn-header__icon:hover,
.lbn-user-menu--open .lbn-header__icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--lbn-white);
}

.lbn-header__burger {
  justify-self: start;
  font-size: 1.55rem;
}

.lbn-header__icon {
  font-size: 1.35rem;
}

.lbn-header__brand-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.lbn-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}

.lbn-brand__mascot {
  display: block;
  height: 38px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.lbn-brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}

.lbn-brand__le { color: var(--lbn-white); }
.lbn-brand__bon { color: var(--lbn-yellow); }
.lbn-brand__numero { color: var(--lbn-yellow); font-size: 0.95em; }

.lbn-header__tagline {
  display: none;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.lbn-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lbn-header__guest-nav {
  display: none;
  align-items: center;
  gap: 12px;
}

.lbn-header__link {
  color: var(--lbn-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.95;
  white-space: nowrap;
}

.lbn-header__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.lbn-header__link--cta {
  background: var(--lbn-yellow);
  color: var(--lbn-purple-dark);
  padding: 6px 14px;
  border-radius: 999px;
  opacity: 1;
  text-decoration: none;
}

.lbn-header__link--cta:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.lbn-user-menu {
  position: relative;
}

.lbn-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--lbn-white);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  z-index: 100;
}

.lbn-user-menu__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 6px;
  padding: 4px 16px 10px;
  border-bottom: 1px solid #f0f0f4;
  font-size: 0.8rem;
  color: var(--lbn-grey);
  font-weight: 600;
}

.lbn-user-menu__head strong {
  font-size: 1rem;
  color: var(--lbn-purple);
}

.lbn-user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--lbn-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.lbn-user-menu__item:hover {
  background: #f3eeff;
  color: var(--lbn-purple);
}

/* Menu latéral (mobile) */
.lbn-nav-backdrop,
.lbn-nav-drawer {
  display: none;
}

.lbn-nav-drawer__user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 0 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.lbn-nav-drawer__user strong {
  font-size: 1.1rem;
  color: var(--lbn-yellow);
  opacity: 1;
}

/* Bandeau stats sous le header (accueil) */
.lbn-home-stats {
  max-width: 720px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.lbn-home-stats--guest {
  grid-template-columns: 1fr;
}

.lbn-home-stats__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.lbn-home-stats__card--link {
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}

.lbn-home-stats__card--link:hover,
.lbn-home-stats__card--link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  text-decoration: none;
}

.lbn-home-stats__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.lbn-home-stats__icon--calendar {
  font-size: 1.2rem;
  color: var(--lbn-white);
}

.lbn-home-stats__points {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--lbn-yellow);
  white-space: nowrap;
}

.lbn-home-stats__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
  min-width: 0;
}

.lbn-home-stats__label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

.lbn-home-stats__date {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Accueil — pile verticale */
.lbn-home,
.lbn-play-area {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lbn-home {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.lbn-play-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#lottery-grid {
  scroll-margin-top: 20px;
}

/* Hero */
.lbn-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--lbn-radius);
  background: linear-gradient(135deg, #ffe082 0%, #ffd54f 55%, #f5a623 100%);
  box-shadow: var(--lbn-shadow);
}

.lbn-hero__trophy {
  font-size: 3.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(61, 31, 92, 0.2));
}

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

.lbn-hero__eyebrow {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lbn-purple-dark);
}

.lbn-hero__amount {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  color: var(--lbn-pink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lbn-hero__amount--car {
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lbn-hero__tagline {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lbn-purple-dark);
  opacity: 0.9;
}

/* Dernier tirage (carte accueil) */
.lbn-last-draw {
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  padding: 16px 18px 18px;
}

.lbn-last-draw--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.12s, transform 0.12s;
}

.lbn-last-draw--link:hover,
.lbn-last-draw--link:focus-visible {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(61, 31, 92, 0.14);
  transform: translateY(-1px);
}

.lbn-last-draw__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lbn-purple-dark);
}

.lbn-last-draw__header i {
  font-size: 1rem;
  color: var(--lbn-purple);
}

.lbn-last-draw__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.lbn-last-draw__more {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lbn-purple);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lbn-last-draw__more i {
  font-size: 0.75rem;
}

/* CTA Jouer */
.lbn-home-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.lbn-play-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lbn-pink-light) 0%, var(--lbn-pink) 100%);
  color: var(--lbn-white);
  font-family: var(--lbn-font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.35);
  transition: transform 0.12s, filter 0.12s;
}

.lbn-play-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: var(--lbn-white);
  text-decoration: none;
}

.lbn-play-cta:active {
  transform: translateY(0);
}

.lbn-home-cta__hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lbn-grey);
}

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

/* Barème repliable */
.lbn-prizes {
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  overflow: hidden;
}

.lbn-prizes__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--lbn-font);
  color: var(--lbn-text);
  text-align: left;
}

.lbn-prizes__toggle:hover {
  background: #faf8fc;
}

.lbn-prizes__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3eeff;
  color: var(--lbn-purple);
  flex-shrink: 0;
}

.lbn-prizes__toggle-label {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

.lbn-prizes__toggle-chevron {
  color: var(--lbn-grey);
  font-size: 0.9rem;
  transition: transform 0.15s;
}

.lbn-prizes__toggle[aria-expanded="true"] .lbn-prizes__toggle-chevron {
  transform: rotate(180deg);
}

.lbn-prizes__panel[hidden] {
  display: none;
}

.lbn-prizes__panel {
  border-top: 1px solid #f0f0f4;
}

/* Cards / sections */
.lbn-grid-section,
.lbn-validation {
  background: var(--lbn-white);
  border-radius: 20px;
  box-shadow: var(--lbn-shadow);
  padding: 16px;
}

.lbn-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lbn-section-head__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lbn-header-bg);
  color: var(--lbn-white);
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.lbn-section-head__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 26px;
  height: 26px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid #d8d0e6;
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--lbn-purple);
  cursor: pointer;
}

.lbn-help-btn:hover {
  background: #f3eeff;
  border-color: var(--lbn-purple-light);
}

/* Modale aide */
.lbn-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lbn-modal[hidden] {
  display: none;
}

.lbn-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 58, 0.55);
}

.lbn-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: 0 12px 40px rgba(61, 31, 92, 0.25);
  padding: 24px 28px;
}

.lbn-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--lbn-grey);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lbn-modal__close:hover {
  color: var(--lbn-purple);
}

.lbn-modal__title {
  margin: 0 28px 16px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-modal__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--lbn-text);
}

.lbn-modal__text--hint {
  font-size: 0.85rem;
  color: var(--lbn-grey);
  margin-bottom: 20px;
}

.lbn-modal__ok {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--lbn-purple);
  color: var(--lbn-white);
  font-family: var(--lbn-font);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

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

body.lbn-modal-open {
  overflow: hidden;
}

/* Selection slots */
.lbn-selection {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lbn-selection__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 280px;
}

.lbn-selection__slots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  width: 100%;
}

.lbn-selection__caption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lbn-grey);
  text-align: center;
}

.lbn-selection__caption--complete {
  color: var(--lbn-green);
}

.lbn-selection__divider {
  align-self: stretch;
  border-left: 2px dotted #cfc7dd;
  margin-bottom: 22px;
}

.lbn-selection__bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lbn-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--lbn-purple-light);
  background: var(--lbn-white);
  font-weight: 800;
  color: var(--lbn-purple-dark);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lbn-slot--main {
  width: 100%;
  max-width: 42px;
  aspect-ratio: 1;
  justify-self: center;
  font-size: 1rem;
}

.lbn-slot--bonus {
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  border-color: var(--lbn-pink);
  color: var(--lbn-pink);
}

.lbn-slot--filled {
  background: var(--lbn-purple);
  border-color: var(--lbn-purple);
  color: var(--lbn-white);
}

.lbn-slot--bonus.lbn-slot--filled {
  background: var(--lbn-pink);
  border-color: var(--lbn-pink);
  color: var(--lbn-white);
}

.lbn-bonus-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lbn-pink);
  text-align: center;
  line-height: 1.15;
}

/* Number grid */
.lbn-number-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 380px;
  margin: 0 auto 16px;
}

.lbn-number-btn {
  aspect-ratio: 1;
  border: 1px solid #ebe7f3;
  border-radius: 50%;
  background: #f6f4fa;
  font-family: var(--lbn-font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lbn-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.lbn-number-btn:hover {
  border-color: var(--lbn-purple-light);
  background: #f3eeff;
}

.lbn-number-btn:active {
  transform: scale(0.95);
}

.lbn-number-btn--main {
  background: var(--lbn-purple);
  border-color: var(--lbn-purple);
  color: var(--lbn-white);
}

.lbn-number-btn--bonus {
  background: var(--lbn-pink);
  border-color: var(--lbn-pink);
  color: var(--lbn-white);
}

.lbn-number-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Grid actions */
.lbn-grid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lbn-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  font-family: var(--lbn-font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid;
  background: var(--lbn-white);
  transition: background 0.15s, color 0.15s;
}

.lbn-action-btn--random {
  border-color: var(--lbn-purple);
  color: var(--lbn-purple);
}

.lbn-action-btn--random:hover {
  background: var(--lbn-purple);
  color: var(--lbn-white);
}

.lbn-action-btn--clear {
  border-color: var(--lbn-pink);
  color: var(--lbn-pink);
}

.lbn-action-btn--clear:hover {
  background: var(--lbn-pink);
  color: var(--lbn-white);
}


/* Sidebar (legacy styles reused by prize list) */
.lbn-sidebar {
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  overflow: hidden;
}

.lbn-sidebar__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lbn-purple);
  color: var(--lbn-white);
  padding: 12px 14px;
}

.lbn-sidebar__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 800;
  font-size: 0.8rem;
}

.lbn-sidebar__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  flex: 1;
}

.lbn-sidebar__toggle {
  background: transparent;
  border: none;
  color: var(--lbn-white);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

.lbn-prize-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.lbn-prize-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f4;
  font-size: 0.8rem;
}

.lbn-prize-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.lbn-prize-item--grey .lbn-prize-item__badge { background: #e0e0e0; color: #666; }
.lbn-prize-item--yellow .lbn-prize-item__badge { background: var(--lbn-yellow); color: #5d4e00; }
.lbn-prize-item--red .lbn-prize-item__badge { background: #ef5350; color: var(--lbn-white); }
.lbn-prize-item--purple .lbn-prize-item__badge { background: var(--lbn-purple); color: var(--lbn-white); }
.lbn-prize-item--green .lbn-prize-item__badge { background: var(--lbn-green); color: var(--lbn-white); }
.lbn-prize-item--cash .lbn-prize-item__badge { background: #00897b; color: var(--lbn-white); }
.lbn-prize-item--gold .lbn-prize-item__badge { background: linear-gradient(135deg, #ffd54f, #ff8f00); font-size: 1.1rem; }

.lbn-prize-item__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.lbn-prize-item--jackpot .lbn-prize-item__content strong {
  color: var(--lbn-purple-dark);
  font-size: 0.75rem;
}

.lbn-multiplier {
  text-align: center;
  padding: 16px 14px;
  background: linear-gradient(180deg, #fffde7 0%, #fff9c4 100%);
  border-top: 2px solid var(--lbn-yellow);
}

.lbn-multiplier__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
  letter-spacing: 0.04em;
}

.lbn-multiplier__value {
  margin: 4px 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lbn-yellow-dark);
  line-height: 1;
}

.lbn-multiplier__hint {
  margin: 0;
  font-size: 0.7rem;
  color: #666;
  font-weight: 600;
}

/* Validation placeholder */
.lbn-validation__quota,
.lbn-validation__login-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lbn-validation__quota {
  background: #f3eeff;
  color: var(--lbn-purple-dark);
}

.lbn-validation__login-hint {
  background: #e8f4fd;
  color: #1565c0;
}

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

.lbn-submit-btn--link {
  text-decoration: none;
  display: flex;
}

.lbn-btn {
  padding: 10px 32px;
  border-radius: 8px;
  font-family: var(--lbn-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: not-allowed;
  opacity: 0.6;
}

.lbn-btn--yes {
  background: var(--lbn-green);
  color: var(--lbn-white);
}

.lbn-btn--no {
  background: var(--lbn-white);
  border-color: #ccc;
  color: #666;
}

.lbn-submit-btn {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 20px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--lbn-font);
  transition: opacity 0.15s, transform 0.1s;
}

.lbn-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lbn-submit-btn:not(:disabled):hover {
  transform: scale(1.01);
}

.lbn-submit-btn__gift {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lbn-orange);
  padding: 0 20px;
  font-size: 1.5rem;
}

.lbn-submit-btn__label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lbn-pink);
  color: var(--lbn-white);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  text-wrap: balance;
  padding: 16px;
}

.lbn-submit-btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lbn-pink-light);
  color: var(--lbn-white);
  padding: 0 20px;
  font-size: 1.3rem;
}

/* Footer */
.lbn-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8rem;
  color: var(--lbn-grey);
  font-weight: 600;
}

.lbn-footer i {
  color: var(--lbn-green);
}

.lbn-footer__nav {
  margin-top: 10px;
  font-size: 0.8rem;
}

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

.lbn-footer__nav a:hover {
  text-decoration: underline;
}

.lbn-footer__sep {
  margin: 0 8px;
  color: var(--lbn-grey);
}

.lbn-footer__copy {
  margin: 12px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lbn-grey);
}

/* Tirage — rangée horizontale */
.lbn-draw-result {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lbn-draw-result__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lbn-draw-result__bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lbn-draw-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.lbn-draw-ball--main {
  width: 38px;
  height: 38px;
  font-size: 0.9rem;
  background: var(--lbn-purple);
  border: 2px solid var(--lbn-purple);
  color: var(--lbn-white);
}

.lbn-draw-ball--bonus {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
  background: var(--lbn-pink);
  border: 2px solid var(--lbn-pink);
  color: var(--lbn-white);
}

.lbn-draw-result__bonus-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--lbn-pink);
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
}

/* Historique des tirages */
.lbn-draws {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 4px 24px;
}

.lbn-draws__head {
  margin-bottom: 18px;
}

.lbn-draws__title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-draws__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lbn-draws__item {
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  padding: 14px 16px 16px;
}

.lbn-draws__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lbn-draws__date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-draws__empty {
  background: var(--lbn-white);
  border-radius: var(--lbn-radius);
  box-shadow: var(--lbn-shadow);
  padding: 28px 20px;
  text-align: center;
  color: var(--lbn-grey);
}

.lbn-draws__empty i {
  font-size: 1.8rem;
  color: var(--lbn-purple);
  display: block;
  margin-bottom: 8px;
}

.lbn-draws__empty p {
  margin: 0 0 14px;
}

.lbn-draws__back {
  display: inline-flex;
  font-weight: 700;
  color: var(--lbn-purple);
  text-decoration: none;
}

.lbn-draws__back:hover {
  text-decoration: underline;
}

/* Confirmation de grille */
.lbn-confirm {
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 4px 16px;
  text-align: center;
}

.lbn-confirm__burst {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 22px 0 18px;
}

/* Confettis purement décoratifs, sans DOM supplémentaire */
.lbn-confirm__burst::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 26%, var(--lbn-yellow) 0 4px, transparent 4px),
    radial-gradient(circle at 20% 70%, var(--lbn-pink) 0 3px, transparent 3px),
    radial-gradient(circle at 30% 14%, var(--lbn-purple-light) 0 3px, transparent 3px),
    radial-gradient(circle at 68% 12%, var(--lbn-orange) 0 4px, transparent 4px),
    radial-gradient(circle at 82% 46%, var(--lbn-yellow-dark) 0 3px, transparent 3px),
    radial-gradient(circle at 93% 76%, var(--lbn-purple) 0 4px, transparent 4px),
    radial-gradient(circle at 62% 86%, var(--lbn-pink-light) 0 3px, transparent 3px),
    radial-gradient(circle at 38% 90%, var(--lbn-green) 0 3px, transparent 3px);
}

.lbn-confirm__check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--lbn-green);
  color: var(--lbn-white);
  font-size: 2.4rem;
  box-shadow: 0 10px 24px rgba(76, 175, 80, 0.3);
  animation: lbn-confirm-pop 0.45s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}

@keyframes lbn-confirm-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lbn-confirm__check {
    animation: none;
  }
}

.lbn-confirm__title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

.lbn-confirm__subtitle {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lbn-text);
}

.lbn-confirm__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.lbn-confirm__plus {
  font-weight: 800;
  color: var(--lbn-grey);
}

.lbn-confirm__quota {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #ece9f2;
  border-radius: var(--lbn-radius);
  background: var(--lbn-white);
}

.lbn-confirm__quota-label {
  font-size: 0.9rem;
  color: #6b6b7b;
}

.lbn-confirm__quota-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lbn-purple-dark);
}

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

.lbn-confirm__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lbn-confirm__btn:hover {
  transform: translateY(-1px);
}

.lbn-confirm__btn--primary {
  background: var(--lbn-purple);
  color: var(--lbn-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(91, 45, 142, 0.28);
}

.lbn-confirm__btn--ghost {
  background: var(--lbn-white);
  color: var(--lbn-purple-dark);
  border: 1px solid #ded8e8;
}

/* Responsive */
@media (max-width: 900px) {
  body.lbn-nav-open {
    overflow: hidden;
  }

  .lbn-nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(45, 45, 58, 0.5);
    z-index: 150;
  }

  .lbn-nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    padding: 64px 14px 24px;
    background: var(--lbn-header-bg);
    z-index: 160;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.25);
  }

  .lbn-nav-drawer:not([hidden]) {
    transform: translateX(0);
  }

  .lbn-nav-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--lbn-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .lbn-nav-drawer__link:hover,
  .lbn-nav-drawer__link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18);
    color: var(--lbn-yellow);
  }
}

@media (min-width: 901px) {
  .lbn-header__burger,
  .lbn-header__icon--guest {
    display: none;
  }

  .lbn-header__tagline,
  .lbn-header__guest-nav {
    display: flex;
  }

  .lbn-grid-section,
  .lbn-validation {
    padding: 20px 24px;
  }

  .lbn-number-grid {
    max-width: 420px;
    gap: 8px;
  }

  .lbn-grid-actions {
    grid-template-columns: repeat(2, minmax(0, 190px));
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lbn-brand__mascot {
    height: 32px;
  }

  .lbn-brand__name {
    font-size: 1.05rem;
  }

  .lbn-header__burger,
  .lbn-header__icon {
    width: 38px;
    height: 38px;
  }

  .lbn-header__actions {
    gap: 0;
  }

  .lbn-home-stats__card {
    padding: 8px 12px;
    gap: 8px;
  }

  .lbn-home-stats__points {
    font-size: 0.95rem;
  }

  .lbn-home-stats__label {
    font-size: 0.72rem;
  }

  .lbn-home-stats__date {
    font-size: 0.9rem;
  }

  .lbn-number-grid {
    gap: 5px;
  }

  .lbn-number-btn {
    font-size: 0.82rem;
  }

  .lbn-selection {
    gap: 8px;
  }

  .lbn-slot--main {
    font-size: 0.9rem;
  }

  .lbn-slot--bonus {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .lbn-hero {
    padding: 14px 16px;
  }

  .lbn-hero__trophy {
    font-size: 2.6rem;
  }

  .lbn-last-draw {
    padding: 14px;
  }

  .lbn-draw-result__main {
    gap: 5px;
  }

  .lbn-draw-ball--main {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .lbn-draw-ball--bonus {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .lbn-submit-btn__gift,
  .lbn-submit-btn__arrow {
    padding: 0 14px;
  }

  .lbn-submit-btn__label {
    font-size: 0.95rem;
    padding: 14px 8px;
  }
}

@media (max-width: 360px) {
  .lbn-action-btn {
    gap: 6px;
    padding: 11px 6px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}
