.chart-card {
  background-color: white;
}

span.text-bg-blue {
  background-color: var(--blue-medium);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  font-family: Helvetica;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 5px;
}

.bordered-top-orange {
  border-top: 4px solid var(--orange);
  margin-top: 5px;
}

.card-tunindex {
  width: 100%;
  height: 85px;
  border-radius: 12px;
  padding-top: 0px;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  /* border: 1px solid rgba(214, 214, 214, 1); */
}

/* Cartes TUNINDEX cliquables : transition douce (l'effet visuel se fait au niveau des lignes stats) */
.card-tunindex--clickable {
  transition: transform 140ms ease;
}

.card-title-tunindex {
  font-weight: 700;
  font-size: 14.52px;
  line-height: 100%;
  text-align: right;
  color: rgba(9, 36, 75, 1);


}

.points-bourse-section table tbody tr td p {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

.points-bourse-section p span.step-number {
  font-size: 50px;
  color: var(--orange);
  font-weight: 700;
  line-height: 50px;
}

.points-bourse-section span.step-top {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 0 50px;
  text-align: center;
  display: block;
  line-height: 24px;
}

.points-bourse-section tr:nth-child(1) td {
  height: auto;
  margin-bottom: 31px;
}

.points-bourse-section tr:nth-child(3) td {
  height: auto;
  margin-top: 20px;
}

.points-bourse-section span.step-bottom {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 0 50px;
  text-align: center;
  display: block;
  line-height: 24px;
}

.index-value {
  font-weight: 800;
  font-size: 21.78px;
  line-height: 100%;
  text-align: right;

  color: rgba(9, 36, 75, 1);
}

.var-tunindex {
  font-weight: 400;
  font-size: 10px;
  line-height: 100%;
  text-align: right;
  color: rgba(9, 36, 75, 1);

}

.card-stat-tunindex {
  max-height: 90px;
}

.iframe-titre_droite {
  height: 35px !important;
  margin-left: -95px;
  margin-right: -33px;
  width: 800px !important;
}

.banner_news .carousel-overlay {
  background-color: transparent;
  position: absolute;
  top: 0px;
  right: 60px;
  transform: translateY(0%);
  width: auto;
  height: 370px;
  z-index: 3;
  bottom: 0;
  margin: auto;
}

th.cap-title {
  font-size: 10px;
  color: rgba(9, 36, 75, 1);
  height: 20px;
  width: 50%;
}

.cap-title td {
  height: 20px;
}

.points-bourse-section {
  background: linear-gradient(180deg, #09244B 0%, #183866 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  margin-top: 65px;
}

.points-bourse-section h3 {
  font-size: 32px;
  margin-bottom: 60px;
  font-weight: 700;
}

.points-bourse-section table {
  width: 85%;
  margin: 0 auto;
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  --bs-table-border-color: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-active-color: transparent;
  --bs-table-active-bg: transparent;
  --bs-table-hover-color: transparent;
  --bs-table-hover-bg: transparent;
}

.points-bourse-section td {
  padding: 10px 10px;
  width: 230px;
  height: 200px;
}

.points-bourse-section strong {
  font-size: 3.5rem;
  color: #E9500E;
  display: block;
  height: 70px;
  position: relative;
  z-index: 2;
}

.points-bourse-section p span {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4em;
  white-space: normal;
}

.points-bourse-section table tbody tr:nth-child(2) {
  background-image: url('/themes/custom/bourse/images/Maskgroup.png');
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  background-size: contain;
  width: 100%;
}

/* Style spécifique pour chaque td si vous avez des images différentes */
.points-bourse-section table tbody tr:nth-child(2) td:nth-child(1) {
  background-image: url('/themes/custom/bourse/images/Forme1.png');
}

.points-bourse-section table tbody tr:nth-child(2) td:nth-child(2) {
  background-image: url('/themes/custom/bourse/images/Forme2.png');
}

.points-bourse-section table tbody tr:nth-child(2) td:nth-child(3) {
  background-image: url('/themes/custom/bourse/images/Forme3.png');
}

/* Style pour les td de la 2ème ligne avec leur propre image de background */
.points-bourse-section table tbody tr:nth-child(2) td {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  padding: 25px 100px;
  z-index: 2;
}

.live-market-watch {
  background-color: white;

  iframe.tunindex_courbe {
    margin-top: 30px;
    height: 190px;
  }

  .tunindex_stat_simple {
    top: 51px;
    right: 1px;
    max-height: 30px;
  }

  .chart-card-tableau {
    border-top: #E9500E;
    border-top-style: solid;
    max-height: 322px;
  }
  .chart-card-tableau.chart-composition {
    max-height: 555px;
  }
  .chart-card-tableau.height-chart {
    max-height: 100%;
  }

  .tableau-marche-bloc {
    max-height: 115px !important;
  }
}

.iframe-container .card-stat-tunindex iframe {
  height: 90px !important;
  width: 100% !important;
}

.iframe-container .box-cap iframe {
  height: 100% !important;
}

.iframe-container .col-gauche {
  padding-right: 2px;
}

.iframe-container .col-droite {
  padding-left: 0;
}


.title-carnet.sub-title-live {
  margin: 40px 0 20px;
  text-align: left;
  display: block;
  text-transform: inherit;
}

.flexbox-live-marche {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.border-top-marche {
  border-top: 3px solid #E9500E;
}

.box-element.mx-2 {
  width: 100%;
}

/* Le wrapper fixe la hauteur visible */
.hist-indices-chart {
  position: relative;
  height: 700px; /* ← hauteur voulue ici */
  width: 100%;
}

/* Le canvas remplit le wrapper, pas de hauteur fixe directement */
.hist-indices-chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.title-composition-indice {
  font-family: DM Sans, serif;
  font-weight: 700;
  font-size: 26px;
  vertical-align: middle;
  color: rgba(9, 36, 75, 1);
}
.chart-card-tableau.height-chart iframe {
  max-height: 680px;
}
.ticker-container {
  width: 100%;
  height: 50px;
  overflow: hidden;
  position: relative;
  background: #061B3A;
}

.ticker-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-left 200s linear infinite;
  will-change: transform;
}

/* ✅ Pause au hover */
.ticker-container:hover .ticker-wrapper {
  animation-play-state: paused;
}

.ticker-container iframe {
  width: 30000px;
  height: 52px;
  border: 0;
  display: block;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.grafana-frame{
  position: relative;
  overflow: hidden;
}

/*.grafana-frame iframe{*/
/*  width: 100%;*/
/*  min-height: 200px; !* adapte selon tes cards *!*/
/*  display: block;*/
/*}*/

/*.grafana-frame--small iframe{*/
/*  min-height: 40px;*/
/*}*/

/*.grafana-frame--mini iframe{*/
/*  min-height: 35px;*/
/*}*/

.grafana-loader{
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.grafana-frame[data-loading="0"] .grafana-loader{
  display: none;
}

.spinner{
  width: 24px;
  height: 24px;
  border: 3px solid #ddd;
  border-top-color: #555;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
.iframe-container .col-gauche, .iframe-container .col.droite.box-cap {
    width: 50%;
}
.points-bourse-section h3 {
    font-size: 25px;
    margin-bottom: 25px;
}
}

/* Scroll horizontal pour TOP Hausses / Baisses à 500px */
@media (max-width: 500px) {
  .chart-card-tableau--scroll-horizontal {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .chart-card-tableau--scroll-horizontal iframe {
    min-width: 550px;
  }
}

@media (max-width: 580px) {
.points-bourse-section strong {
    font-size: 20px;
    height: 15px;
}
.points-bourse-section table tbody tr:nth-child(2) td {
    padding: 0 90px;
}
.points-bourse-section p span, .points-bourse-section tr:nth-child(1) td {
    font-size: 12px;
    line-height: 15px;
}
}

/* Overlay cliquable sur le bloc stats (iframe Grafana) : chaque ligne → slide bannière */
.grafana-frame--stats-overlay {
  position: relative;
}
.bourse-stats-overlay {
  position: absolute;
    top: 39px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 1;
    height: 140px;
}
.bourse-stats-overlay__row,
.bourse-stats-overlay__cell {
  pointer-events: auto;
  cursor: pointer;
  flex: 1;
  min-height: 0;
  overflow: hidden; /* évite que le hover déborde visuellement */
}

/* Hover / active par élément (ligne/cellule) */
.bourse-stats-overlay__row[data-bourse-slide],
.bourse-stats-overlay__cell[data-bourse-slide] {
  position: relative;
}

.bourse-stats-overlay__row[data-bourse-slide]::before,
.bourse-stats-overlay__cell[data-bourse-slide]::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  max-height: 28px;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 0 rgba(233, 80, 14, 0);
  transition: background-color 120ms ease, box-shadow 120ms ease;
  pointer-events: none;
}

.bourse-stats-overlay__row[data-bourse-slide]:hover::before,
.bourse-stats-overlay__cell[data-bourse-slide]:hover::before {
  background-color: rgba(233, 80, 14, 0.08);
  box-shadow: inset 0 0 0 1px rgba(233, 80, 14, 0.35);
}

/* Ajustement : sur la ligne half (Hausses/Baisses), réduire le padding interne */
.bourse-stats-overlay__row--half .bourse-stats-overlay__cell[data-bourse-slide]::before {
  left: 6px;
  right: 6px;
  max-height: 26px;
}
.bourse-stats-overlay__row--half {
  display: flex;
  flex-direction: row;
}
.bourse-stats-overlay__row--half .bourse-stats-overlay__cell {
  flex: 1;
}
.bourse-stats-overlay__row--no-link {
  pointer-events: none;
  cursor: default;
}

/* Overlay TUNINDEX (slide 1) : clic sur la carte → slide 2 (courbe TUNINDEX) */
.grafana-frame--tunindex-overlay {
  position: relative;
}
.bourse-stats-overlay--single {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
  height: 90px;
}

.bourse-stats-overlay--single.is-active {
  box-shadow: inset 0 0 0 2px rgba(233, 80, 14, 0.35);
}

/* Hover TUNINDEX / TUNINDEX20 : effet similaire à Quantité, appliqué à la carte */
.bourse-stats-overlay--single::before {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 4px;
  background-color: transparent;
  box-shadow: inset 0 0 0 0 rgba(233, 80, 14, 0);
  transition: background-color 120ms ease, box-shadow 120ms ease;
  pointer-events: none;
}

.bourse-stats-overlay--single:hover::before,
.bourse-stats-overlay--single.is-active::before {
  background-color: rgba(233, 80, 14, 0.06);
  box-shadow: inset 0 0 0 1px rgba(233, 80, 14, 0.35);
}

@media (max-width: 1053px) {
  .chart-card-tableau.mb-4 iframe {
    height: 155px;;
  }
}

@media (max-width: 730px) {
  .chart-card-tableau.mb-4 iframe {
    height: 215px;;
  }
}
@media (max-width: 550px) {
.grafana-frame.grafana-frame--stats-overlay {
   height: 100% !important
}
}
@media (max-width: 530px) {
  .chart-card-tableau.mb-4 iframe {
    height: 410px;;
  }
  .chart-card-tableau.mb-4 {
    max-height: 410px;
}
}

@media (max-width: 410px) {
  .iframe-container iframe {
    height: 165px !important;
}
}