/* CSS Style Perso */
html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: linear-gradient(to right, #777777, #dddddd);
    padding: 0;
    position: relative;
    padding-bottom: 5em
}

* {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0
}

.row {
    padding: 0.1em;
}

.table-row-link {
    cursor: pointer;
}

tbody {
    font-size: 80%;
    font-style: italic;
}

thead,
tfoot {
    font-weight: bold;
}

th,
tr,
td {
    text-align: center;
    vertical-align: auto;
}

/* gestion titre centrer en mobile et sinon à gauche */
@media (max-width: 768px) {
    .titrePage {
      text-align: center;
    }
}

/* Styles pour le titre en mode desktop */
@media (min-width: 769px) {
    .titrePage {
      text-align: left; /* Ou une autre position */
    }
}




/* Tri tableau */

th[role=columnheader]:not(.no-sort) {
    cursor: pointer;
}

th[role=columnheader]:not(.no-sort):after {
    content: '';
    float: right;
    margin-top: 7px;
    border-width: 0 4px 4px;
    border-style: solid;
    border-color: #404040 transparent;
    visibility: hidden;
    opacity: 0;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

th[aria-sort=descending]:not(.no-sort):after {
    border-bottom: none;
    border-width: 4px 4px 0;
}

th[aria-sort]:not(.no-sort):after {
    visibility: visible;
    opacity: 0.4;
}

th[role=columnheader]:not(.no-sort):hover:after {
    visibility: visible;
    opacity: 1;
}


/* image responsive */

.responsiveImgToken {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.responsiveImgWalken {
    width: 100%;
    max-width: 80px;
    height: auto;
}


/* Image pour le logo */
.img-logoH1 {
    width: 43px;
    height: 43px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.img-logoH3 {
    width: 25px;
    height: 25px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Couleur pour Walken */

.bg-rarityLegendary {
    background-color: #FFB82F !important;
}

.bg-rarityEpic {
    background-color: #826DD4 !important;
}

.bg-rarityRare {
    background-color: #47ACF3 !important;
}

.bg-rarityUncommon {
    background-color: #81C259 !important;
}

.bg-rarityCommon {
    background-color: #B2B7BE !important;
}



/* Différent voyant de couleur */
.circle-success{
    background:#2ECC71;
    border-radius:50%;
    width:25px;
    height:25px;
    border:2px solid #1D8348;
}
.circle-warning{
    background:#F5B041;
    border-radius:50%;
    width:25px;
    height:25px;
    border:2px solid #D35400;
}
.circle-danger{
    background:#E74C3C;
    border-radius:50%;
    width:25px;
    height:25px;
    border:2px solid #C0392B;
}


/* Texte encadrer de couleur */
.texteEncadrer-success{
    background:#2ECC71;
    border:2px solid #1D8348;
    padding: 2px;
}
.texteEncadrer-warning{
    background:#F5B041;
    border:2px solid #D35400;
    padding: 2px;
}
.texteEncadrer-danger{
    background:#E74C3C;
    border:2px solid #C0392B;
    padding: 2px;
}



/* CSS pour la TIMELINE*/
/* The actual timeline (the vertical ruler) */
.main-timeline {
    position: relative;
  }

  /* The actual timeline (the vertical ruler) */
  .main-timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: #939597;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
  }

  /* Container around content */
  .timeline {
    position: relative;
    background-color: inherit;
    width: 50%;
  }

  /* The circles on the timeline */
  .timeline::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: #939597;
    border: 5px solid #f5df4d;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
  }

  /* Place the container to the left */
  .left {
    padding: 0px 40px 20px 0px;
    left: 0;
  }

  /* Place the container to the right */
  .right {
    padding: 0px 0px 20px 40px;
    left: 50%;
  }

  /* Add arrows to the left container (pointing right) */
  .left::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
  }

  /* Add arrows to the right container (pointing left) */
  .right::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Fix the circle for containers on the right side */
  .right::after {
    left: -12px;
  }

  /* Media queries - Responsive timeline on screens less than 600px wide */
  @media screen and (max-width: 600px) {
    /* Place the timelime to the left */
    .main-timeline::after {
      left: 31px;
    }

    /* Full-width containers */
    .timeline {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .timeline::before {
      left: 60px;
      border: medium solid white;
      border-width: 10px 10px 10px 0;
      border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
      left: 18px;
    }

    .left::before {
      right: auto;
    }

    /* Make all right containers behave like the left ones */
    .right {
      left: 0%;
    }


  }



/* CSS pour les CHARTS*/
.chart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    max-width: 100%;
    overflow-x: auto; /* Activer la barre de défilement horizontale si nécessaire */
    border-radius: 10px; /* Vous pouvez ajuster le rayon selon vos préférences */
    overflow: hidden; /* Cela garantit que le contenu à l'intérieur respecte les coins arrondis */
}



/* Colonne qu'on cache en mobile*/
@media (max-width: 576px) {
    .colPhoneNotVisible {
      display: none;
    }
}




/* CSS pour les cartes de ressources SFL */
.cards-grid-sfl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px;
}

.card-sfl {
    background-color: #d4b896;
    border: 2px solid #8b6914;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.card-header-sfl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: rgba(139, 105, 20, 0.1);
}

.card-header-sfl h5 {
    margin: 0; /* Supprime les marges par défaut du h5 */
    display: flex;
    align-items: center;
}

.price_up {
    background-color: #6bff72;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
}

.price_down {
    background-color: #ff6b6b;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
}

.price_egal {
    background-color: #ffcb6b;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
}

.price {
    background-color: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.price::before {
    content: "🌸";
    margin-right: 4px;
}

.quantity {
    background-color: gainsboro;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    min-height: 25px;
}

.card-image img {
    width: 25px;
    height: 25px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.card-content {
    padding: 12px;
    text-align: left;
}

.card-info li {
    font-size: 0.85em;
}

/* Responsive design */
@media (max-width: 768px) {
    .cards-grid-sfl {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cards-grid-sfl {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
}


/* CSS pour la barre de progression */
/* CSS pour intégrer la barre verticale dans le contenu de la card */
.card-content {
    display: flex;
    gap: 15px;
}

.card-info {
    flex: 1;
}

.progress-container-vertical {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-left: auto;
}

.progress-bar-vertical {
    position: relative;
    width: 6px;
    height: 160px;
    background: #e0e0e0;
    border-radius: 3px;
    align-self: stretch;
}

.progress-thumb {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #2196F3;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-bottom: -5px; /* Compense la moitié de la hauteur de la boule */
}

.progress-labels-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    font-size: 10px;
    color: #666;
    line-height: 1.1;
}

.progress-labels-vertical .max-value {
    margin-bottom: auto;
}

.progress-labels-vertical .min-value {
    margin-top: auto;
}

.atk, .def, .sta {
    display: inline-block;
    margin-right: 0.5em;
    font-size: 90%;
}

.type1, .type2, .charged1, .charged2, .c1, .c2 {
    display: inline-block;
    margin-right: 0.3em;
    font-size: 90%;
}
