/* Importer la police Roboto Mono depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

/* Appliquer la police et la couleur à l'ensemble du corps */
body {
    font-family: "Roboto Mono", sans-serif;
    color: black; /* Couleur du texte */
    background-color: #f4f4f9; /* Fond clair pour la page */
    margin: 0;
    padding: 0;
}

/* Style pour le menu de navigation */
nav ul.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #333;
}

nav ul.menu li {
    display: inline;
    margin-right: 20px;
}

nav ul.menu li a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

nav ul.menu li a:hover {
    background-color: #555;
}

/* Style pour la page de contenu */
.content {
    margin: 20px;
}

/* Style de la section */
.section-row {
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 1px 30px 0 rgba(0, 0, 0, .1);
    padding: 1.5rem;
    margin-bottom: 20px;
}

h4.fw-medium.text-primary.mb-3 {
    color: #4CAF50; /* Couleur primaire pour le titre */
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Style pour la table */
.table-responsive {
    overflow-x: auto; /* Permet au tableau d'être défilable sur petits écrans */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Roboto Mono", sans-serif;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style des en-têtes de colonnes */
th {
    background-color: #4CAF50; /* Vert foncé */
    color: white;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

/* Style des cellules */
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: right; /* Alignement à droite pour les données financières */
}

.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within) {
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    white-space: nowrap!important;
    border: 0!important
}

.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption) {
    position: absolute!important
}

/* Alternance des couleurs des lignes pour une meilleure lisibilité */
tr:nth-child(even) {
    background-color: #f2f2f2; /* Gris clair */
}

/* Surlignement des lignes au survol */
tr:hover {
    background-color: #ddd; /* Gris moyen */
}

/* Style pour les cellules contenant des valeurs numériques */
.numberCell {
    text-align: right;
    font-family: Arial, sans-serif;
}

/* Ajout d'info-bulle pour les périodes de drawdown */
.fa-pv-info {
    color: #4CAF50; /* Icône verte */
    cursor: pointer;
}

.positive {
    color: #4CAF50;
}
.negative {
    color: red;
}

/* Tooltip styling */
[data-bs-toggle="tooltip"] {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #000;
}

[data-bs-toggle="tooltip"]:hover::after {
    content: attr(aria-label);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    top: -30px;
    left: 0;
    white-space: nowrap;
}

/* Responsive Design for Tables */
@media screen and (max-width: 768px) {
    table, th, td {
        display: block;
    }

    th {
        background-color: #333;
        color: white;
        text-align: left;
    }

    td {
        text-align: left;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        white-space: nowrap;
    }
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* DataTable Pagination Styling */
div.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_length, .dataTables_info, .dataTables_paginate {
    font-size: 14px;
}

.dataTables_paginate a {
    color: #4CAF50;
}

.dataTables_paginate a:hover {
    color: #45a049;
}

/* Adding styles for various headers */
h2, h3 {
    color: #333;
    margin-bottom: 15px;
    background-color: #e4f1e0;
    padding: 10px;
    border-radius: 5px;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Utility class for centering content */
.center {
    text-align: center;
}

/* Styling for links */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Adjusting for small screen sizes */
@media screen and (max-width: 768px) {
    .section-row {
        padding: 1rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    table {
        width: 90%;
    }
}
