/* RESET DE BASE */
* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    color: #1a1a1a;
}


/* CONTAINER PRINCIPAL */
.full-container {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
}

/* TOP CONTAINER */
.top-container {
    background-color: #e3efff; /* #e3efff */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.top-container h2 {
    font-size: 2rem;
    color: #018FFA; /*#234f8c; */
    margin-bottom: 0.5rem;
}

.top-container h3 {
    font-size: 1.4rem;
    color: #FEB019; /*3a7bd5; */
    margin-bottom: 1.5rem;
}

/* CONTAINER CELLS */
.cells-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cell {
    background-color: #d0e5ff; /* #d0e5ff */
    border-radius: 8px;
    padding: 1rem;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cell-title {
    font-weight: bold;
    color: #0f3872;
    margin-bottom: 0.5rem;
}

.cell-content {
    font-size: 2rem;
    font-weight: bold;
    color: #018FFA;
    display: flex;
    justify-content: right;
}

/* ZONE CENTRALE GAUCHE/DROITE */
.detail-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

/* LISTE GAUCHE */
.left-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 0;
    min-width: 350px;
    display: flex;
    flex-direction: column;
}

.left-container h3 {
    margin-bottom: 1rem;
    color: #0f3872;
    font-size: 1.2rem;
}

.left-container h4 {
    margin-bottom: 1rem;
    color: #0f3872;
    font-size: 1rem;
}

.list_supports {
    padding-bottom: 20px;
    margin-bottom: auto; /* 3rem; */
}

.list_supports h3 {
    margin-bottom: 1rem;
    color: #0f3872;
    font-size: 1.2rem;
}

.ligne-pf {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.ligne-pf .ticker {
    width: 75px;
}

.ligne-pf .ticker .capsule-ticker {
    display: inline-flex;
    font-weight: bold;
    font-size: 0.7rem;
    background-color: #FEB019; /*#034A96;*/
    padding: 4px 8px;
    color: white;
    border-radius: 6px;
    align-items: center; 
    white-space: nowrap;
}

.ligne-pf .shortname {
    flex: 1;
    padding: 0 1rem;
    color: #333;
}

.ligne-pf .ratio {
    color: #018FFA;
    font-size: 0.9rem;;
    width: 60px;
    text-align: right;
    display: flex;
    align-items: center;
}

.supports-buttons-group {
    display: flex;
    align-items: stretch;
    gap: 1rem;   
    /*margin-bottom: 3rem;*/
}

.supports-buttons-form {
    flex: 1 1 0;
    display: flex;
}

.supports-button {
    flex: 1 1 0;
    background-color: #018FFA; /*# 2b72ff;*/
    color: white;/* 018ffa;*/
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.supports-button:hover {
    background-color: #0075D1; /* 1a5bd3 */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.supports-button:active {
    transform: scale(0.97);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}


/* GRAPHIQUE DROITE */
.right-container {
    display: flex;
    flex: 1 1 0;
    min-width: 0; /* WARNING: ne pas retirer: permet la réductio nde la largeur du graph...*/
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #0f3872;
    position: relative;
}

/*
.graph {
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    min-height: 450px;
}*/


#chart {
    width: 100%;
    height: 100%;
    min-width: 300px;
    /*min-height: 450px;*/
}

#chart .u-title {
    font-size: 16px;
    text-align: left;
}


/*----- TOOLTIPS -----*/
.tt {
    position: absolute;
    pointer-events: none;    
    font: 600 13px/1.4 system-ui, Arial, sans-serif;
    color: #222;
    background: rgba(255,255,255,0.95);
    padding: 5px 8px;
    border: 2px solid rgba(254, 178, 25, 0.95);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: none;
    z-index: 100;
    will-change: transform;   /* micro-optim */
}
.tt-color { /* on va appeler ainsi: <span class="tt-color" style="--couleur:#0ACC3A"></span> */
    --couleur: #018FFA; /* valeur par défaut */
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:2px;
    background: var(--couleur);
}
.tt-title {
    margin-bottom:6px;
    white-space: nowrap;
}
.tt-line {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
}
.tt-label {
    font-weight: normal;
    white-space: nowrap;
}
.tt-value {
    margin-left: auto;
    white-space: nowrap;
}
/*----- FIN DE TOOLTIPS -----*/

/* BOTTOM CONTAINER */
.bottom-container {
    background-color: #e3efff;   /* Top: e3efff; Init: f8fbff */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.bottom-container h3 {
    font-size: 1.5rem;
    color: #0070cc;
    margin-bottom: 1rem;
}

.bottom-container ul {
    width: fit-content; /* ou une largeur fixe */
    margin: 0 auto;
  
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.bottom-container ul li {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}

.bottom-container ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #018FFA;
    font-weight: bold;
}


.bottom-container .inscription {
    padding: 12px 24px;
    background-color: #018FFA; /* 2b72ff */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.bottom-container .inscription:hover {
    background-color: #0075D1; /* 1a5bd3 */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}


.bottom-container .inscription:active {
    transform: scale(0.97);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}



/* FOOTER */
body::after {
    content: "© tendance-finance.fr – 2025";
    display: block;
    margin-top: 50px;
    text-align: center;
    font-size: 13px;
    color: #888;
}


/* RESPONSIVE */
@media (max-width: 950px) {

    .top-container {
        padding: 20px;
    }
    .top-container h2 {
        font-size: 22px;
    }
    .top-container h3 {
        font-size: 20px;
        color: #FEB019;
    }
    .cell {
        padding: 10px;
    }
    .cell-content {
        font-size: 22px;
    }
    .detail-container {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .left-container {
        min-width: 200px;
    }
}


