:root {
  --font-default: "Open Sans", system-ui, sans-serif;
  --font-primary: "Amatic SC", sans-serif;
  --font-secondary: "Inter", sans-serif;

  /* Palette FIFA 2026 */
  --color-background: #0b0e1e;         /* Bleu nuit très sombre */
  --color-primary: #ffffff;
  --color-menu: #4c1186;               /* Violet FIFA */
  --fifa-lime: #90ff00;                /* Vert électrique */
  --fifa-blue: #0081ff;                /* Bleu électrique */
  --color-secondary: var(--fifa-lime);
  --c-accent: var(--fifa-lime);
  --bs-modal-bg: #161b33;
}

body {
  background: var(--color-background);
  background-image: radial-gradient(circle at 50% 0%, #1a234a 0%, #0b0e1e 100%);
  font-family: var(--font-default);
  color: var(--color-primary);
  min-height: 100vh;
}

#main {
  margin-top: 2rem;
  position: relative;
  min-height: 80vh;
}

/* Container de connexion */
.login-card {
    background-color: var(--color-item);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Style des inputs du formulaire */
.custom-input {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--fifa-blue) !important;
    box-shadow: 0 0 0 0.25 margin rgba(0, 82, 204, 0.25) !important;
}

/* Bouton Connexion */
.btn-primary.w-100 {
    border-radius: 10px;
    background-color: var(--fifa-blue);
    border: none;
    transition: filter 0.3s;
}

.btn-primary.w-100:hover {
    filter: brightness(1.2);
}

/* Style pour le cercle d'icône sur la page reset */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* On s'assure que les alertes sont bien lisibles sur le fond sombre */
.alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
    border-left: 4px solid #0dcaf0 !important;
}

/* Nettoyage des erreurs de formulaire Symfony */
.text-danger ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 0.85rem;
}

/* Style spécifique pour le champ de confirmation si Symfony utilise RepeatType */
.login-card form ul {
    color: #ff4d4d;
    padding-left: 0;
}

/* Style pour les Checkboxes Symfony */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--fifa-blue);
    border-color: var(--fifa-blue);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
}

.login-card .form-label {
    margin-bottom: 0.4rem;
    color: var(--fifa-blue); 
}

.btn-success.px-5 {
    border-radius: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Bouton Modifier (Plus fin / discret) */
.btn-outline-danger.btn-sm {
    font-size: 0.85rem;
    border-width: 1px;
    opacity: 0.8;
}

.btn-outline-danger.btn-sm:hover {
    opacity: 1;
}

/* Harmonisation des selects (pour la langue) */
select.custom-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* ======================================================== */
/* NOUVELLE NAVIGATION (BOOTSTRAP NAVBAR)                   */
/* ======================================================== */

.navbar {
    background-color: var(--color-menu) !important;
    border-bottom: 3px solid var(--fifa-lime);
    padding: 0.5rem 0; /* Bootstrap gère la hauteur avec le padding */
    transition: all 0.3s ease;
}

/* Style des liens du menu */
.navbar .nav-link {
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px !important;
    transition: 0.3s;
    border-radius: 20px;
    margin: 0 5px;
}

/* Effet au survol (similaire à ton ancien style mais adapté) */
.navbar .nav-link:hover {
    background-color: var(--fifa-lime);
    color: black !important;
}

/* L'icône active (optionnel) */
.navbar .nav-link.active {
    color: var(--fifa-lime) !important;
}

/* Ajustement du logo pour qu'il ne soit pas trop grand */
.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Style du bouton "Burger" sur mobile */
.navbar-toggler {
    border: 1px solid var(--fifa-lime) !important;
}

.navbar-toggler-icon {
    /* On peut forcer l'icône burger en blanc si besoin */
    filter: invert(1);
}

/* MATCH CARDS (Event Items) */
.event-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--fifa-blue);
  transform: translateY(-2px);
}

.event-item-date {
  font-size: 0.85rem;
  color: var(--fifa-blue);
  letter-spacing: 0.5px;
}

.event-item-time {
  font-size: 0.95rem;
  width: 120px;
}

.event-item-localtime { 
  font-size: 0.75rem;
}

/* TYPOGRAPHIE EQUIPES */
[class*="event-item-teamname"] {
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* SCORES AFFICHAGE */
.event-item-teamscore-local, 
.event-item-teamscore-visitor {
  font-family: 'Montserrat', sans-serif;
  color: var(--fifa-lime);
  font-weight: 900;
  min-width: 35px;
  text-align: center;
}



/* Le petit cadre du pronostic */
.prediction-margin {
    width: 40px !important;
}
.prediction-box {
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px; 
    padding: 2px 12px;  
    text-align: center;
    display: inline-flex; 
    flex-direction: column;
    align-items: center;
}

.prediction-label {
    display: block;
    font-size: 0.9rem !important; 
    text-transform: uppercase;
    color: var(--fifa-blue) !important; 
    font-weight: 800;
    letter-spacing: 0.5px;
}

.prediction-score {
    font-weight: 800;
    font-size: 1.2rem; 
    color: var(--fifa-lime);
    line-height: 1.2;
}

.prediction-pts {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--fifa-blue);
    border-radius: 3px;
    padding: 1px 4px;
    margin-top: 1px;
}


/* BOUTONS */
.btn-success {
  background-color: var(--fifa-lime);
  border: none;
  color: black;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 15px;
}

.btn-success:hover {
  background-color: #7ce000;
  color: black;
}

/* --- GESTION DU BOUTON PARIER --- */
.btn-bet-icon { display: none; } 
.btn-bet-text { display: inline; }

/* --- DASHBOARD : COMPACTAGE DES ELEMENTS --- */
/* On réduit tout uniquement dans le dashboard pour que ça tienne sur 2 colonnes */

.dashboard .event-item { padding: 0.6rem !important; }

/* 1. Heure */
.dashboard .event-item-time { width: 65px !important; flex-shrink: 0; }
.dashboard .event-item-time .fs-4, 
.dashboard .event-item-time .fw-bold { font-size: 1.0rem !important;}

.dashboard .event-item-localtime { font-size: 0.45rem;}


/* 2. Pays (Réduction texte et largeur) */
.dashboard [class*="event-item-teamname"] span, 
.dashboard .team-name-container span {
    font-size: 0.85rem !important; 
    width: auto !important;
}

/* On s'assure que le conteneur lui-même ne bloque pas */
.dashboard [class*="event-item-teamname"] {
    width: 28% !important; /* On ajuste un peu la largeur pour laisser de la place */
}
.dashboard .event-item img { width: 35px !important; height: 23px !important; }

/* 3. Bloc Score Central */
.dashboard .d-flex.align-items-center.justify-content-center[style*="width: 120px"],
.dashboard .d-flex.align-items-center.justify-content-center[style*="width: 80px"] {
    width: 85px !important;
}
.dashboard [class*="event-item-teamscore"] { font-size: 1.3rem !important; }

/* 4. Bouton (Carré avec icône) */
.dashboard .btn-bet-text { display: none !important; }
.dashboard .btn-bet-icon { display: inline-block !important; font-size: 1.1rem; }
.dashboard .btn-success {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.dashboard .ms-2.d-flex.justify-content-end {
    width: 40px !important;
    min-width: 40px !important;
}

/* Ajustement du prono dans le dashboard */
.dashboard .event-item small {
    font-size: 0.55rem !important; /* On réduit encore un peu sur le dashboard */
    white-space: nowrap;
}

.dashboard .event-item .mt-1 div {
    font-size: 0.8rem !important; /* Score du prono un peu plus petit */
}

.dashboard .prediction-margin {
    width: 15px !important;
}

/* Style du tableau de classement */
#ranking-table tbody tr:hover td, 
#ranking-table tbody tr:hover th {
    color: white !important;
}

#ranking-table tbody tr.table-primary-subtle:hover td {
    color: var(--fifa-blue) !important;
}

.table-primary-subtle td {
    color: var(--fifa-blue) !important;
}

.table-primary-subtle .text-uppercase {
    color: inherit !important;
}

#ranking-table tbody tr.table-primary-subtle:hover td {
    color: var(--fifa-blue) !important;
}

#ranking-table tbody tr:not(.table-primary-subtle):hover td,
#ranking-table tbody tr:not(.table-primary-subtle):hover span {
    color: white !important;
}

#ranking-table {
    background-color: var(--color-item) !important;
    color: white;
    border: none;
}

#ranking-table thead th {
    background-color: #000 !important;
    color: var(--fifa-lime);
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
}

#ranking-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

#ranking-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

#ranking-table .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.1) !important; 
    color: white !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#ranking-table tr.table-primary-subtle .badge.bg-light {
    border-color: var(--fifa-blue) !important;
    color: var(--fifa-blue) !important;
}

/* Mise en évidence de l'utilisateur actuel */
.table-primary-subtle {
    background-color: rgba(0, 82, 204, 0.2) !important;
    border-left: 4px solid var(--fifa-blue);
}

/* On personnalise les icônes de tendance */
.bi-caret-up-fill { color: #00ff88; } /* Vert fluo */
.bi-caret-down-fill { color: #ff3366; } /* Rouge vif */

/* Couleur personnalisée pour les points gagnés */
.text-lime {
    color: var(--fifa-lime) !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

/* Pour que les lignes paires/impaires soient jolies sur cette page aussi */
#betmatch .rowodd { background-color: rgba(255, 255, 255, 0.03); }
#betmatch .roweven { background-color: transparent; }
#betmatch .loggeduser { border-left: 4px solid var(--fifa-blue); background-color: rgba(0, 82, 204, 0.15); }

.table-primary-subtle {
    background-color: rgba(0, 82, 204, 0.2) !important;
    border-left: 5px solid var(--fifa-blue) !important;
}


/* MODAL STYLING */
.modal-body label {
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

.modal-body .team-name {
    color: var(--fifa-lime) !important;
    font-weight: 800;
}

.modal-body input:focus {
    background: #000;
    color: var(--fifa-lime);
    box-shadow: 0 0 10px var(--fifa-lime);
    outline: none;
}

.modal-content {
    background-color: #161b33 !important;
    color: #ffffff !important;
    border: 2px solid var(--fifa-blue);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-title { color: var(--fifa-lime) !important; }

.modal-body input {
  background: #000;
  border: 2px solid var(--fifa-lime);
  color: var(--fifa-lime);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  width: 70px !important;
}

.fw-black { font-weight: 900 !important; }
.bg-purple-fifa { background-color: #4c1186; }

.text-nowrap {
    white-space: nowrap !important;
}

/* Force les images à ne pas s'écraser */
.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Gestion des noms d'équipes longs */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Style des cartes de règlement */
.rule-card {
    background-color: var(--color-item);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-color: var(--fifa-blue);
}

.border-lime {
    border-color: rgba(0, 255, 0, 0.2) !important;
}

/* Cercles pour les icônes */
.rule-icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-lime {
    background-color: var(--fifa-lime);
}

.bg-primary-subtle { background-color: rgba(0, 123, 255, 0.1) !important; }
.bg-success-subtle { background-color: rgba(40, 167, 69, 0.1) !important; }
.bg-warning-subtle { background-color: rgba(255, 193, 7, 0.1) !important; }

/* Container pour permettre le débordement */
.mascot-container {
    position: relative;
    width: 50px;
    height: 40px;
}

.mascot-nav {
    width: 65px; /* Plus large que le container pour déborder */
    position: absolute;
    top: -10px; /* Remonte un peu */
    left: -5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .mascot-nav {
    transform: scale(1.1) rotate(5deg); /* Petite animation au survol */
}

/* On ajuste la couleur du texte du logo pour qu'il soit plus moderne */
.tracking-tighter {
    letter-spacing: -1px;
    font-size: 1.4rem;
}
.text-lime {
    color: var(--fifa-lime);
}



/* RESPONSIVE */
@media (min-width: 1200px) {
    .event-item { margin-left: auto; margin-right: auto; max-width: 1100px; }
}

@media (max-width: 768px) {
  .btn-bet-text { display: none !important; }
  .btn-bet-icon { display: inline-block !important; }
  .nav { height: 80px; padding: 0 2%; }
  .nav-links { font-size: 0.8rem; }
  [class*="event-item-teamname"] { font-size: 0.9rem; }
  .event-item-teamscore-local, .event-item-teamscore-visitor { font-size: 1.3rem; }
}

@media (max-width: 576px) {
    .event-item-teamname-local img, 
    .event-item-teamname-visitor img { width: 30px !important; height: 20px !important; }
    .fs-2 { font-size: 1.5rem !important; }
    .event-item .fs-3 {font-size: 1.5rem !important;}
    .event-item img { width: 35px !important; height: 24px !important;}
    .login-card .btn-primary {
        width: 100%;
    }

}