body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; width: 100%; }

/* Fond : halos bleu et or */
.backdrop { position: relative; isolation: isolate; }
.backdrop::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -200px 0 auto 0; height: 700px;
  background:
    radial-gradient(closest-side at 30% 45%, var(--glow-blue), transparent),
    radial-gradient(closest-side at 75% 40%, var(--glow-gold), transparent);
  filter: blur(30px);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-2);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: 0; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.grad-gold { background: var(--grad-text-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-blue { background: var(--grad-text-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== HERO ===== */
.hero { padding: 48px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-logo { width: min(460px, 100%); height: auto; margin: 0 0 8px -12px; filter: drop-shadow(0 18px 30px var(--glow-blue)); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 18px 0 16px; }
.hero-text { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Aperçu du jeu */
.preview {
  position: relative;
  border-radius: 26px; padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 2px solid var(--border-strong);
  box-shadow: 0 6px 0 var(--border-strong), var(--shadow-lg);
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.preview-dots i:first-child { background: #ff6159; }
.preview-dots i:nth-child(2) { background: var(--gold); }
.preview-dots i:last-child { background: #3ecf7a; }
.preview-label { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--muted); }
.preview-stage {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1.15; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 190, 26, .35), transparent 60%),
    linear-gradient(180deg, #13306e, #0a1838);
  border: 1px solid var(--border);
}
.preview-ore { width: 58%; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .45)); }
.preview-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: #0d1938; border: 1px solid rgba(130, 175, 255, .25); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap;
}
.preview-chip .ico { width: 17px; height: 17px; color: var(--gold); }
.preview-chip.c1 { top: 14%; left: 6%; animation: float 5s ease-in-out infinite; }
.preview-chip.c2 { bottom: 14%; right: 6%; animation: float 5s ease-in-out -2.5s infinite; }
.preview-chip.c3 { top: 18%; right: 8%; font-size: 22px; padding: 6px 10px; animation: float 6s ease-in-out -1s infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ===== NEWS ===== */
.news-list { display: grid; gap: 14px; }
.news {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 24px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
}
.news-date {
  align-self: start; justify-self: start;
  padding: 4px 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 700;
}
.news h3 { font-size: 22px; margin-bottom: 6px; }
.news p { color: var(--text-2); white-space: pre-line; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); }
.skeleton { height: 120px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }

/* ===== BANDEAU FINAL ===== */
.band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px; border-radius: 28px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 180, 0, .4), transparent 45%),
    linear-gradient(135deg, #1d5fe0 0%, #0c2f84 60%, #081d55 100%);
  color: #fff; border: 2px solid #0a2a75;
  box-shadow: 0 6px 0 #081d55, var(--shadow-lg);
}
.band h2 { color: #fff; }
.band p { color: rgba(225, 236, 255, .8); margin-top: 8px; font-size: 17px; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); margin-top: 88px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-inner .brand img { height: 40px; }

/* ===== FORMULAIRES ===== */
.auth-page { display: grid; place-items: center; padding: 56px 16px 24px; }
.card {
  width: 100%; max-width: 430px;
  padding: 34px 32px; border-radius: 24px;
  background: var(--surface); border: 2px solid var(--border-strong);
  box-shadow: 0 6px 0 var(--border-strong), var(--shadow-lg);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; margin-bottom: 18px;
  box-shadow: 0 3px 0 var(--blue-deep), inset 0 2px 0 rgba(255, 255, 255, .3);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h1 { font-size: 32px; margin-bottom: 6px; }
.card .sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input {
  height: 48px; padding: 0 14px;
  border: 2px solid var(--border-strong); border-radius: 12px;
  background: var(--bg-elev); color: var(--text);
  font: inherit; font-size: 15px;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field .help { font-size: 13px; color: var(--muted); }
.row-end { display: flex; justify-content: flex-end; font-size: 14px; margin-top: -4px; }
.form .btn.primary { height: 52px; margin-top: 6px; font-size: 18px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { font-size: 13px; color: var(--muted); line-height: 1.5; }
.alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.alt a { font-weight: 600; }

.alert { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.alert.show { display: block; }
.alert.error { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.alert.success { background: var(--good-soft); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }

.center { text-align: center; }
.card.center .card-icon { margin-left: auto; margin-right: auto; }
.card.center .btn { margin-top: 4px; }
.card-icon.bad { background: linear-gradient(180deg, #ff7b72, #e5463d); box-shadow: 0 3px 0 #a52a22, inset 0 2px 0 rgba(255, 255, 255, .3); }
.card-icon.good { background: linear-gradient(180deg, #4fdc8a, #18a65a); box-shadow: 0 3px 0 #0c6e3a, inset 0 2px 0 rgba(255, 255, 255, .3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .preview { max-width: 480px; }
}
@media (max-width: 640px) {
  .hero { padding: 28px 0 64px; }
  .hero-logo { margin-left: -6px; }
  .section { padding: 64px 0; }
  .news { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .band { padding: 30px 24px; }
  .card { padding: 28px 22px; }
}

/* ===== MON COMPTE ===== */
.account { padding-top: 40px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.account-head h1 { font-size: clamp(32px, 4vw, 44px); }
.account-head .sub, .panel-card .sub { color: var(--muted); font-size: 15px; }
.account-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-card {
  padding: 26px; border-radius: 22px;
  background: var(--surface); border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
}
.panel-card h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 4px; }
.panel-card h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.panel-card .form { margin-top: 18px; }
.panel-card .form .btn { align-self: flex-start; height: 46px; font-size: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin: 18px 0 4px; }
.info-grid dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.info-grid dd { font-size: 16px; font-weight: 600; word-break: break-word; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--gold-soft); color: var(--gold-deep); }
#resend-btn { margin-top: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sessions { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.session {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.session.current { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: var(--blue-soft); }
.session-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); flex-shrink: 0; }
.session-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.session-info { flex: 1; min-width: 0; }
.session-info b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.session-info span { font-size: 13px; color: var(--muted); }
.session .tag { font-size: 12px; font-weight: 700; color: var(--blue); }
.session .btn { height: 36px; font-size: 14px; padding: 0 12px; }
.panel-card.danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); box-shadow: 0 4px 0 color-mix(in srgb, var(--bad) 30%, transparent); }
.panel-card.danger h2 svg { stroke: var(--bad); }
.form.inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form.inline .alert { flex-basis: 100%; }
.form.inline .field { flex: 1; min-width: 220px; }
.btn.danger-btn { background: color-mix(in srgb, #ef4444 18%, var(--surface)); color: #ff8a80; border-color: color-mix(in srgb, #ef4444 55%, transparent); }
.btn.danger-btn:hover { background: color-mix(in srgb, #ef4444 28%, var(--surface)); border-color: #ef4444; }
@media (max-width: 760px) {
  .account-cols, .info-grid { grid-template-columns: 1fr; }
  .session { flex-wrap: wrap; }
}

/* Actualités dans le haut de page (colonne de droite) */
.hero-news { display: flex; flex-direction: column; gap: 16px; max-height: 620px; padding: 22px; border-radius: 26px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 2px solid var(--border-strong); box-shadow: 0 6px 0 var(--border-strong), var(--shadow-lg); min-width: 0; }
.hero-news-head h2 { font-size: 26px; margin-top: 4px; }
.hero-news .news-list { overflow-y: auto; gap: 10px; padding-right: 4px; }
.hero-news .news { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; box-shadow: none; }
.hero-news .news h3 { font-size: 18px; margin-bottom: 4px; }
.hero-news .news p { font-size: 15px; }
