
.container {
    display:flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    padding: 0 10px 10px;
}

.entete-container {
    display: flex;
    top: 40px;
    z-index: 999;
}
.entete-container.is-stuck {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ======== MESSAGES FLASH ======== */
.flash-container {
  position: fixed;
  top: 10%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%); 
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash-message {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  color: #0b1f33;
  background: #e6f4ff; /* info par défaut */
  border: 1px solid #b3e1ff;
  font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.flash-message.visible { opacity: 1; transform: translateY(0); }
.flash-message.hide    { opacity: 0; transform: translateY(-6px); }
.flash-message.success { background: #e9f9ef; border-color:#bdecca; color:#0f5132; }
.flash-message.error   { background: #fdecea; border-color:#f5c2c0; color:#842029; }
.flash-message.warning { background: #fff6e5; border-color:#ffe2ad; color:#7a4d00; }
.flash-message.info    { background: #e6f4ff; border-color:#b3e1ff; color:#0b1f33; }
/* ======== FIN DE MESSAGES FLASH ======== */



/* ======== DRAPEAU DE DEVISES ======== */
.flag-icon {
  display: inline-block;
  height: 15px;
  width: auto;
  margin: 0 5px 0 10px;
}


/* ======== ONGLETS ======== */

.onglets {
    width: auto;
}

.onglets-labels {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

/* Cache les boutons radio */
.onglets-labels input[type="radio"] {
  display: none;  
}

/* --- Styles des cercles --- */
.onglets-labels label {
  --diam: 12px;
  position: relative;
  width: var(--diam);
  height: var(--diam);
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.onglets-labels label:hover {
  background-color: #FEB019;
}

.onglets-labels label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

/* Accessibilité : focus clavier */
.onglets-labels input[type="radio"]:focus + label {
  outline: 3px solid #94a3b8;
  outline-offset: 3px;
}

/* Sélectionné (radio coché) */
#tab-synthese:checked + label,
#tab-graphs:checked + label,
#tab-gains:checked + label,
#tab-societe:checked + label,
#tab-finance:checked + label {
  background-color: #FEB019;
  transform: scale(1.3);
}

/* Contenu */
.tab-content {
    display: none;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #dbdbdb05;
    border-radius: 12px;
    color: #0F3872;
}

/* Afficher seulement le contenu actif */
.onglets:has(#tab-synthese:checked) #content-synthese,
.onglets:has(#tab-graphs:checked)    #content-graphs,
.onglets:has(#tab-gains:checked)    #content-gains,
.onglets:has(#tab-societe:checked)  #content-societe,
.onglets:has(#tab-finance:checked)  #content-finance {
  display: block;
}

/* BOUTONS DURATION cachés par défaut */
.onglets .graph-controls { display: none; }

/* BOUTONS DURATION visibles si l'un des 3 premiers onglets est coché */
.ticker-menu:has(#tab-synthese:checked) .graph-controls,
.ticker-menu:has(#tab-graphs:checked) .graph-controls,
.ticker-menu:has(#tab-gains:checked) .graph-controls {
  display: flex;
}

/* ======== FIN DE ONGLETS ======== */


/* ======== INFO-BULLE ACCUMULATION/DISTRIBUTION ======== */
.info-icon {
  display: inline-block;
  align-self: flex-start;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #f5f5f5;
  color: #333;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  line-height: 10px;
  cursor: pointer;
  position: relative;
  margin-left: 2px;
}
.info-icon:hover {
  background-color: #018FFA;
  border-color: #018FFA;
  color: #fff;
}

/* ===== Tooltip (au-dessus) ===== */
.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 200%;
  left: 50%;
  transform: translateX(-90%);
  background: #fff;
  color: #444;
  padding: 6px 8px;
  border: 1px solid #018FFA;
  border-radius: 4px;
  white-space: pre-line;
  font-weight: normal;
  font-size: 12px;
  line-height: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  min-width: 200px;
  word-wrap: break-word;
  text-align: left;
  box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
  z-index: 200;
}

/* Flèche (au-dessus) */
.info-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #018FFA transparent transparent transparent; /* triangle pointant vers le bas */
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

/* Affichage au survol */
.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
  transition: opacity 0.3s ease 0.3s;
}
/* ======== FIN INFO-BULLE ======== */


/* === DONNEES CLES DANS SYNTHESE === */
.synthese-cours,
.synthese-rentabilite,
.synthese-recul {
    display: flex;
    flex-direction: column;
}

.right-margin-auto {
    margin-left: auto;
}

.titre-devise {
    margin: 0;
}

.synthese-date {
    font-size: 13px;
    font-weight: 500;
    margin-top: 50px;
    color: #0f3872;
}
.cours-ticker {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    color:#0f3872;
    gap:3px;
}
.synthese-cagr {
    font-size: 45px;
    font-weight: 600;
    color:#0ACC3A;
    margin-bottom: 10px;  
}

.synthese-texte-rentabilite {
    font-size: 15px;
    font-weight: 500;
    color: #0d4a1c;
    opacity: 0.8;
}
.synthese-texte-annualise {
    font-size: 13px;
    font-weight: 500;
    color: #0d4a1c;
    opacity: 0.8;
}
.synthese-valeur-recul-max {
    font-size: 25px;
    font-weight: 500;
    color: #f02121;
    margin: 20px 0 10px;
}
.synthese-texte-recul-max {
    font-size: 15px;
    font-weight: 500;
    color: #94140e;
}
.synthese-recul-max-date {
    font-size: 13px;
    font-weight: 500;
    color: #94140e;
}

.desc-text, .desc-note {
    color:#0f3872;
    text-align: justify;
}

/* === FIN DES DONNEES CLES DANS SYNTHESE === */


h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #018ffa;
    margin: 20px 0 5px;
}
.sous-titre {
    display: flex;
    align-items: center;
}

.sous-titre .ticker,
.entete-container .ticker {
    flex: 0 1 auto;
    font-weight: bold;
    font-size: 16px;
    max-height: 24px;
    background-color: #FEB019;
    padding: 4px 8px;
    color: white;
    border-radius: 6px;
}

.devise-titre {
    color:#0F3872;
    font-weight: bold;
    font-size: 20px;
}

.entete-boutons-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}


/* SELECTEUR DE DEVISES */
/*
#devise-select {
    background-color: #0ACC3A;
    color: white;
    font-weight: bold;
    padding: 5px 7px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
#devise-select option {
    background-color: #E2FCE2;
    color: #333;
}
*/
/* FIN SELECTEUR DE DEVISES */


/* BOUTONS AJOUTS */

.container-boutons-ajout {
    display: flex;
    position: relative; /* Nécessaire pour que le sous-menu portefeuille soit positionné relativement à ce conteneur */
    gap: 10px;
    /*margin-top: 10px;*/
}

/* AJOUT DANS LISTE */
#add-to-list-container {
    display: flex;
    position: relative; /* Nécessaire pour que le sous-menu liste soit positionné relativement à ce conteneur */
    flex: 1 1 auto;
}

#add-to-list-container button {
    flex: 1;
    background-color: #018ffa;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: none;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#add-to-list-container button:hover {
    background-color: #0277cc;
}

#list-dropdown {
    display:none;
    position:fixed;
    top:35%;
    left:50%;
    transform:translate(-50%, -50%);
    background: white;
    border: 2px solid #018FFA;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
}

#list-options div {
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}


.blue-bullet::before {
  content: "•";
  color: #018FFA;
  margin-right: 6px;
}

#list-options div:hover {
    background-color: #f0f8ff;
}

#list-dropdown hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

#create-list-form {
    margin-top: 10px;
}

#create-list-form input {
    width: calc(100% - 120px);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

#new-list-title {
    font-size: 14px;
    padding: 4px;
}

#create-list-form button {
    padding: 6px 12px;
    background-color: #018ffa;
    color: white;
    margin-left: auto;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#create-list-form button:hover {
    background-color: #0277cc;
}
/* FIN DU BOUTON AJOUT DANS LISTE */


/* BOUTON AJOUT DANS PORTEFEUILLE */

#add-to-portefeuille-container {
    display: flex;
    flex: 1 1 auto;
}

#add-to-portefeuille-container button {
    flex: 1;
    background-color: #0acc3a; /*#46EB7D;*/ 
    font-size: 14px;
    font-weight: 600;
    color: white;/* #0a5322 ; */
    border: none;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#add-to-portefeuille-container button:hover {
    background-color: #0db336; /* #53FA93; */
}



#portfolioDropdown {
    display:none;
    position:fixed;
    top:35%;
    left:50%;
    transform:translate(-50%, -50%);
    background: white;
    border: 2px solid #0ACC3A;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
}

#portfolioList li {
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#portfolioList li:hover {
  background-color: #eeffee;
}

.green-bullet::before {
  content: "•";
  color: #26E766;
  margin-right: 6px;
}

#portfolioDropdown hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

#newPf {
    width: calc(100% - 120px);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 5px;
    font-size: 14px;
}

#createPfBtn,
#submitOrderBtn {
    padding: 6px 12px;
    background-color: #0acc3a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
}

#submitOrderBtn {
    margin-top: 25px;
}

#createPfBtn:hover,
#submitOrderBtn:hover {
    background-color: #0db336;
}

/* Modale - Overlay plein écran */
#modalOverlay,
#modalOverlayList,
#modalOverlayPf {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    z-index:999;
}


/* Contenu de la modale d'ajout d'une opération dans un portefeuille*/
#orderModal {
    display:none;
    flex-direction: column;
    position:fixed;
    top:35%;
    left:50%;
    transform:translate(-50%, -50%);
    background:white;
    padding:20px;
    border: 2px solid #0ACC3A;
    border-radius:8px;
    box-shadow:0 0 20px rgba(0,0,0,0.3);
    z-index:1000;
    max-width: 250px;
}

#orderModal h2 {
    font-size: 22px;
    margin: 0;
}

.ligne-portefeuille {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.label-portefeuille {
    flex: 0 0 auto;
    color: #018FFA; /* #0f3872; */
    font-size: 1.1rem;
    font-weight: bold;
}

.nom-portefeuille {
    flex: 1 0 auto;
    color: #018FFA; /* #0f3872; */
    font-size: 1.1rem;
    font-weight: bold;
    text-align: right;
}

.nom-portefeuille option {
    text-align: left;
}


#modalPfSelect {
    appearance: none;
    border: 1px solid #fff;;
    outline: none; /* optionnel : enlève la bordure de l'input */
    background-color: transparent; /* si tu veux qu'il se fonde avec le fond */
}

#modalPfSelect:hover, #modalPfSelect:focus {
  border: 1px solid #ccc;
}

.modal-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.cout {
    display: flex;
    gap: 10px;
    max-width: 250px;
    align-items: stretch;
}

.modal-form input,
.modal-form select {
    flex: 1 1 auto;
    text-align: right;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 6px;
}


.devise-cout {
    background-color: #FEB019;
    color: white;
    font-weight: bold;
    padding: 5px 7px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.devise-cout option {
    background-color: #ffefce;
    color: #333;
}

/* FIN BOUTON AJOUT DANS PORTEFEUILLE */



/* BOUTONS DE PARTAGE */
.share-buttons {
  align-self: flex-start;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;

}

.share-buttons a {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.share-buttons a:hover {
  transform: scale(1.02);
}

.share-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* FIN BOUTONS DE PARTAGE */


/* BOUTON SWITCH DE AUTO-ADJUST */

.switch-autoadj-container {
    display: flex;
    align-items: center;
    min-width: 121px;
    opacity: 0.5;
    transition: opacity 100ms ease-in-out;
    /*gap: 5px;
    margin-right: auto;*/
}
.switch-autoadj-container:hover {
    opacity: 1;
}


.autoadj-switch-text {
    font-size: 13px;
    color: #0F3872;
}

.switch {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 12px;
    margin-right: 5px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #0acc3a;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #018FFA;
}

input:checked + .slider:before {
    transform: translateX(12px);
}
/* FIN DU BOUTON SWITCH DE AUTO-ADJUST */


.graph-controls {
  display: flex;
  flex-direction: column-reverse;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
}

/*
.boutons-duree {
    display: flex;
}*/

.duration-button {
    font-size:12px;
    font-weight: 500;
    color: #0F3872;
    background-color: #f0f0f0;
    border: 2px solid #e7e7e7;
    padding:3px 6px;
    margin: 1px 0 1px 1px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 100ms ease-in-out;
}

.duration-button:hover {
    background: #e6e6e6;
    border: 2px solid #018FFA;
    opacity: 1;
}

.duration-button.active {
  background-color: #018FFA;
  color: white;
  font-weight: bold;
  border: 1px solid #018FFA;
  opacity: 1;
}


.synthese-top-container {
    display: flex;
    align-items: stretch;
    padding: 0 0 0.5rem 0rem;
    margin: 0;
    /*width: 100%;*/
    /*max-width: 100%;*/
}


.synthese-key-data {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-width: 240px;
    max-width: 240px;
    font-family: Conv_Akk_Pro, sans-serif;
    padding-right: 10px;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
  .synthese-top-container { flex-direction: column-reverse; }
  .synthese-key-data { 
    flex-direction: row;
    justify-content:space-evenly;
    max-width: none;
    min-width: 0;
    margin: 10px 0 30px;
    align-items: center; 
    }
  .no-small-screen { display: none; }
  .not-on-mobile { display: none; }
}



#chart-synthese-global {
    position: relative;
    flex: 1 1 0;
    max-width: 100%;
}

#chart-synthese {
    position: relative;
    flex: 1 1 0;
    max-width: 100%;
}
@media (min-width: 801px) {
  #chart-synthese {
    inline-size: min(100%, calc(100vw - 240px - 20px - 20px)); /* !!! Warning ne pas changer cela afin que le graph se redimensionne correctement avec la taille de la fenêtre */
  }

}

h2 {
    font-size: 32px;
    color: #018FFA;
    margin: 1rem 0 0;
}


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

h4 {
    font-size: 1.2rem;
    padding-bottom: 10px; 
}

#chartGains {
    position: relative;
}

.u-title {
    text-align: left;
    color: #0F3872;
}


/*----- TOOLTIPS -----*/
.tt {
    position: absolute;
    display: none;
    pointer-events: none;    
    font: 600 13px/1.4 system-ui, Arial, sans-serif;
    color: #111;
    background: rgba(255,255,255,0.85);
    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);
    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;
    /*flex-wrap: wrap;*/
    gap: 8px;
}
.tt-label {
    font-weight: normal;
    white-space: nowrap;
}
.tt-value {
    margin-left: auto;
    white-space: nowrap;
}
/*----- FIN DE TOOLTIPS -----*/


.background-bleu {
    background-color: #dfeefa;
}


.onglet-cours {
    display: flex;
    align-items: stretch;
    padding: 0 0 0.5rem 0rem;
    margin: 0;
    width: 100%;
    max-width: 100vw;
}

.onglet-cours-data {
    flex-direction: column;
    min-width: 240px;
    max-width: 240px;
    padding: 20px 10px 0 0;
    flex-wrap: wrap;
}

.onglet-cours-chart-container {
    position: relative;
    flex: 1 1 0;
    max-width: 100%;
}

@media (max-width: 800px) {
  .onglet-cours { flex-direction: column-reverse; }
  .onglet-cours-data { flex-direction: row; justify-content:space-evenly; max-width: none; min-width: 0; gap: 50px; align-items: center; }
  .no-small-screen { display: none; }
}
@media (min-width: 801px) {
  #onglet-cours-chart-container {
    inline-size: min(100%, calc(100vw - 240px - 20px - 20px)); /* !!! Warning ne pas changer cela afin que le graph se redimensionne correctement avec la taille de la fenêtre */
  }
}


#chart-price,
#chart-volume,
#chart-recul {
    width: 100%; /* utile pour resize des graphiques */
}

.strategie-rapport{
    margin: 20px 0;
}

.rapport-title {
    margin-right: auto;
    color: #0F3872;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0 5px;
}

.rapport-line {
    display: flex;
    flex-direction: row;
    color: #0F3872;
    font-size: 0.9rem;
}

.rapport-label {
    margin-right: auto;
    color: #0F3872;
    font-size: 0.9rem;
}

.rapport-value {
    display: flex;
    color: #0F3872;
    justify-content: flex-end;
    font-size: 0.9rem;
    margin-right: 10px;
}

.rapport-date {
    color: #0F3872;
    font-size: 0.9rem;
}

.bold {
    font-weight: bold;
}

hr.rapport {
    margin: 5px 0;
}

#description {
    color: #111;
    font-size: 15px;
}


.donnees-principales {
    /*font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f9f9f9;*/
    padding: 20px 0 0;
    /*border-radius: 12px;*/
    /*box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    color: #444;
    /*max-width: 700px;
    margin: 30px auto;*/
}

.donnees-principales h2 {
    font-size: 1.5rem;
    color: #018FFA;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.identite {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.nom {
    color: #FEB019;
    font-weight: bold;
}

.identite .ticker {
    flex: 0 1 auto;
    font-weight: bold;
    font-size: 0.85rem;
    background-color: #FEB019; /*#034A96;*/
    padding: 4px 8px;
    color: white;
    border-radius: 6px;
    margin-bottom: 0.2rem;
    margin-left: 10px;
}

.infos-generales,
.cours-et-volume,
.capitalisation,
.dividendes {
    margin: 15px 0;
    line-height: 1.6;
}

.bleu {
    color: #018ffa;
    /*font-weight: bold;*/
}

.vert {
    color: #0ACC3A;
}

.rouge {
    color: #e60000;
    /*font-weight: bold;*/
}

/*
strong {
    color: #444;
}*/

em {
    color: #444;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px;
}
.hr-top-margin {
    margin-top: 30px;
}
.hr-bottom-margin {
    margin-bottom: 30px;
}


/*#translationNote,*/
[id*="description"] a {
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: bolder;
}

#description a:hover {
    text-decoration: underline;
}

/*
.trad {
    font-size: 0.85rem;
    color: #888;
}*/


.financial-toolbar { margin:25px 50px 15px; display: flex; gap: 10px;}
.btn-switch { padding:5px 10px; border:2px solid #ddd; border-radius:6px; background:#f8f9fa; cursor:pointer; font-size:14px; font-weight: bold; color:#555; }
.btn-switch:hover { border: 2px solid #FEB019; }
.btn-switch.active { background:#FEB019; color:#fff; border-color:#FEB019; }

.chart-financials {
    position: relative;
}

.chart-empty-overlay { /* Overlay si aucune info trimestrielle disponible */
    display: "none";
    position: "absolute";
    inset: "0";
    align-items: "center";
    justify-content: "center";
    font: "600 14px/1.4 Arial, sans-serif";
    color: "#666";
    backdrop-filter: "none";
    pointer-events: "none";
    text-align: "center";
}

/* TABLEAU DE DONNEES FINANCIERES */
.table-financials {
    width: 100% - 100px;
    border-collapse: collapse;
    margin: 1rem 50px 0;
    font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.table-financials th,
.table-financials td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
}

.table-financials thead th {
  background: #f3f4f6;   /* gris très clair */
  color: #0f3872;        /* bleu sobre */
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.table-financials tbody th:first-child,
.table-financials tbody td:first-child {
  background: #f8fafc;   /* à peine surligné */
  color: #0f3872;
  /*font-weight: 600;*/
  text-align: left;
}

.table-financials tbody td:last-child {
  background: #ffe5b1;
  font-weight: 700;
}

.table-financials tbody tr:hover td { background: #eef5ff; }

.table-financials td {
    font-size: .9rem;
}



@media (max-width: 600px) {
    .donnees-principales {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.3rem;
    }

    .identite {
        font-size: 1rem;
    }
}


/* DEBUT FAB BUTTON */
/* Variables : ajustez la taille/couleurs ici */
:root {
  --fab-size: 45px;                   /* diamètre du bouton + */
  --fab-bg: #FEB019; /*0f3872;                  /* fond du bouton + */
  --fab-bg-hover: #e6a016; /*0c2d5a;*/
  --fab-color: #ffffff;               /* couleur du + */
  --fab-shadow: 0 10px 20px rgba(0,0,0,.25);
  --menu-gap: 15px;                   /* espacement entre + et le menu */
  --menu-btn-bg: #ffffff;
  --menu-btn-color: #018ffa;
  --menu-btn-border: 2px solid #feb019;
  --menu-btn-hover-bg: #f1f5f9;
}

/* Conteneur placé en bas à droite de l’écran (flottant) */
.fab {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;      /* le menu se place sous le + */
  align-items: flex-end;
  gap: var(--menu-gap);
  z-index: 999;                /* au-dessus du contenu */
}

/* Bouton principal rond avec + */
.fab-main {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  border: none;
  background: var(--fab-bg);
  color: var(--fab-color);
  font-size: calc(var(--fab-size) * 0.6); /* taille du + */
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--fab-shadow);
  transform: scale(1);
  transform-origin: center;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent; /* Désactive le carré gris/bleu lors du touch sur mobile */
}
.fab-main:hover { background: var(--fab-bg-hover); }
.fab-main:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

/*.fab-icon { transform: translateY(-7%); } /* centrage optique du “+” */

@media (width >= 768px) {
    :root { --fab-size: 64px; }
    .fab { right: 50px; bottom: 50px; }
    .fab-icon { transform: translateY(-7%); } /* centrage optique du “+” */
}


/* Menu masqué par défaut (opacity + pointer-events pour éviter les clics fantômes) */
.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: flex-end;   /* aligne les boutons sur la droite du conteneur */
  text-align: right;       /* aligne le texte à droite (optionnel) */
}

/* Boutons d’action du menu */
.fab-action {
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 25px; /* pastille arrondie */
  background: var(--menu-btn-bg);
  /*color: var(--menu-btn-color);
  /*border: var(--menu-btn-border);*/
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform-origin: bottom right;     /* ancre visuelle au coin bas-droit */
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
  pointer-events: none;
}

#btn-add-list { color: #0F3872; border: 2px solid #018FFA; }
#btn-add-list:hover { background: #f0f9ff }
#addToPortfolioBtn { color: #0d4a1c; border: 2px solid #0ACC3A; }
#addToPortfolioBtn:hover { background: #efffef }

/*.fab-action:hover { background: var(--menu-btn-hover-bg); }*/
.fab-action:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

.fab-main:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

/* État “ouvert” via :hover (souris) ou :focus-within (clavier) */
/*
.fab:hover .fab-main,
.fab:focus-within .fab-main {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

.fab:hover .fab-action,
.fab:focus-within .fab-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
*/

/* Accessibilité : écran lecteur d’écran */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Option : si le conteneur reçoit une classe .is-open (tactile), on force l’ouverture */
.fab.is-open .fab-main {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.fab.is-open .fab-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* FIN FAB BUTTON */




/* =========================
   Table financière — Styles
   ========================= */

/* Style de base du conteneur (facultatif) */
.table-financial-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;    /* gris clair */
  border-radius: 8px;
  padding: 4px;
  background-color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Tableau */
.table-financial {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;             /* évite les tableaux trop tassés */
  color: #1e293b;               /* gris très foncé */
  background-color: #fff;
}

/* En-tête */
.table-financial thead th {
  position: sticky;
  top: 0;
  background-color: #f8fafc;    /* gris très pâle */
  color: #475569;               /* gris moyen */
  font-weight: 600;
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Première cellule d'en-tête (libellé colonne) alignée à gauche */
.table-financial thead th:first-child {
  text-align: left;
  font-size: 14px;
}

/* Cellules du corps */
.table-financial tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #1e293b;
}

/* Première colonne (libellés) */
.table-financial tbody td:first-child {
  font-weight: 400;
  color: #0f3872;
  text-align: left;
}

/* Lignes zébrées pour lisibilité */
.table-financial tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Survol de ligne (desktop) */
@media (hover: hover) {
  .table-financial tbody tr:hover {
    background-color: #f1f5f9;
  }
}

/* Mise en avant de la dernière année (classe .annee-bleue) */
.table-financial th.annee-bleue,
.table-financial td.annee-bleue {
  /*background-color: #e8f1ff;    /* bleu pâle */
  color: #0f3872;
  border-left: 2px solid #FEB019;
  font-weight: 600;
}
