/* =========================================================
   FOOTAMAX - CSS réorganisé
   Base / Utilitaires / Layout / Components / Modules / Legacy
   ---------------------------------------------------------
   Notes de réorganisation :
   - Conservation de toutes les règles utiles du fichier d'origine.
   - Regroupement logique par famille de composants.
   - Corrections mineures non destructives :
     * suppression des doublons évidents sur .box
     * conservation de .td-center générique + version table
     * conservation des anciennes classes legacy en fin de fichier
   - Les anciennes règles globales sur A:link / A:hover sont conservées
     dans la section LEGACY pour compatibilité, mais il est recommandé
     de les supprimer progressivement à terme.
   ========================================================= */

/* =========================
   1) BASE / RESET
   ========================= */

/*
Fonction rgba :
rgba(rouge, vert, bleu, transparence)
*/

body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  margin-top: 5px;
  scrollbar-base-color: #f5eedb;
  scrollbar-shadow-color: #4f7eb5;
  scrollbar-highlight-color: #4f7eb5;
  scrollbar-3dlight-color: #FFFFFF;
  scrollbar-darkshadow-color: #FFFFFF;
  scrollbar-track-color: #FFFFFF;
  scrollbar-arrow-color: #4f7eb5;
}

.background {
  background-color: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================
   2) UTILITAIRES
   ========================= */

.color-font,
.color_font {
  color: #1C58A0;
  font-weight: 800;
}

.red-font,
.red_font {
  color: #E50000;
  font-weight: 800;
}

.green-font,
.green_font {
  color: #339933;
  font-weight: 800;
}

.small-font,
.small_font {
  font-size: 12px;
  color: #555;
}

.td-center {
  text-align: center;
}

.td-right {
  text-align: right;
}

.block-spacer-sm {
  margin: 6px 0 10px;
}

.small-note {
  font-size: 11px;
  color: #555;
}

.section-title {
  font-weight: 900;
  color: #1C58A0;
  margin: 6px 0 10px;
}

/* =========================
   3) LAYOUT (HEADER / FOOTER)
   ========================= */


/* =========================
   4) NAVIGATION / HEADER MENU
   ========================= */

.top-nav-wrap {
  background: rgba(255,255,255,.92);
  border-top: 2px solid #E50000;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 6px 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
}

.top-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.top-nav li {
  margin: 0;
  padding: 0;
}

.top-nav li a {
  position: relative;
  display: inline-block;
  padding: 4px 2px;
  color: #0B1F3A;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color .15s ease;
}

.top-nav li a:hover {
  color: #1C58A0;
}

.top-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #E50000;
  transition: width .15s ease;
}

.top-nav li a:hover::after,
.top-nav li.active a::after {
  width: 100%;
}

.top-nav li.active a {
  color: #1C58A0;
}

@media (max-width: 900px) {
  .top-nav {
    justify-content: center;
    gap: 10px;
  }
}

/* ===============================
   5) COMPOSANTS - BOÎTES / CARTES
   =============================== */

.box {
  width: 100%;
  border: 1px solid rgba(161,28,31,.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
  margin-bottom: 14px;
}

.box-title {
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.box-title--green {
  background: linear-gradient(to bottom, #025ac5 0%, #b7caff 100%);
  border-bottom: 2px solid #E50000;
}

.box-title--red {
  background: linear-gradient(to bottom, #8b0f2a, #c21c32);
  border-bottom: 2px solid #E50000;
}

.box-body {
  padding: 2px;
}

.box-body--center {
  text-align: center;
}

.content-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: #E50000;
  margin-bottom: 20px;
  padding-left: 8px;
  border-left: 4px solid #E50000;
}

.card-body {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.card-flex {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card-text {
  flex: 1;
}

.card-text ul {
  padding-left: 16px;
}

/* =========================
   6) COMPOSANTS - TABLEAUX
   ========================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.table thead th {
  color: #fff;
  text-align: left;
  padding: 10px 8px;
  font-weight: 900;
  border-bottom: 1px solid rgba(0,0,0,.12);
  position: sticky;
}

.table--head-blue thead th {
  background: #1C58A0;
  color: #fff;
}

.table--head-light thead th {
  background: #f2f2f2;
  color: #111;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align: left;
  vertical-align: middle;
}

.table td.td-center,
.table th.td-center {
  text-align: center;
}

.table td.td-right,
.table th.td-right {
  text-align: right;
}

.table--compact th,
.table--compact td {
  padding: 5px 6px;
}

.table--ultracompact td {
  font-size: 11px;
  padding: 3px 3px;
}

.table tbody tr:nth-child(even) {
  background: rgba(0,0,0,.02);
}

.table tbody tr:hover {
  background: rgba(229,0,0,.06);
}

.table a {
  color: inherit;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 14px;
  color: #555;
  font-weight: 700;
}

/* ========================================
   7) COMPOSANTS - BOUTONS / LIENS / BADGES
   ======================================== */

.link-container {
  margin-top: 5px;
  margin-right: 5px;
  text-align: right;
  line-height: 1.5;
}

.link-action {
  font-size: 12px;
  font-weight: 800;
  color: #E50000;
  text-decoration: none;
}

.link-action:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(229,0,0,.78), rgba(229,0,0,.45));
  color: #fff;
  border: 1px solid rgba(229,0,0,.55);
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  filter: brightness(1.03);
}

.btn-secondary {
  background: linear-gradient(135deg, #1C58A0, #7398C4);
  color: #fff;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(28,88,160,.06);
  color: #1C58A0;
}

.badge--danger {
  background: rgba(229,0,0,.08);
  border-color: rgba(229,0,0,.25);
  color: #E50000;
}

.score-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(229,0,0,.08);
  border: 1px solid rgba(229,0,0,.22);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.score-pill--empty {
  color: #666;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
  cursor: default;
  text-decoration: none;
}

.peno {
  font-size: 12px;
  font-weight: 900;
  opacity: .7;
  margin-top: 4px;
}

/* =================================
   8) COMPOSANTS - TABS / NAV LOCALE
   ================================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.tabs li a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  text-decoration: none;
  color: #1C58A0;
  background: #fff;
  font-weight: 700;
}

.tabs li.active a {
  background: #1C58A0;
  color: #fff;
}

.tabs--compact {
  gap: 4px;
  margin: 0 0 8px 0;
  justify-content: center;
}

.tabs--compact li a {
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 5px;
}

/* =========================
   9) MODULES - LOGIN
   ========================= */

.login-card,
.login-card * {
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(161,28,31,.55);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.login-title {
  padding: 6px 8px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  background: linear-gradient(to bottom, #1C58A0 0%, #7398C4 100%);
  border-bottom: 2px solid #E50000;
}

.login-body {
  padding: 8px 7px;
}

.login-logged {
  display: grid;
  gap: 8px;
}

.login-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-link {
  color: rgba(76,195,255,.95);
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
}

.login-link:hover {
  text-decoration: underline;
}

.login-form {
  display: grid;
  gap: 7px;
}

.login-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.1;
  border-radius: 10px;
  border: 1px solid rgba(161,28,31,.45);
  background: rgba(255,255,255,.92);
  color: #0B1F3A;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.login-input:focus {
  border-color: rgba(76,195,255,.55);
  box-shadow: 0 0 0 3px rgba(76,195,255,.18);
}

.login-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.login-btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(229,0,0,.60);
  color: #fff;
  background: linear-gradient(135deg, rgba(229,0,0,.78), rgba(229,0,0,.45));
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.20);
  filter: brightness(1.03);
}

.login-error {
  margin-top: 2px;
  color: #ffb3b3;
  font-weight: 900;
  white-space: normal;
  word-wrap: break-word;
  font-size: 11px;
  text-align: center;
}

.login-forgot {
  justify-self: center;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(76,195,255,.95);
  text-decoration: none;
}

.login-forgot:hover {
  text-decoration: underline;
}

/* =============================
   10) MODULES - MENUS / SIDEBAR
   ============================= */



/* =========================
   11) MODULES - INFO / NEWS
   ========================= */

.info-card {
  border: 1px solid rgba(229,0,0,.6);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.info-header {
  background: linear-gradient(to bottom, #1f7a1f, #248c24);
  color: white;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 8px;
  text-align: center;
  border-bottom: 2px solid #E50000;
}

.info-body {
  padding: 10px;
  min-height: 120px;
  background: #f3f3f3;
}

.info-item {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.detail-desc {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}

/* =========================
   12) MODULES - PHOTOS / IMAGES
   ========================= */

.photo-grid {
  width: 90%;
  margin: 10px auto 20px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.photo-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  overflow: hidden;
  transition: all .15s ease;
}

.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.photo-media {
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-img {
  height: 140px;
  object-fit: contain;
  border-radius: 14px;
}

.photo-img-medium {
  height: 300px;
  object-fit: contain;
  border-radius: 14px;
}

.photo-meta {
  text-align: center;
  padding: 8px;
}

.card-img {
  display: block;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .card-img {
    width: 120px;
  }

  .card-img-small {
    width: 150px;
  }

  .card-img-medium {
    width: 200px;
  }

  .card-img-large {
    width: 100%;
  }
}

/* ===============================
   13) MODULES - ZONES / QUALIFIÉS
   =============================== */

.zone-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  margin: 14px 0;
}

.zone-map {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.zone-map img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .zone-block {
    grid-template-columns: 1fr;
  }

  .zone-map {
    max-width: 220px;
  }
}

/* ======================================
   14) MODULES - GROUPES / BLOCS CENTRAUX
   ====================================== */

.group-block {
  margin-bottom: 18px;
}

.group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.group-panel {
  min-width: 0;
}

@media (max-width: 900px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
}

.group-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin-bottom: 8px;
}

.group-nav-btn {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #1C58A0;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  line-height: 1.2;
}

.group-nav-btn.active {
  background: #1C58A0;
  color: #fff;
}

.group-nav-btn:hover {
  background: rgba(28,88,160,.08);
}

.sidebar-loader {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 8px 0;
}

.match-cell {
  font-weight: 800;
}

.match-sep {
  margin: 0 8px;
  opacity: .6;
}

.goals-cell {
  font-size: 12px;
  line-height: 1.25;
}


.match-line{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


.match-team{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.match-tools{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* ===========================
   PRONOS - Graphiques
   =========================== */

.prono-stats-1n2{
  display: flex;
  width: 220px;
  max-width: 100%;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,.08);
  background: #f3f5f7;
}

.prono-stats-1n2__segment{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  min-width: 0;
  white-space: nowrap;
}

.prono-stats-1n2__segment--home{
  background: #86DE39;
  color: #18310b;
}

.prono-stats-1n2__segment--draw{
  background: #E7F7BD;
  color: #43511d;
}

.prono-stats-1n2__segment--away{
  background: #C40000;
  color: #fff;
}

.prono-stats-score{
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.prono-stats-score__bar{
  height: 10px;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b6b, #ff8f70);
}

.prono-stats-score__label{
  font-size: 12px;
  white-space: nowrap;
}

.prono-graph-wrap{
  display: flex;
  justify-content: center;
  margin-top: 8px;
}


/* ===========================
   FIN - PRONOS - Graphiques
   =========================== */



.goal-item {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.table--results td.goals-cell:not(.td-right) .goal-item {
  justify-content: flex-start;
}

.goal-ico {
  width: 10px;
  height: 10px;
}

.goal-time {
  opacity: .65;
  font-weight: 800;
}

/* ===========================
   STATS - Page statistiques
   =========================== */

/* Grille des 4 blocs stats */
.stats-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

/* Grille des tableaux du bas */
.stats-tables-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Liste de stats */
.stats-list{
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
}

/* Liste bullet équipes */
.stats-bullet-list{
  margin: 6px 0 0 18px;
  padding: 0;
}

/* Responsive */
@media (max-width: 1100px){
  .stats-tables-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .stats-grid{
    grid-template-columns: 1fr;
  }

  .stats-header{
    flex-direction: column;
    text-align: center;
  }
}


/* =========================
   15) MODULES - FORMULAIRES
   ========================= */

.form-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.form-label {
  font-weight: 800;
  color: #333;
  font-size: 13px;
}

.form-control {
  min-width: 220px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
  border-color: rgba(229,0,0,.55);
  box-shadow: 0 0 0 3px rgba(229,0,0,.12);
}

/* =========================
   16) MODULES - KV / FICHES DÉTAIL
   ========================= */

.kv {
  display: grid;
  gap: 5px;
}

.kv-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kv-label {
  font-weight: 800;
  opacity: .75;
}

.kv-value {
  font-weight: 900;
  opacity: 1;
}

@media (max-width: 560px) {
  .kv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* =========================
   17) MODULES - QUIZ
   ========================= */

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin: 8px 0 14px 0;
}

.quiz-question {
  font-size: 16px;
  font-weight: 900;
  margin: 10px 0 14px 0;
  color: #1C58A0;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px 0;
}

.quiz-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  background: rgba(229,0,0,.03);
  border-color: rgba(229,0,0,.20);
}

.quiz-option:has(input:checked) {
  border-color: rgba(229,0,0,.35);
  background: rgba(229,0,0,.04);
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.quiz-timer {
  font-weight: 900;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  overflow: hidden;
}

.answer-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.answer-num,
.answer-question {
  font-weight: 900;
  color: #1C58A0;
}

.answer-status {
  font-weight: 900;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  white-space: nowrap;
}

.answer-status.is-ok {
  color: #0a7b2e;
  border-color: rgba(10,123,46,.25);
  background: rgba(10,123,46,.08);
}

.answer-status.is-ko {
  color: #E50000;
  border-color: rgba(229,0,0,.25);
  background: rgba(229,0,0,.06);
}

.answer-body {
  padding: 10px 12px 12px;
}

.answer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.answer-label {
  font-weight: 900;
  color: #333;
}

.answer-value {
  font-weight: 900;
}

.answer-comment {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .answer-head {
    grid-template-columns: 1fr;
  }

  .answer-status {
    justify-self: start;
  }
}


/* ================================
   18) JEUX CONCOURS - PRESENTATION
   ================================ */
.game-intro{
  align-items: flex-start;
}

.game-logo{
  flex: 0 0 auto;
}

.game-text{
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.game-text p{
  margin: 0 0 14px 0;
}

.game-rules{
  margin: 0 0 14px 18px;
  padding: 0;
}

.game-rules li{
  margin-bottom: 6px;
}

@media (max-width: 768px){
  .game-intro{
    flex-direction: column;
    align-items: center;
  }

  .game-logo{
    margin-bottom: 12px;
  }

  .game-text{
    text-align: left;
    width: 100%;
  }
}

/* ===========================
   PRONOSTICS
   =========================== */

/* ===========================
   Edition des pronostics
   =========================== */

/* Cellule infos match */
.prono-meta-cell{
  width: 34%;
  vertical-align: middle;
}

/* Cellules équipes */
.prono-team-cell{
  width: 18%;
  vertical-align: middle;
}

.prono-team-cell--home{
  text-align: right;
}

.prono-team-cell--away{
  text-align: left;
}

/* Cellule score */
.prono-score-cell{
  width: 14%;
  text-align: center;
  vertical-align: middle;
}

/* Cellule actions */
.prono-action-cell{
  width: 16%;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* Ligne édition score */
.prono-edit-row{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Inputs score */
.prono-score-input{
  width: 42px;
  min-width: 42px;
  height: 40px;
  text-align: center;
  display: inline-block;
  padding: 0;
}

/* Input bonus */
.prono-bonus-input{
  width: 55px;
  min-width: 55px;
  text-align: center;
  display: inline-block;
}

.prono-score-wrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-score{
  width: 46px;
  min-width: 46px;
  text-align: center;
  display: inline-block;
}

.match-tools{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* Alignement à droite du bouton Valider */
.form-action{
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-right: 15px;
}




/* ===========================
   Records pronos
   =========================== */

.record-item{
  padding: 14px 0;
  border-bottom: 1px solid #e6e6e6;
}

.record-item:last-child{
  border-bottom: none;
}

.record-title{
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.record-subitem{
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #225b9a;
}


/* ===========================
   Pronos - Archives / Palmarès
   =========================== */

.records-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.record-card{
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.record-card-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: #1C58A0;
}

.record-podium{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-position{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* podium colors */
.record-pos-1{
  background: #fff6d6;
  font-weight: bold;
}

.record-pos-2{
  background: #f2f2f2;
}

.record-pos-3{
  background: #ffe0cc;
}

/* rank */
.record-rank{
  font-weight: 700;
  min-width: 18px;
}

/* pseudo */
.record-name{
  color: #24364b;
}


/* Bloc équipe */

.match-line{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-team{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.match-tools{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.match-team-graph{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #24364b;
  width: 100%;
}


.prono-graph-wrap{
  display: flex;
  justify-content: center;
  margin-top: 8px;
}



/* Equipe gauche : nom puis drapeau */
.match-team--home{
  justify-content: flex-end;
}

/* Equipe droite : drapeau puis nom */
.match-team--away{
  justify-content: flex-start;
}

/* Nom équipe */
.match-team-name{
  font-weight: 800;
  white-space: nowrap;
}

/* Drapeau */
.match-team-flag{
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Séparateur score */
.match-sep{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10px;
  line-height: 1;
}

/* Alignement du bouton */
.prono-action-cell .btn{
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Petite icône historique */
.prono-icon-link{
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

/* ===========================
   JDB - Visualisation équipe
   =========================== */

/* ===========================
   JDB - Composition
   =========================== */

.jdb-layout{
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr);
  gap: 18px;
  align-items: start; 
}

/* Colonne gauche */
.jdb-pitch-wrap{
  display: flex;
  justify-content: center;
}

.jdb-pitch{
  position: relative;
  width: 260px;
  height: 420px;
  margin: 0 auto;
}


.pitch-slot{
  position: absolute;
  width: 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-slot img{
  display: block;
}

/* Gardien */
.pitch-slot--goal{
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

/* Défenseurs */
.pitch-slot--def-1{ top: 22%; left: 16%; }
.pitch-slot--def-2{ top: 18%; left: 50%; transform: translateX(-50%); }
.pitch-slot--def-3{ top: 22%; right: 16%; }

/* Milieux */
.pitch-slot--mil-1{ top: 43%; left: 12%; }
.pitch-slot--mil-2{ top: 52%; left: 34%; }
.pitch-slot--mil-3{ top: 52%; right: 34%; }
.pitch-slot--mil-4{ top: 43%; right: 12%; }

/* Attaquants */
.pitch-slot--att-1{ top: 73%; left: 18%; }
.pitch-slot--att-2{ top: 80%; left: 50%; transform: translateX(-50%); }
.pitch-slot--att-3{ top: 73%; right: 18%; }

/* Colonne droite */
.jdb-side-stack{
  display: grid;
  gap: 16px;
  min-width: 0; /* très important */
}

/* Les blocs de droite doivent pouvoir rétrécir */
.jdb-side-stack .box,
.jdb-side-stack .box-body,
.jdb-side-stack .table-wrap,
.jdb-side-stack table{
  width: 100%;
  min-width: 0;
}

/* Si le tableau d'effectif est trop large */
.jdb-side-stack .table-wrap{
  overflow-x: auto;
}

/* Responsive */
@media (max-width: 980px){
  .jdb-layout{
    grid-template-columns: 1fr;
  }
}

.jdb-player-name{
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  display: inline-block;
}

@media (max-width: 768px){
  .jdb-player-name{
    font-size: 10px;
  }
}

.jdb-stat{
    width: 80px;
    margin: 4px auto 0;
    text-align: center;
}

.jdb-stat-bar{
    width: 100%;
    height: 8px;
    background: #d9d9d9;
    border-radius: 999px;
    overflow: hidden;
}

.jdb-stat-fill{
    height: 100%;
    background: linear-gradient(90deg, #ffd800, #ff6a2b);
    border-radius: 999px;
}

.jdb-stat-text{
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    color: #fff;
}


/* =========================
   19) LEGACY - À MIGRER PROGRESSIVEMENT
   ========================= */

A:link {
  color: #000000;
  text-decoration: none;
}

A:active {
  color: #000000;
  text-decoration: underline overline;
}

A:visited {
  color: #000000;
  text-decoration: none;
}

A:hover {
  color: #4f7eb5;
  text-decoration: none;
}

.row_color_1 {
  background-color: #f6f8f8;
}

.row_color_2 {
  background-color: #f5eedb;
}

.row_color_3 {
  background-color: #ffffff;
}

.row_color_4 {
  background-color: #f3f3f3;
}

.row_underline {
  background-color: #FFFFFF;
  border-bottom-width: 1px;
  border-bottom-style: dotted;
  border-bottom-color: #999999;
}

ul#tabnav {
  list-style-type: none;
  border-bottom: 1px solid #4f7eb5;
  margin: 0;
  padding: 0 0 23px;
}

ul#tabnav li {
  height: 20px;
  background-color: #f5eedb;
  border: 1px solid #4f7eb5;
  float: left;
  margin-top: 2px;
  margin-right: 4px;
  margin-left: 0;
  margin-bottom: 0;
}

ul#tabnav li.active {
  background-color: #ffffff;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #ffffff;
}

#tabnav a {
  float: left;
  display: block;
  color: #000000;
  padding: 4px;
  text-decoration: none;
  width: auto;
}

#tabnav a:hover {
  background: #ffffff;
}

li.puce_blue {
  list-style-image: url(ico_puce_blue.gif);
  list-style-position: inside;
  color: #4f7eb5;
  display: list-item;
  font-weight: bold;
}

li.puce_green {
  list-style-image: url(ico_puce_green.gif);
  list-style-position: inside;
  color: #339933;
  display: list-item;
  font-weight: bold;
}

.graph_1 {
  background-image: url(stat_degrade.gif);
  background-repeat: no-repeat;
  background-position: left center;
}

.graph_2 {
  background-image: url(stat_degrade2.gif);
  background-repeat: no-repeat;
  background-position: left center;
}

.form_box {
  background-color: #F3F3F3;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.button {
  background-color: #F3F3F3;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.button_valider {
  background-color: #D9EBFF;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #4f7eb5;
}

.button_edit {
  height: 15px;
  width: 26px;
  background-color: #009933;
  font-size: 8px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #FFFFFF;
  cursor: hand;
}
