:root {
  --background-img: url('background_lobby.png');
  --textcolor: #fff;
  --green-900: #051700;
  --green-800: #0b2105;
  --green-700: #0d4200;
  --green-600: #114903;
  --green-500: #1f5312;
  --green-450: #1d7807;
  --green-400: #4aa82d;
  --green-300: #52b734;
  --green-200: #6bb758;
  --green-100: #c5e8bb;
  --background-button: #2262114f;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.25);
  --shadow-button: -2px -2px 10px var(--green-400), 2px 2px 10px var(--green-900);
  transition: all 0.3sec ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-image: var(--background-img);
  color: var(--textcolor);
  font-family: 'Dosis';
}

body {
  min-height: 100vh;
}

#createGameBtn {
  position: fixed;
  /*! left: 50%; */
  bottom: 0;
  /*! transform: translate(-50%, 0); */
  z-index: 12;
  /*! width: min(520px, 92vw); */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  left: 0;
  right: 0;
  background: var(--background-img);
  box-shadow: 0 -6px 74px rgba(0, 0, 0, 0.35);
  transform: translate(0,0);
  padding: 10px;
  /*! animation: cta-pulse 2.6s ease-in-out infinite; */
}

#createGameBtn button {
  animation: cta-pulse 1s ease-in-out infinite;
  width: 300px;
  max-width: 100%;
  background: #09090933;
}

#createGameBtn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 100px);
  animation: none;
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    transform: translate(0, 0) scale(1);
  }
  55% {
    box-shadow: 0 0 0 12px rgba(82, 183, 52, 0);
    transform: translate(0, 0) scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(82, 183, 52, 0);
    transform: translate(0, 0) scale(1);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button.red-link {
  color: #1e4812;
  font-weight: bold;
  font-style: italic;
  display: flex;
  justify-content: center;
  box-shadow: -2px -2px 5px #2b4b0c, 2px 2px 5px #559345;
  background-color: #0000001c;
  padding: 4px 30px;
  width: auto;
  margin: 0 auto;
}

.hide {
  display: none;
}

p {
  margin: 6px 0;
  line-height: 1.5;
}

nav.kasite-toolbar {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient( rgba(0,0,0, 0.1), rgba(0,0,0,0.3) ), var(--background-img);
}
nav.kasite-toolbar .kasite-toolbar__tools .kasite-toolbar__action-title,
nav.kasite-toolbar .kasite-toolbar__title {
  color: var(--green-200);
  text-shadow: -1px -1px 0 var(--green-900);
}

.kasite-toolbar__action-link:hover,
.kasite-toolbar__action-link:focus-visible {
	background: var(--green-900);
	color: var(--green-200);
	outline: none;
}

header h1,
header h2 {
  margin: 0;
  font-weight: 600;
}

header h1 {
  font-size: 1.2rem;
  padding-left: 38px;
  background: left center no-repeat url('icon.png');
  background-size: 28px;
}

header h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--green-100);
}

main {
  width: min(980px, 92vw);
  margin: 0 auto;
}

h4,
h5 {
  margin: 16px 0 8px;
}

h5 {
  border-bottom: 1px solid var(--green-500);
  color: var(--green-100);
  text-shadow: -1px -1px 0 var(--green-500);
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  font-style: italic;
  padding-bottom: 10px;
  margin-top: 50px;
}

footer {
  display: flex;
  justify-content: center;
  font-size: 0.8em;
  padding: 5px;
  margin-top: 50px;
}

/* Buttons */
button,
input[type="button"],
input[type="submit"],
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  margin: 6px auto 10px auto;
  border-radius: 6px;
  border: 2px solid transparent;
  background: var(--background-button);
  color: var(--textcolor);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  width: 600px;
  max-width: 100%;
}

.button button {
  box-shadow: none;
  width: initial;
  margin: initial;
  background: initial;
}

.button.big {
  font-size: 1.4em;
}

button.selected,
input[type="button"].selected,
input[type="submit"].selected,
.button.selected {
    border-color: var(--textcolor);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
  opacity: 0.7;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.button:active {
  transform: translateY(1px);
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--green-400);
  background: rgba(5, 23, 0, 0.7);
  color: var(--textcolor);
}

input[type="number"] {
  text-align: center;
}

/* Tables */
table {
  width: 100%;
  /*! border-collapse: collapse; */
}

table th,
table td {
  /*! border: 1px solid var(--green-300); */
  padding: 8px;
  text-align: center;
}

table th {
  background: rgba(82, 183, 52, 0.5);
  color: var(--green-700);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Alerts */
.kalert {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -200px;
  background: rgb(121, 15, 15);
  padding: 16px;
  z-index: 100;
  font-weight: bold;
  color: red;
  font-size: 1.1rem;
  transition: all 0.5s;
}

.kalert.open {
  bottom: -5px;
}

/* Modale */
#modale {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 999;
}

#modale.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

#modale-content {
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px;
  background-image: var(--background-img);
  color: var(--textcolor);
  border: 1px solid var(--green-400);
  box-shadow: var(--shadow-soft);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: all 0.35s ease;
}

#details_tour {
  text-align: center;
}

#modale-content h3 {
  border-radius: 4px;
  margin-top: 0;
  padding: 4px 0;
  color: #fff;
  background-color: #0d420085;
}

#modale.open #modale-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.details_calcul {
  width: 50%;
  margin: 20px auto;
  border: 1px solid var(--green-700);
  border-radius: 3px;
}
.details_calcul td {
  text-align: left;
  width: 20%;
}
.details_calcul td:first-child {
  text-align: right;
  width: 50%;
}

.details_calcul .intermediaire {
  background-color: #0d420085;
}

#modale-content .edit_url {
  margin-top: 30px;
}

/* Utility blocks */
ul {
  padding: 0;
}

li {
  list-style: none;
}

.popup {
  background: rgba(5, 23, 0, 0.6);
  border: 1px solid var(--green-400);
  border-radius: 8px;
  padding: 16px;
}

/* Pages */
.free form,
.creer form,
.tour form {
  margin-top: 12px;
}

.free form input {
  margin-top: 12px;
}

main.parties {
  text-align: center;
  margin-top: 95px;
}

.parties-header {
  align-items: center;
  background: linear-gradient(135deg, rgba(5, 23, 0, 0.86), rgba(17, 73, 3, 0.7));
  border: 1px solid rgba(197, 232, 187, 0.26);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 28px;
  padding: 16px;
  position: relative;
  text-align: left;
  width: 600px;
  max-width: 100%;
}

.parties-header::before {
  background: linear-gradient(90deg, #f4c542, var(--green-300), #38b0d5);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.parties-header__title {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.parties-header__mark {
  align-items: center;
  background: #fff6db;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.parties-header h1 {
  background: none;
  color: var(--green-100);
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  text-shadow: -1px -1px 0 var(--green-900);
}

.parties-header__actions {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.parties-header__button {
  align-items: center;
  background: rgba(8, 29, 3, 0.76);
  border: 1px solid rgba(197, 232, 187, 0.28);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: var(--textcolor);
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 0 13px 0 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}

.parties-header__button-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: inline-flex;
  font-size: 1.15rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.parties-header__button--stats {
  color: #d9f5ff;
}

.parties-header__button--stats .parties-header__button-icon {
  background: rgba(56, 176, 213, 0.22);
}

.parties-header__button--primary {
  background: #f4c542;
  border-color: #fff1a8;
  color: var(--green-900);
  text-shadow: none;
}

.parties-header__button--primary .parties-header__button-icon {
  background: rgba(255, 255, 255, 0.42);
}

.parties-header__button:hover,
.parties-header__button:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.parties-header__button:active {
  transform: translateY(0);
}

.parties ul li {
  width: 600px;
  background: rgba(20, 68, 6, 0.18);
  display: flex;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.parties #parties {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.parties li a {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.parties li.action {
  text-align: center;
}

.parties li.action a {
  font-size: 1.1rem;
  padding: 12px;
}

.parties li .date {
  font-style: italic;
  color: var(--green-700);
  font-size: 0.85rem;
  margin-top: 10px;
}

.parties li .joueurs {
  font-size: 0.9em;
  color: var(--green-200);
  margin-right: 20px;
}

.parties li .victoire {
  font-weight: 600;
  color: var(--green-100);
  font-size: 1.2em;
}

.parties li .chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
}

.creer {
  text-align: center;
}

.creer #playersList {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
}

.creer #playersList li {
  position: relative;
}

.creer #playersList li.selected {
  background: var(--background-img);
  border-color: #fff;
}

.creer #playersList li.selected i {
  background: var(--background-img);
  border: 1px solid #fff;
  padding: 0 7px;
  border-radius: 3px;
}

.creer li .edit {
  position: absolute;
  right: 10px;
  padding: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1rem;
}

#podium {
  width: 300px;
  height: 120px;
  margin: 105px auto 26px;
  position: relative;
  perspective: 788px;
  perspective-origin: 50% -124px;
}

#podium .podium-item {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300px;
  transform-style: preserve-3d;
}

#podium .podium-label {
  position: absolute;
  z-index: 1;
  bottom: 9px;
  width: 87px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  /*! border: 0px solid red; */
}
#podium .podium-label.position-1 {
  transform: translateX(107px);
  bottom: 54px;
}
#podium .podium-label.position-3 {
  transform: translateX(214px);
  bottom: -8px;
}

#podium .podium-name {
  display: flex;
  justify-content: center;
  /*! color: #155605; */
  /*! font-size: 1.5em; */

}

#trophees .winner, #podium .podium-name {
  font-weight: bold;
  text-shadow: 0px 4px 10px #0b440ebd;
  padding: 0 20px;
  background: #f7ffef;
  box-shadow: 0 0 30px;
  color: #175305;
  border-radius: 20px;
}

#podium .podium-rank {
  display: flex;
  justify-content: center;
  width: 90px;
  font-weight: 700;
  font-size: 1.6em;
  color: #baeaa5;
  line-height: 1;
  z-index: 30;
  text-shadow: -1px -1px 0 #38682c;
}



#podium .podium-block {
  position: absolute;
  background-color: #fff;
  bottom: 0;
  width: 100px;
  height: 100px;
  /*! border: 1px solid #e6e6e6; */
}

#podium .back {
  transform: translateZ(-50px) rotateY(180deg);
  background-color: #ededed;
  display: none;
}

#podium .right {
  transform: rotateY(-270deg) translateX(50px);
  transform-origin: top right;
  background-color: #d9d9d9;
  display: none;
}

#podium .left {
  transform: rotateY(270deg) translateX(-50px);
  transform-origin: center left;
  background-color: #d9d9d9;
  display: none;
}

#podium .top {
  transform: rotateX(-90deg) translateY(-50px);
  transform-origin: top center;
  background-color: #439515;
}

#podium .bottom {
  transform: rotateX(90deg) translateY(50px);
  transform-origin: bottom center;
  background-color: #e0e0e0;
  display: none;
}

#podium .front {
  transform: translateZ(50px);
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(#8cd0397d 0%, #2a791200 100%);
}

#podium .podium-item.position-2 {
  transform: scaleY(0.6);
}

#podium .position-1 .podium-block {
  height: 100px;
}

#podium .podium-item.position-1 {
  transform: translateX(100px);
}
#podium .podium-item.position-1 .front {
  background: linear-gradient(#aee82e 30%, #2a791200 100%);
}
#podium .podium-item.position-1 .top {
  background-color: #97ce20;
}

#podium .podium-item.position-3 {
  transform: translateX(200px) scaleY(0.4);
}

#chart-prises {
  height: 180px;
}

tr.tour td {
  border: 1px solid var(--green-300);
  font-weight: bold;
  text-shadow: 1px 1px 7px #0e2b00;
}
tr.tour td.perd {
  background-color: #e8030347;
  color: #ff2525;
  text-shadow: 1px 1px 7px #154200;
}

#scores {
  font-weight: bold;
  max-width: 600px;
  margin: 50px auto 0;
}

#scores .entete.names td {
   border-bottom: 1px solid #135102;
   cursor: pointer;
  padding-bottom: 2px;
}
#scores .entete.names td:first-child {
   border: none;
   cursor: initial;
}

#scores .entete.scores td {
    font-size: 1.2em;
    padding-top: 2px;
}

main.tour {
  width: 700px;
  max-width: 100%;
}

main.tour h3 {
  margin-top: 100px;
  text-align: center;
  background: #1c5a0a;
  border-radius: 5px;
  padding: 5px;
}

main.tour .button.selected {
  border-color: #fff;
}

main.tour .liste-joueurs, main.tour .liste-contrats, main.tour .liste-bouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
}
main.tour .liste-bouts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

main.tour .liste-joueurs li,
main.tour .liste-contrats li {
  margin: 0;
}

main.tour .points {
  display: flex;
  flex-direction: column;
}

.points_section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.points_section .button {
  width: auto;
  padding: 0;
  gap: 0;
}
.points_section button {
  font-size: 2em;
  font-weight: bold;
  width: 50px;
  color: inherit;
  text-align: center;
  border: none;
  box-shadow: none;
  padding: 0;
}
.points_section input {
  font-size: 2em;
  font-weight: bold;
  width: 90px;
  color: inherit;
  border-color: inherit;
}
.points_section h6 {
  margin: 0;
  text-align: center;
}
.points_section .loose {
  color: #132603;
}

.points_section .loose .button {
  border-color: #d50202;
  background-color: #ff000054;
  color: #d50202;
}

.tour .score.range input {
  width: 100%;
  background-color: red;
}

.bonus_section {
  display: flex;
  gap: 20px;
  width: auto;
  justify-content: center;
}

.bonus_section button {
 width: 195px;
  max-width: 100%;
}

@media (max-width: 520px) {
  .points_section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }

  .points_section i,
  .points_section input {
    /*! width: 100%; */
    font-size: 1.6em;
  }

  .points_section .points {
    width: 100%;
  }
  
  .details_calcul {
    width: 100%;
  }

  .bonus_section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .bonus_section button {
    width: 100%;
  }

}

/* Stats */
main.stats {
  margin-top: 95px;
}

.stats-hero {
  background: linear-gradient(135deg, rgba(5, 23, 0, 0.88), rgba(17, 73, 3, 0.72));
  border: 1px solid rgba(197, 232, 187, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 0 auto 24px;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
  position: relative;
  width: 900px;
}

.stats-hero::before {
  background: linear-gradient(90deg, #f4c542, var(--green-300), #38b0d5);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.stats-hero__title {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.stats-hero__icon {
  align-items: center;
  background: #fff6db;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.stats-hero h1 {
  color: var(--green-100);
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
  text-shadow: -1px -1px 0 var(--green-900);
}

.stats-hero p {
  color: var(--green-200);
  font-weight: 700;
  margin: 4px 0 0;
}

.stats-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-summary__item {
  background: rgba(8, 29, 3, 0.72);
  border: 1px solid rgba(197, 232, 187, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  text-align: center;
}

.stats-summary__icon {
  font-size: 1.2rem;
}

.stats-summary__value {
  color: #f4c542;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.stats-summary__label {
  color: var(--green-200);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

.stats-empty {
  background: rgba(5, 23, 0, 0.54);
  border: 1px solid rgba(197, 232, 187, 0.24);
  border-radius: 8px;
  color: var(--green-100);
  font-weight: 700;
  margin: 0 auto;
  max-width: 100%;
  padding: 18px;
  text-align: center;
  width: 900px;
}

.stats-table-wrap {
  background: rgba(5, 23, 0, 0.58);
  border: 1px solid rgba(197, 232, 187, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
  width: 900px;
}

.stats-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  width: 100%;
}

.stats-table th,
.stats-table td {
  border: 0;
  padding: 14px 16px;
  text-align: right;
}

.stats-table th {
  background: rgba(8, 29, 3, 0.86);
  color: var(--green-100);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}

.stats-table td {
  border-top: 1px solid rgba(197, 232, 187, 0.12);
}

.stats-row {
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.stats-row:hover,
.stats-row:focus {
  background: rgba(82, 183, 52, 0.12);
  outline: none;
}

.stats-table__player {
  align-items: center;
  display: flex;
  gap: 10px;
}

.stats-player__avatar {
  align-items: center;
  background: #fff6db;
  border-radius: 8px;
  color: var(--green-900);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.stats-player__name {
  color: var(--green-100);
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-value,
.stats-score {
  font-size: 1.08rem;
  font-weight: 800;
}

.stats-unit {
  color: var(--green-200);
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: 4px;
}

.stats-score.is-positive {
  color: #9eff85;
}

.stats-score.is-negative {
  color: #ff9d9d;
}

#stats_player {
  background: rgba(5, 23, 0, 0.82);
  border: 1px solid rgba(197, 232, 187, 0.22);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

#stats_player h3 {
  color: var(--green-100);
  margin-top: 0;
}

#stats_player h4 {
  color: #f4c542;
  margin-top: 24px;
}

/* CHARTS */

#chart-prises .ct-label, #chart-paris .ct-label, #stats_player .ct-label {
   fill: rgb(255, 255, 255);
   color: rgba(255,255,255,1);
   font-weight: bold;
   font-size: 1em;
   text-shadow: 1px 1px 4px #772c2c;
}

#stats_player .ct-label {
  text-shadow: 1px 1px 4px #000;
}

.ct-legend {
  font-weight: bold;
  justify-content: center;
  display: flex;
  gap: 10px;
  z-index: 1;
  position: relative;
}
.ct-legend li {
  cursor: pointer;
  padding-left: 25px;
  position: relative;
}

.ct-legend li:before {
   width: 12px;
   height: 12px;
   position: absolute;
   left: 0;
   top: 4px;
   content: '';
   border: 2px solid transparent;
   border-radius: 4px;
}
.ct-legend li.inactive:before {
   background: transparent;
}

.ct-legend .ct-series-0:before {
   background-color: #d70206;
   border-color: #d70206;
}

.ct-legend .ct-series-1:before {
   background-color: #f05b4f;
   border-color: #f05b4f;
}
.ct-legend .ct-series-2:before {
   background-color: #f4c63d;
   border-color: #f4c63d;
}
.ct-legend .ct-series-3:before {
   background-color: #d17905;
   border-color: #d17905;
}
.ct-legend .ct-series-4:before {
   background-color: #6a3352;
   border-color: #6a3352;
}

#chart-paris {
  height: 200px;
  overflow: hidden;
}

#chart-paris .prise {
    stroke: #4cd5ff;
}
#chart-paris .garde {
    stroke: #38b0d5;
}
#chart-paris .gcontre {
    stroke: #1364bb;
}
#chart-paris .gsans {
    stroke: #279aff;
}

#chart-paris .ct-label {
  font-size: 0.8em;
}

.ct-chart .victoire {
   stroke: #46dd1f;
}
.ct-chart .defaite {
   stroke: #ff2727;
}
.ct-chart .victoire-appel {
   stroke: #9eff85;
}
.ct-chart .defaite-appel {
   stroke: #ee9e9e;
}
.chart-contrats .prise {
    stroke: #4cd5ff;
}
.chart-contrats .garde {
    stroke: #38b0d5;
}
.chart-contrats .gcontre {
    stroke: #1364bb;
}
.chart-contrats .gsans {
    stroke: #279aff;
}

#stats_player .ct-perfect-fourth {
  height: 200px;
  margin-bottom: 70px;
}
#stats_player .chart-contrats {
  height: 100px;
}
#stats_player {
  text-align: center;
}

p.tuto {
  color: var(--green-700);
  font-style: italic;
  font-size: 1rem;
  width: min(720px, 90%);
  margin: 10px auto;
  font-weight: bold;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 720px) {
  header {
    height: 56px;
    padding: 0 12px;
  }

  header h1 {
    font-size: 1rem;
  }

  header h1 {
    overflow: hidden;
    width: 0px;
  }

  button,
  input[type="button"],
  input[type="submit"],
  .button {
    width: 100%;
  }

  .parties-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    height: auto;
    min-height: 56px;
    text-align: center;
  }

  .parties-header__title {
    justify-content: center;
  }

  .parties-header h1 {
    overflow: visible;
    width: auto;
  }

  .parties-header__actions {
    display: contents;
  }

  .parties-header__button {
    justify-content: flex-start;
    /*! width: 100%; */
  }

  .stats-hero {
    padding: 16px;
  }

  .stats-hero__title {
    align-items: flex-start;
  }

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .stats-table {
    min-width: 0;
  }

  .stats-table,
  .stats-table thead,
  .stats-table tbody,
  .stats-table tr,
  .stats-table td {
    display: block;
    width: 100%;
  }

  .stats-table thead {
    display: none;
  }

  .stats-table tbody {
    display: grid;
    gap: 12px;
  }

  .stats-table tr {
    background: rgba(5, 23, 0, 0.62);
    border: 1px solid rgba(197, 232, 187, 0.2);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .stats-table td {
    align-items: center;
    border-top: 1px solid rgba(197, 232, 187, 0.1);
    display: flex;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
    text-align: right;
  }

  .stats-table td::before {
    color: var(--green-200);
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 800;
    margin-right: 14px;
    text-transform: uppercase;
  }

  .stats-table__player {
    background: rgba(82, 183, 52, 0.12);
    justify-content: flex-start;
    text-align: left;
  }

  .stats-table__player::before {
    content: "";
    display: none;
  }

  table th,
  table td {
    padding: 6px;
    font-size: 0.85rem;
  }

  .stats-table td {
    font-size: 1rem;
    padding: 10px 12px;
  }
	  
  main.tour .liste-joueurs, main.tour .liste-contrats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #scores tr.scores td {
    font-size: 0.6em;
  }
  
  #podium {
    margin-top: 30px;
  }
}

@media (max-width: 520px) {
  .stats-summary {
    grid-template-columns: 1fr;
  }

  .stats-hero__title {
    align-items: center;
  }

  .stats-summary__value {
    font-size: 1.32rem;
  }
}

#trophees {
	margin: 60px auto 10px;
	width: 600px;
	max-width: 100%;
}

#trophees .trophees-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#trophees .trophees-list li {
	text-align: center;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

#trophees .nobody {
  filter: grayscale(80%);
  opacity: 0.4;
}

#trophees .trophy {
  margin: 0 0 15px;
}

#trophees .trophy-emoji {
	display: block;
	font-size: 28px;
	line-height: 1;
	margin-bottom: 6px;
	background-color: #19420a;
	border-radius: 100px;
	height: 100px;
	width: 100px;
	font-size: 70px;
	border: 2px solid #327532;
	box-shadow: 0 4px 24px #04350c;
	margin: 0 auto -30px;
}

#trophees .label {
	font-weight: 700;
	font-size: 0.95em;
	max-width: 130px;
	color: #86b578;
}

#trophees .winner {
	font-weight: 600;
	background: #62ae08;
	color: #fff;
	box-shadow: 0 0 30px #0b2d05;
	border-bottom: 3px solid #406a0f;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	display: inline-block;
	white-space: nowrap;
}

#trophees .detail {
	display: block;
	font-size: 0.85em;
	color: #fff;
}

@media (max-width: 640px) {
	#trophees .trophees-list {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}
}
