#profil-page .parallax-item:first-child {
  position: relative;
  min-height: 500px;
  overflow: hidden
}

#profil-page .parallax-item:nth-child(2) {
  z-index: 2;
  margin-top: -120px;
  min-height: 0;
}

.image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden
}
.image-background img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.profile-card {
  border-radius: var(--border-radius-20);
  box-shadow: var(--xds-shadow)
}

.social-profil-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--border-radius-10);
  text-decoration: none;
  max-width: 100%;
  opacity: 0.96;
  background: var(--social-pill-bg, rgba(255, 255, 255, 0.72));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.social-profil-link:hover {
  opacity: 1;
  background: var(--social-pill-hover-bg, var(--social-pill-bg, rgba(255, 255, 255, 0.72)));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

.social-profil-link:focus-visible {
  opacity: 1;
  outline: none;
}

.social-profil-links a svg {
  width: 20px;
  height: 20px;
  color: #2b2b2b;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .social-profil-links svg {
  color: #cacaca;
}

.social-profil-link__tail {
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(43, 43, 43, 0.88);
}

[data-bs-theme="dark"] .social-profil-link__tail {
  color: rgba(202, 202, 202, 0.82);
}

.social-profil-link--twitch {
  --social-pill-bg: color-mix(in srgb, var(--xdsbtn-hover-Twitch) 14%, transparent);
  --social-pill-hover-bg: color-mix(in srgb, var(--xdsbtn-hover-Twitch) 26%, transparent);
}

.social-profil-link--threads {
  --social-pill-bg: color-mix(in srgb, var(--xdsbtn-hover-Threads) 14%, transparent);
  --social-pill-hover-bg: color-mix(in srgb, var(--xdsbtn-hover-Threads) 26%, transparent);
}

.social-profil-link--instagram {
  --social-pill-bg: color-mix(in srgb, var(--xdsbtn-hover-Instagram) 14%, transparent);
  --social-pill-hover-bg: color-mix(in srgb, var(--xdsbtn-hover-Instagram) 26%, transparent);
}

.social-profil-link--tiktok {
  --social-pill-bg: color-mix(in srgb, var(--xdsbtn-hover-Tiktok) 14%, transparent);
  --social-pill-hover-bg: color-mix(in srgb, var(--xdsbtn-hover-Tiktok) 26%, transparent);
}

.social-profil-link--youtube {
  --social-pill-bg: color-mix(in srgb, var(--xdsbtn-hover-YouTube) 14%, transparent);
  --social-pill-hover-bg: color-mix(in srgb, var(--xdsbtn-hover-YouTube) 26%, transparent);
}

.social-profil-links .xdsbtn-twitch:hover svg {
  color: var(--xdsbtn-hover-Twitch);
}

.social-profil-links .xdsbtn-instagram:hover svg {
  color: var(--xdsbtn-hover-Instagram);
}

.social-profil-links .xdsbtn-threads:hover svg {
  color: var(--xdsbtn-hover-Threads);
}

.social-profil-links .xdsbtn-tiktok:hover svg {
  color: var(--xdsbtn-hover-Tiktok);
}

.social-profil-links .xdsbtn-youtube:hover svg {
  color: var(--xdsbtn-hover-YouTube);
}
.section-title {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding-bottom: 10px;
  margin-bottom: 20px
}
.season-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: var(--border-radius-10);
  margin-bottom: 8px
}
.season-icon {
  width: 40px;
  height: 40px;
  background: #2ecc71;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 12px
}
.season-name {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 0
}
.season-detail {
  font-size: .75rem;
  color: #718096
}

.game-thumb {
  position: relative;
  border-radius: var(--border-radius-10);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  transition: .3s
}

.game-title {
  position: absolute;
  color: white;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent,rgba(0,0,0,.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
}

.game-thumb:hover .game-title {
  opacity: 1;
  transform: translateY(0);
}

.profile-card-download-btn {
  padding-inline: 1rem;
  letter-spacing: 0.04em;
}

.profile-personal-id {
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.btn-pokedex {
  background-color:var(--xdsbtn-hover-Pokedex);
  border-radius: var(--border-radius-10);
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-pokedex:hover {
  background-color: color-mix(in srgb, var(--xdsbtn-hover-Pokedex) 90%, black 10%);
}

.profile-personal-rarity .icon-cards {
  display: inline-flex;
  align-items: center;
}

.profile-personal-rarity .icon-cards svg,
.icon-pokedex-favorite svg {
  width: 14px;
  height: 14px;
}


.pokedex-favorite-card {
  min-height: 170px;
  height: auto;
  padding: 1rem;
  margin: 0;
  width: 100%;
}

.pokedex-favorite-card .pokedex-card__content {
  min-height: 140px;
}

.pokedex-favorite-card .pokedex-summary-kicker {
  color: #0369a1;
}

.pokedex-favorite-card .pokedex-card__name {
  max-width: 12ch;
}

.pokedex-favorite-card__badge {
  align-self: flex-start;
  width: fit-content;
  margin: 0.25rem 0 0.45rem;
}

.pokedex-favorite-card .pokedex-card__sprite {
  width: 136px;
  height: 136px;
}

.profile-settings-block .form-control,
.profile-settings-block .form-select {
  min-height: 42px;
}

.profile-settings-block .ts-control {
  min-height: 42px !important;
}

@media (max-width: 767px) {
  .profile-personal-card-img {
    max-height: 260px;
  }

  .profile-personal-id {
    font-size: 1.2rem;
  }
}

.chart-container {
  position: relative;
  height: 180px;
  width: 100%
}
.mk-compare-chart-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}

.mk-compare-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mk-compare-player-row label {
  white-space: nowrap;
}

.mk-compare-player-row .ts-wrapper,
.mk-compare-player-row select {
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .mk-compare-player-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

#ProfilModal .modal-content,
#ProfilModal .modal-body {
  overflow: visible !important;
}

#mkCompareModal .modal-content,
#mkCompareModal .modal-body {
  overflow: visible !important;
}

#ProfilModal input,
#ProfilModal textarea,
#ProfilModal select {
  background-color: #ececec
}
#ProfilModal #drop-zone {
  border: 2px dashed #ccc!important;
  cursor: pointer;
  background: #f8f9fa;
  transition: .3s
}
[data-bs-theme=dark] #ProfilModal input,
[data-bs-theme=dark] #ProfilModal textarea,
[data-bs-theme=dark] #ProfilModal select {
  background-color: #3a3a3a;
  color: #fff
}
[data-bs-theme=dark] #ProfilModal #drop-zone {
  border: 2px dashed #666!important;
  background: #2a2a2a
}

/* Container centré avec un fond très clair pour délimiter la zone */
#nav-tab {
    padding: 6px;
    border-radius: 12px;
    display: inline-flex; /* Permet au container de s'adapter à la largeur des boutons */
    margin-bottom: 2rem;
	  font-family: "Urbanist";
    font-weight: 500;
}

/* Style des boutons (onglets) */
#nav-tab .nav-link {
    color: #6c757d;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    background: transparent;
}

/* Survol léger */
#nav-tab .nav-link:hover {
  color: #e0e0e0;
  background-color: rgb(255 255 255 / 47%);
}

/* Onglet actif : Fond blanc, bordure simple et texte noir */
#nav-tab .nav-link.active {
    background-color: #ececec !important;
    color: #000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

[data-bs-theme=dark] #nav-tab .nav-link.active {
	background-color: #ffffff;
}

@media (max-width: 767.98px) {
  #ProfilModal .modal-dialog {
    margin: 0.75rem;
  }

  #ProfilModal .modal-header {
    padding-inline: 1rem !important;
  }

  #ProfilModal .modal-body {
    padding: 0.9rem !important;
  }

  #nav-tab {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 0.9rem;
    gap: 0.4rem !important;
    padding: 0.35rem !important;
  }

  #nav-tab .nav-link {
    width: 100%;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.1;
    padding: 0.46rem 0.6rem;
    white-space: normal;
    text-align: center !important;
  }

  #ProfilModal .tab-content {
    padding: 0.8rem !important;
  }

  #ProfilModal .modal-footer {
    padding: 0.85rem 1rem 1rem !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  #ProfilModal .modal-footer .btn {
    width: 100%;
    margin: 0 !important;
  }
}
