/* --- Structure Principale --- */
.body {
  flex: 1; /* Force le contenu à occuper tout l'espace entre le header et le footer */
  width: 100%;
  max-width: var(--responsive-device-width); /* Utilise la variable du styleguide */
  margin: 0 auto; /* Centre le contenu horizontalement */
  padding: var(--size-space-800); /* Utilise les variables d'espacement */
  display: flex;
  flex-direction: column;
  gap: var(--size-space-600);
}

/* --- Section Titre et Recherche --- */
.bouton-recherche {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--size-space-600);
}

.text-wrapper-8 {
  font-family: var(--title-hero-font-family);
  font-size: var(--typography-primitives-scale-06);
  font-weight: var(--title-hero-font-weight);
  color: var(--color-text-default-default);
  margin: 0;
}

.rectangle-15 {
  width: 50px;
  height: 50px;
  background-color: var(--color-background-default-default);
  border: 1px solid var(--color-border-default-default);
  border-radius: var(--size-radius-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* --- Podium (Top 3) --- */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 250px;
  margin-bottom: 40px;
}

.place, .place-2, .place-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border: 2px solid #010101;
  width: 100px;
  transition: transform 0.3s ease;
}

.place { height: 60%; background-color: #c4c2c7; order: 1; }   /* 3ème */
.place-2 { height: 100%; background-color: #e5e500; order: 2; } /* 1er */
.place-3 { height: 40%; background-color: #d88908; order: 3; } /* 2ème */

/* --- Liste du Classement (4-10) --- */
.top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.leaderboard-rank {
  width: 80px;
  height: 50px;
  background-color: #fafafa;
  border: 1px solid #010101;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--single-line-body-base-font-family);
  font-weight: bold;
}

.leaderboard-content {
  flex: 1;
  height: 50px;
  background-color: #fafafa;
  border: 1px solid #010101;
  display: flex;
  align-items: center;
  padding: 0 var(--size-space-400);
}

/* Podium texte */
.podium-label {
  font-weight: 800;
  margin-bottom: 8px;
}

.podium-name {
  font-weight: 700;
  text-align: center;
  padding: 0 6px;
}

.podium-score {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Contenu ligne */
.lb-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.lb-name {
  font-weight: 700;
}

.lb-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.9;
}

.lb-badge {
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

/* Surlignage entreprise user */
.leaderboard-row.is-mine .leaderboard-rank,
.leaderboard-row.is-mine .leaderboard-content {
  outline: 2px solid var(--color-border-brand-default);
  outline-offset: -2px;
}

/* Carte “Votre entreprise” */
.my-company-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

/* Footer */
.lb-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
