/* ============================================================
   LALULU — style.css — Thème FIFA World Cup 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600&family=Roboto+Mono:wght@400;500&display=swap');

/* --- Variables -------------------------------------------- */
:root {
  --red:        #C8102E;
  --red-dark:   #A80E27;
  --red-light:  #FEE9EC;
  --navy:       #13284C;
  --navy-mid:   #1E3D6E;
  --gold:       #B89840;
  --gold-light: #F0D878;
  --gold-pale:  #FDF5DC;
  --green:      #1A6B3A;
  --green-light:#E8F5E9;
  --white:      #FFFFFF;
  --light:      #F5F7FA;
  --mid:        #E5E7EB;
  --muted:      #6B7280;
  --text:       #1A1A2E;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* --- Typography -------------------------------------------- */
.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; }
.font-mono    { font-family: 'Roboto Mono', monospace; }

/* --- Navbar ------------------------------------------------ */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 200;
  height: 58px;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}
.navbar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: 4px;
  color: var(--navy);
  white-space: nowrap;
}
.navbar-brand em { color: var(--red); font-style: normal; }
.navbar-nav {
  display: flex; gap: 2px; flex: 1;
}
.nav-item {
  font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 11px; border-radius: 7px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-item:hover, .nav-item.active {
  color: var(--navy); background: var(--light); text-decoration: none;
}
.nav-item.active { color: var(--red); }
.navbar-user {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--mid); object-fit: cover;
  transition: border-color .15s;
}
.nav-avatar:hover { border-color: var(--red); }
.nav-username { font-size: 13px; font-weight: 600; color: var(--navy); }
.nav-pts {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px; color: var(--gold);
  font-weight: 500;
}
/* Prize Pool badge */
.nav-prize {
  display: flex; align-items: center; gap: 9px;
  background: var(--gold);
  border-radius: 9px;
  padding: 0 14px;
  height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-prize .ti {
  font-size: 20px;
  color: #fff;
}
.nav-prize-inner {
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.nav-prize-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
}
.nav-prize-amount {
  font-size: 16px; font-weight: 500;
  color: #fff;
}

.btn-logout {
  background: none; border: 1.5px solid var(--mid);
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 7px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* --- Bannière compte en attente --------------------------- */
.banner-pending {
  background: var(--red-light);
  border-bottom: 2px solid #F9BFBF;
  padding: 12px 1.5rem;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #7B2A2A;
}
.banner-pending strong { color: var(--red); }
.banner-pending .amount {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600; font-size: 14px; color: var(--red);
}

/* --- Conteneurs ------------------------------------------- */
.container     { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm  { max-width: 640px;  margin: 0 auto; padding: 0 1.5rem; }
.page-content  { padding: 2.5rem 0 5rem; }

/* --- Cards ------------------------------------------------ */
.card {
  background: var(--white);
  border: 1.5px solid var(--mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 10px;
}
.card-header h2, .card-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; color: var(--white);
  letter-spacing: 2px;
}
.card-header-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.card-body { padding: 1.5rem; }

/* --- Page header ------------------------------------------ */
.page-header {
  background: var(--navy);
  padding: 2rem 1.5rem 1.8rem;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--white); letter-spacing: 3px;
  line-height: 1;
}
.page-header h1 em { color: var(--gold); font-style: normal; }
.page-header p {
  font-size: 14px; color: rgba(255,255,255,0.55);
  margin-top: 0.4rem; letter-spacing: 1px; text-transform: uppercase;
}

/* --- Section title ---------------------------------------- */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; color: var(--navy); letter-spacing: 2px;
  margin-bottom: 0.3rem;
}
.section-sub {
  font-size: 13px; color: var(--muted); margin-bottom: 1.5rem;
}

/* --- Formulaires ------------------------------------------ */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--mid);
  border-radius: 8px;
  padding: 10px 13px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}
.form-input::placeholder { color: #BFC3CA; }
.form-error {
  font-size: 12px; color: var(--red); margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: 9px;
  cursor: pointer; border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--red);   color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn-navy      { background: var(--navy);  color: #fff; }
.btn-navy:hover  { background: var(--navy-mid); text-decoration: none; color: #fff; }
.btn-outline   { background: transparent; color: var(--navy); border: 1.5px solid var(--mid); }
.btn-outline:hover { border-color: var(--navy); background: var(--light); text-decoration: none; color: var(--navy); }
.btn-gold      { background: var(--gold);  color: #fff; }
.btn-sm        { padding: 6px 14px; font-size: 13px; border-radius: 7px; }
.btn-full      { width: 100%; }

/* --- Alertes ---------------------------------------------- */
.alert {
  border-radius: 9px; padding: 12px 16px;
  font-size: 13px; margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent;
}
.alert-error   { background: #FEF2F4; border-color: #F9BFBF; color: #7B2A2A; }
.alert-success { background: #E8F5E9; border-color: #A5D6A7; color: #1B5E20; }
.alert-info    { background: #E8EDF5; border-color: #B0BED9; color: var(--navy); }
.alert-warning { background: var(--gold-pale); border-color: #E0C97A; color: #6B4800; }

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.badge-red     { background: var(--red-light); color: var(--red); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-gold    { background: var(--gold-pale); color: #956B00; }
.badge-navy    { background: #E8EDF5; color: var(--navy); }
.badge-live    { background: var(--red); color: #fff; animation: pulse 1.4s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* --- Match card ------------------------------------------- */
.match-card {
  background: var(--white); border: 1.5px solid var(--mid);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.match-card:hover { border-color: #C0C4CC; box-shadow: var(--shadow); }
.match-card-header {
  background: var(--navy); padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.match-card-stage {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 1px;
}
.match-card-time {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.7);
}
.match-card-body {
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.match-team {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
}
.match-team-flag { font-size: 32px; line-height: 1; }
.match-team-name {
  font-size: 13px; font-weight: 600; color: var(--navy);
  line-height: 1.2;
}
.match-score-block { text-align: center; min-width: 90px; }
.match-score {
  font-family: 'Roboto Mono', monospace;
  font-size: 26px; font-weight: 500; color: var(--navy);
}
.match-score-vs { font-size: 13px; color: var(--muted); }
.match-odds {
  display: flex; gap: 5px; justify-content: center;
  margin-top: 6px;
}
.odd {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px; font-weight: 700;
  color: var(--navy);
  background: var(--light);
  border: 1.5px solid var(--mid);
  border-radius: 8px;
  padding: 5px 10px;
  min-width: 50px; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.odd-active {
  background: #E8F5E9;
  border-color: #4CAF50;
  color: #1B5E20;
}
.odds-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mid);
}
.odds-cell { flex: 1; text-align: center; }
.odds-cell-center { flex: 0 0 auto; min-width: 60px; text-align: center; }
.odds-label {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 5px;
}
.odds-label.active { color: #2E7D32; }
.odd-gain {
  font-size: 11px; font-weight: 700;
  color: #2E7D32;
  margin-top: 4px; min-height: 16px;
}
/* Jokers séparateur */
.jokers-sep-label {
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--mid);
  text-align: center;
}

/* --- Score input (pronos) --------------------------------- */
.score-input-wrap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.score-input {
  width: 52px; height: 52px; text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 22px; font-weight: 500;
  border: 2px solid var(--mid); border-radius: 9px;
  background: var(--white); color: var(--navy);
  outline: none; transition: border-color .15s;
}
.score-input:focus { border-color: var(--red); }
.score-separator {
  font-family: 'Roboto Mono', monospace;
  font-size: 22px; color: var(--muted);
}

/* --- Joker buttons ---------------------------------------- */
.joker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .15s; text-transform: uppercase; letter-spacing: 0.5px;
}
.joker-btn-gamelle   { background: #FDF5DC; color: #956B00; border-color: #E0C97A; }
.joker-btn-pichichi  { background: #E8EDF5; color: var(--navy); border-color: #B0BED9; }
.joker-btn-chatte    { background: var(--green-light); color: var(--green); border-color: #A5D6A7; }
.joker-btn.active    { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
.joker-btn.disabled  { opacity: 0.4; cursor: not-allowed; }

/* --- Leaderboard ------------------------------------------ */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 14px; text-align: left;
}
.lb-table td { padding: 11px 14px; border-bottom: 1px solid #F3F4F6; font-size: 14px; }
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tr:hover td { background: var(--light); }
.lb-rank-1 { color: var(--gold); font-weight: 700; font-size: 18px; }
.lb-rank-2 { color: #9CA3AF; font-weight: 700; font-size: 17px; }
.lb-rank-3 { color: #CD7F32; font-weight: 700; font-size: 16px; }
.lb-points {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px; font-weight: 500; color: var(--navy);
}
.lb-avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--mid);
}

/* --- Live avatars ----------------------------------------- */
.live-match-arena {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1rem;
}
.live-teams-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.live-minute-top {
  font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500;
  letter-spacing: 1px; text-align: center;
  margin-bottom: 4px;
}
.live-score {
  font-family: 'Roboto Mono', monospace;
  font-size: 32px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,0.1); padding: 6px 20px; border-radius: 10px;
}
.live-avatars-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
}
.live-side { display: flex; flex-wrap: wrap; gap: 6px; max-width: 40%; }
.live-avatar-wrap { position: relative; cursor: pointer; }
.live-avatar-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.live-avatar-wrap.home .live-avatar-img { border-color: #4CAF50; }
.live-avatar-wrap.draw .live-avatar-img { border-color: #9CA3AF; }
.live-avatar-wrap.away .live-avatar-img { border-color: var(--red); }
.live-joker-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy);
}
.live-tooltip {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--mid);
  border-radius: 8px; padding: 8px 10px; z-index: 50;
  font-size: 12px; white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow);
  display: none;
}
.live-avatar-wrap:hover .live-tooltip { display: block; }
.live-tooltip strong { display: block; font-weight: 600; color: var(--navy); }
.live-tooltip span { color: var(--muted); }
.live-none-side {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 80px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* --- Incidents live (buteurs + cartons) ------------------- */
.live-incidents {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-top: 1rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}
.live-incidents:empty { display: none; }
.incidents-home { flex: 1; }
.incidents-away { flex: 1; text-align: right; }
.incident-row {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 4px; color: rgba(255,255,255,0.85);
  line-height: 1.3;
}
.incidents-away .incident-row {
  flex-direction: row-reverse;
}
.incident-min {
  font-size: 11px; color: rgba(255,255,255,0.4);
  white-space: nowrap; flex-shrink: 0;
}

/* --- Grilles génériques ----------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.grid-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; }

/* --- Responsive ------------------------------------------- */

/* Tablette : grille login 3 col → 1 col */
@media (max-width: 900px) {
  .login-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 680px) {
  /* Grilles génériques */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Grille login 3 colonnes (inline) → 1 colonne */
  .login-grid { grid-template-columns: 1fr !important; }

  /* Navbar */
  .navbar { padding: 0 1rem; gap: 0.75rem; height: auto; min-height: 54px; flex-wrap: wrap; }
  .navbar-nav { display: none; }
  .navbar-brand { font-size: 24px; }
  .nav-username { display: none; }
  .nav-pts { font-size: 12px; }
  .nav-prize { padding: 0 10px; height: 36px; }
  .nav-prize-amount { font-size: 14px; }

  /* Page header */
  .page-header { padding: 1.4rem 1rem 1.2rem; }
  .page-header h1 { font-size: 32px; }
  .page-header p { font-size: 12px; }

  /* Conteneurs */
  .container, .container-sm { padding: 0 1rem; }
  .page-content { padding: 1.5rem 0 3rem; }

  /* Cards */
  .card-body { padding: 1rem; }
  .card-header { padding: 0.8rem 1rem; }

  /* Aperçu modules : 2 colonnes sur mobile */
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Bannière pending */
  .banner-pending { flex-wrap: wrap; gap: 8px; font-size: 12px; }

  /* Boutons pleine largeur sur mobile */
  .btn-full { width: 100%; }

  /* Leaderboard : masquer colonnes secondaires */
  .lb-hide-mobile { display: none; }
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  text-align: center; padding: 2rem 1rem;
  font-size: 12px; letter-spacing: 1px;
  margin-top: 4rem;
  border-top: 3px solid var(--red);
}
.site-footer strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; color: var(--gold);
  letter-spacing: 4px; display: block; margin-bottom: 4px;
}

/* --- Utilitaires ------------------------------------------ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted); }
.text-red    { color: var(--red); }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-1 { flex: 1; }

.floating-save{
    position:absolute;
    right:15px;
    bottom:15px;
    z-index:10;
    border-radius:999px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.match-card{
    position:relative;
}

.pred-2-wrap{
    width:100%;
    text-align:center;
}

.pred-2-wrap .pred-2-title{
    display:block;
    margin-bottom:8px;
}

.pred-2-wrap .pred-2-scores{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}