/* ==========================================================================
   Page Fund — porte investisseur qualifié, cartes Fund/Key Information,
   camembert sectoriel, chart NAV. Classes d'origine conservees
   (reference/blocks/fund/ + reference/scrape/fund.html).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Porte « Qualified Investor Verification »
   -------------------------------------------------------------------------- */

#investor-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 216, 194, 0.85);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  /* Petit ecran (iPhone SE : 568px utiles, porte ~980px) : la porte
     defile, sinon son haut et le bouton Confirm sont hors d'atteinte. */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* margin:auto centre la carte quand elle tient, et la colle en haut
   (sans debord negatif inatteignable) quand elle est plus haute que l'ecran. */
#investor-popup .popup-content { margin: auto; }

#page-content-wrapper { display: none; }
body.popup-hidden #investor-popup { display: none; }
body.content-visible #page-content-wrapper { display: block; }

.popup-content {
  background: linear-gradient(135deg, #000190 0%, #000eb8 50%, #1414FF 100%);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 1, 144, 0.4);
  text-align: center;
  position: relative;
  animation: slideIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.logo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.popup-content h2 {
  font-family: var(--font-titres);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem 0;
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.popup-content p {
  font-family: var(--font-corps);
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  opacity: 0.95;
}

/* Points reglementaires de la porte : courts, aeres, alignes a gauche */
.gate-points {
  font-family: var(--font-corps);
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 1.6rem 0;
  padding-left: 1.2rem;
}

.gate-points li { margin-bottom: 0.55rem; }
.gate-points li:last-child { margin-bottom: 0; }

.checkbox-container {
  margin: 2rem 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.checkbox-item:last-child { margin-bottom: 0; }

.checkbox-item input[type=checkbox] {
  margin-right: 12px;
  margin-top: 2px;
  transform: scale(1.3);
  accent-color: var(--turquoise);
  cursor: pointer;
}

.checkbox-item label {
  font-family: var(--font-corps);
  font-weight: 400;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
  opacity: 0.95;
}

.buttons-container {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-titres);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  min-width: 140px;
}

.btn-confirm {
  background: var(--turquoise);
  color: var(--bleu);
  border: 2px solid var(--turquoise);
}

.btn-confirm:hover:not(:disabled) {
  background: var(--or);
  border-color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-confirm:disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transform: none;
}

.btn-decline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.disclaimer {
  font-family: var(--font-corps);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
  font-style: italic;
  line-height: 1.4;
}

.access-denied {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 216, 194, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  display: none;
}

.access-denied.show { display: flex; }

.access-denied-content {
  background: linear-gradient(135deg, #000190 0%, #000eb8 50%, #1414FF 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 1, 144, 0.4);
  text-align: center;
  position: relative;
  animation: slideIn 0.3s ease;
  max-width: 480px;
  width: 90%;
}

.access-denied-content h2 {
  font-family: var(--font-titres);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.access-denied-content p {
  font-family: var(--font-corps);
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.95;
}

.access-denied-home {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.8rem;
  border: 2px solid var(--turquoise);
  border-radius: 50px;
  font-family: var(--font-titres);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--turquoise);
  text-decoration: none;
  transition: all 0.3s ease;
}

.access-denied-home:hover {
  background: var(--turquoise);
  color: var(--bleu);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .popup-content { padding: 2rem; margin: 1rem; max-width: 95%; }
  .logo-image { width: 40px; height: 40px; }
  .popup-content h2 { font-size: 1.6rem; margin-bottom: 1rem; }
  .popup-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .checkbox-container { padding: 1rem; margin: 1.5rem 0; }
  .checkbox-item label { font-size: 0.85rem; }
  .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; min-width: 120px; }
  .buttons-container { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  .popup-content { padding: 1.5rem; }
  .logo-image { width: 36px; height: 36px; }
  .popup-content h2 { font-size: 1.4rem; }
  .checkbox-item input[type=checkbox] { transform: scale(1.2); }
  .disclaimer { font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   Bloc Fund : carte turquoise « Omnium Equity » + carte bleue Key Information
   -------------------------------------------------------------------------- */

.page-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  gap: 2rem;
  /* stretch : les deux cartes gardent toujours la meme hauteur, quel que
     soit le nombre de lignes de Key Information */
  align-items: stretch;
}

.fund-description-card {
  max-width: 420px;
  padding: 2.5rem;
  background: var(--turquoise);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(43, 216, 194, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  height: auto; /* stretch du parent = hauteurs egales */
  min-height: 620px;
  order: 1;
  /* Rythme de la carte (proprietaire, 03/10/2026), deux mesures par palier :
     --pad, la marge interieure, IDENTIQUE sur les quatre bords (le m or est
     cadre au ras de son trace, son bas tombe donc a --pad du bord) ;
     --gap, l'ecart titre -> texte -> bouton ; la note suit le bouton a
     0,8 --gap et le m garde au moins 2 --gap au-dessus de lui. */
  --pad: 2.25rem;
  --gap: 1.25rem;
  padding: var(--pad);
}

.fund-description-card > * {
  position: relative;
  z-index: 2;
}

.fund-description-card h2 {
  font-family: var(--font-titres);
  font-weight: 700;
  font-size: 2rem;
  color: var(--bleu);
  margin: 0 0 var(--gap) 0;
  text-align: left;
}

.fund-description-card p {
  font-family: var(--font-corps);
  font-weight: 400;
  font-size: 1rem;
  color: var(--bleu);
  line-height: 1.6;
  margin: 0 0 var(--gap) 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 2px solid var(--or);
  border-radius: 50px;
  font-family: var(--font-titres);
  font-weight: 600;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin: 0;
  width: fit-content;
}
/* Carte etiree a la hauteur du bloc bleu (desktop) : l'espace libre se
   partage a parts egales au-dessus du bouton et au-dessus du m (deux
   marges auto), au lieu de tout s'accumuler sous le bouton - retour du
   proprietaire, 18/11/2026. Sans espace libre (mobile), rien ne bouge. */
.fund-description-card > .download-button { margin-top: auto; }

.download-link-text {
  color: var(--bleu);
  transition: color 0.3s ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  background-color: var(--or);
}

.download-button::before {
  content: "⬇️";
  margin-right: 0.5rem;
  font-size: 1rem;
  color: var(--bleu);
  transition: color 0.3s ease;
}

/* Le m or en bas de carte (fund/index.html), centre (54 % de la carte, 208px au plus), pousse en bas par
   margin-top:auto. */
.fund-description-card > .fund-card-m {
  display: block;
  flex-shrink: 0;
  width: min(51%, 196px);   /* -13 % (proprietaire, 03/10/2026), cadre au ras du trace */
  height: auto;
  margin: auto auto 0 auto;
  padding-top: calc(2 * var(--gap));
  box-sizing: content-box;
  overflow: visible;
  z-index: 1;
}

.fund-container {
  max-width: 580px;
  margin: 0;
  background: linear-gradient(135deg, #000190 0%, #000eb8 50%, #1414FF 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 1, 144, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding-bottom: 1rem;
  flex-grow: 1;
  flex-shrink: 0;
  height: auto; /* stretch du parent = hauteurs egales */
  min-height: 620px;
  order: 2;
}

.fund-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  text-align: left;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.fund-header h1 {
  margin: 0;
  font-size: 2rem;
  font-family: var(--font-titres);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
}

.fund-info-grid {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.fund-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fund-info-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fund-info-row:hover::before { opacity: 1; }

.fund-info-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fund-info-label {
  font-family: var(--font-corps);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.fund-info-value {
  font-family: var(--font-corps);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.fund-info-value.highlight {
  font-family: var(--font-corps);
  color: white;
  font-weight: 400;
}

.fund-isin-value { display: flex; align-items: center; gap: 0.6rem; }
.fund-isin-copy {
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.fund-isin-copy:hover, .fund-isin-copy:focus-visible { background: rgba(255, 255, 255, 0.2); }

.fund-accent-row {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fund-accent-row .fund-info-label { color: white; }

/* Animation d'apparition des lignes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fund-info-row {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}
.fund-info-row:nth-child(1) { animation-delay: 0.1s; }
.fund-info-row:nth-child(2) { animation-delay: 0.2s; }
.fund-info-row:nth-child(3) { animation-delay: 0.3s; }
.fund-info-row:nth-child(4) { animation-delay: 0.4s; }
.fund-info-row:nth-child(5) { animation-delay: 0.5s; }
.fund-info-row:nth-child(6) { animation-delay: 0.6s; }
.fund-info-row:nth-child(7) { animation-delay: 0.7s; }
.fund-info-row:nth-child(8) { animation-delay: 0.8s; }
.fund-info-row:nth-child(9) { animation-delay: 0.9s; }
.fund-info-row:nth-child(10) { animation-delay: 1s; }
.fund-info-row:nth-child(11) { animation-delay: 1.1s; }
.fund-info-row:nth-child(12) { animation-delay: 1.2s; }

/* Mode paysage mobile */
@media screen and (max-height: 600px) and (orientation: landscape) and (max-width: 900px) {
  .page-content-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 800px;
  }

  .fund-description-card {
    flex: 1;
    max-width: none;
    --pad: 1.5rem;
    --gap: 0.75rem;
    min-height: 0;
  }

  .fund-container {
    flex: 1;
    max-width: none;
    min-height: auto;
    padding-bottom: 0.5rem;
    order: unset;
  }

  .fund-description-card h2 {
    font-size: 1.4rem;
    text-align: left;
  }

  .fund-description-card p { font-size: 0.8rem; }

  .download-button {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .fund-header {
    padding: 1.2rem;
    text-align: left;
  }

  .fund-header h1 { font-size: 1.4rem; }

  .fund-info-grid {
    padding: 1rem 0.5rem;
    gap: 0.3rem;
  }

  .fund-info-row { padding: 0.4rem 0.6rem; }

  .fund-info-label, .fund-info-value {
    font-size: 0.8rem;
    line-height: 1.1;
  }
}

@media (max-width: 1024px) {
  .page-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
  }
  .fund-container,
  .fund-description-card {
    max-width: 100%;
    width: 100%;
    min-height: auto;
    height: auto;
    order: unset;
  }

  .fund-description-card h2 { text-align: left; }

}

@media (max-width: 768px) {
  .page-content-wrapper { padding: 1rem; }

  .fund-container {
    border-radius: 16px;
    padding-bottom: 0.5rem;
  }

  .fund-header {
    padding: 1.5rem;
    text-align: left;
  }

  .fund-header h1 { font-size: 1.6rem; }

  .fund-header p { font-size: 1rem; }

  .fund-info-grid {
    padding: 1rem 0.5rem;
    gap: 0.4rem;
  }

  .fund-info-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
  }

  .fund-info-label, .fund-info-value {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .fund-description-card {
    --pad: 2rem;
    --gap: 1.25rem;
  }
  .fund-description-card h2 {
    font-size: 1.6rem;
    text-align: left;
  }
  .fund-description-card p { font-size: 0.9rem; }

  .download-button {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    border: 2px solid var(--or);
    width: fit-content;
  }

  .download-button:hover {
    background-color: var(--or);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  }
}

@media (max-width: 480px) {
  .fund-header h1 { font-size: 1.4rem; }

  .fund-header p { font-size: 0.9rem; }

  .fund-info-grid {
    padding: 0.8rem 0.4rem;
    gap: 0.4rem;
  }

  /* Une ligne par rubrique (proprietaire, 03/10/2026) : une seule colonne
     de libelles pour tout le tableau, a la largeur du plus long (subgrid :
     toutes les valeurs partent du meme bord), la valeur prend le reste, et
     l'ecart entre les deux colonnes se resserre. */
  .fund-info-grid { grid-template-columns: max-content minmax(0, 1fr); }
  .fund-info-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    column-gap: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .fund-info-label, .fund-info-value {
    font-size: clamp(0.65rem, 2.6vw, 0.85rem);
    line-height: 1.2;
    white-space: nowrap;
  }
  /* Une valeur trop longue pour l'ecran (iPhone SE : « UI efa S.A.
     (Universal Investment) ») passe a la ligne au lieu d'etre coupee ;
     le libelle, lui, reste sur une ligne (18/11/2026). */
  .fund-info-value { white-space: normal; overflow-wrap: anywhere; }
  .fund-info-value.fund-isin-value { white-space: nowrap; }
  .fund-isin-value { gap: 0.3rem; }
  .fund-isin-copy { font-size: 0.7rem; padding: 0.1rem 0.25rem; }

  .fund-info-label { letter-spacing: 0.2px; }

  .fund-description-card {
    --pad: 1.5rem;
    --gap: 1rem;
  }
  .fund-description-card h2 {
    font-size: 1.4rem;
    text-align: left;
  }
  .fund-description-card p { font-size: 0.85rem; }

  .download-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    border: 2px solid var(--or);
    width: fit-content;
  }

  .download-button:hover {
    background-color: var(--or);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Camembert « Current split by sector »
   -------------------------------------------------------------------------- */

.investment-chart-wrapper {
  font-family: var(--font-corps);
  background: transparent;
  border-radius: 15px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#investment-distribution,
.investment-chart-box {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none;
  padding: 10px 0 0 0;
}

.allocation-chart-title {
  font-family: var(--font-corps);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--bleu);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 0;
}

.investment-chart-container {
  width: 100%;
  height: 380px;
  max-width: 400px;
  margin: 0 auto 10px auto;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  box-sizing: border-box;
}

.investment-chart-container.visible { opacity: 1; }

.investment-arc {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.investment-value-label {
  font-weight: 700;
  font-family: var(--font-corps);
  transition: all 0.3s ease;
}

.investment-category-label {
  font-family: var(--font-corps);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.investment-arc:hover .investment-value-label { font-weight: 800; }
.investment-arc:hover .investment-category-label { font-weight: 500; }

.investment-chart-container svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

@media (max-width: 768px) {
  .investment-chart-wrapper { padding: 15px; margin: 0; border-radius: 15px; }
  .allocation-chart-title { font-size: 1.4rem; font-weight: 700; text-align: left; }
  .investment-chart-container { height: 330px; max-width: 100%; }
}

@media (max-width: 480px) {
  .investment-chart-wrapper { padding: 15px; }
  .investment-chart-container { height: 280px; }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .investment-chart-wrapper { padding: 15px; }
  .investment-chart-container { height: 290px; }
}

/* --------------------------------------------------------------------------
   Chart NAV « 2026 performance (Class A) »
   -------------------------------------------------------------------------- */

.nav-chart-wrapper {
  background: transparent;
  border-radius: 15px;
  padding: 10px;
  max-width: 1200px;
  margin: 15px auto 0 auto;
  position: relative;
  box-sizing: border-box;
  font-family: var(--font-corps);
}

.chart-title {
  font-family: var(--font-corps) !important;
  font-weight: 800 !important;
  font-size: 2.2rem !important;
  color: var(--bleu) !important;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-summary {
  display: flex;
  align-items: baseline;
  gap: clamp(1.25rem, 5vw, 4rem);
  margin: 1rem 0 0;
  color: var(--bleu);
}
.nav-summary[hidden] { display: none; }
.nav-summary > div { display: grid; gap: 0.2rem; }
.nav-summary-label { color: var(--gris-axe); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-summary strong { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 400; }
.nav-summary strong.negative { color: #ad3143; }

.nav-chart-container {
  width: 100%;
  height: 380px;
  position: relative;
  background: transparent;
  touch-action: manipulation;
}

.chart-footnote {
  text-align: center;
  padding: 10px;
  color: #666;
  font-style: italic;
  font-size: 14px;
}

.line-path {
  fill: none;
  stroke-width: 3;
  stroke: url(#lineGradient);
  filter: drop-shadow(0 2px 4px rgba(0, 1, 144, 0.3));
}

.area-path {
  fill: url(#areaGradient);
  opacity: 0.3;
}

.dot {
  fill: #20B2AA;
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
}

.dot-hitzone {
  fill: transparent;
  cursor: pointer;
}

.grid-line {
  stroke: var(--gris-trait);
  stroke-width: 0.3;
}

.axis-text {
  fill: var(--gris-axe);
  font-size: 13px;
  font-family: var(--font-corps);
}

.axis path, .axis line { display: none; }
/* Reperes de mois de l'axe X du chart NAV (le mois commence ici) */
.x-tick { stroke: var(--gris-axe); stroke-width: 1; opacity: 0.5; }

.tooltip {
  position: absolute;
  background: linear-gradient(135deg, rgba(20, 20, 255, 0.95) 0%, rgba(0, 1, 144, 0.95) 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(20, 20, 255, 0.25);
  z-index: 1000;
  min-width: 110px;
  text-align: center;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.tooltip.visible { opacity: 1; }
.tooltip-date { font-size: 11px; margin-bottom: 3px; }
.tooltip-value { font-size: 14px; font-weight: 700; }

@media (max-width: 768px) {
  .chart-title { font-size: 1.4rem !important; }
  .nav-summary { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
  .nav-summary-label { font-size: 0.7rem; }
  .nav-chart-container { height: 300px; }
  .axis-text { font-size: 11px; }
  .tooltip {
    padding: 6px 9px;
    font-size: 11px;
    min-width: 85px;
  }
  .tooltip-date { font-size: 9px; }
  .tooltip-value { font-size: 12px; }
}

/* Mentions permanentes en bas de la page Fund (sorties de la porte) */
/* Mentions legales : cadre discret en bas de page (03/10/2026), fond a
   peine teinte, filet fin, defilement interne si le texte depasse. */
.fund-legal-note {
  box-sizing: border-box;
  max-width: 860px;
  margin: 56px auto 0 auto;
  padding: 18px 22px 16px 22px;
  background: rgba(0, 1, 144, 0.025);
  border: 1px solid rgba(0, 1, 144, 0.09);
  border-radius: 14px;
}
.fund-legal-note p.fund-legal-title {
  margin: 0 0 10px 0;
  font-family: var(--font-titres);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu);
  opacity: 0.55;
}
.fund-legal-body {
  max-height: 128px;
  overflow-y: auto;
  padding-right: 8px;
  font-family: var(--font-corps);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #5f6380;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 1, 144, 0.22) transparent;
}
.fund-legal-body::-webkit-scrollbar { width: 4px; }
.fund-legal-body::-webkit-scrollbar-thumb { background: rgba(0, 1, 144, 0.22); border-radius: 4px; }
.fund-legal-body:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; border-radius: 4px; }
.fund-legal-body p { margin: 0 0 8px 0; }
.fund-legal-body p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .fund-legal-note { margin: 40px 16px 0 16px; padding: 16px 18px 14px 18px; }
  .fund-legal-body { max-height: 112px; }
}

/* Telephones etroits (< 400px) : un cran de plus pour garder une ligne par
   rubrique (03/10/2026). */
@media (max-width: 399px) {
  .fund-info-grid { padding: 0.8rem 0.3rem; }
  .fund-info-row { column-gap: 0.7rem; padding: 0.4rem 0.5rem; }
  .fund-info-label, .fund-info-value { font-size: 0.78rem; }
  .fund-info-label { letter-spacing: 0; }
}
/* Fondu bas tant qu'il reste du texte a lire (classe posee par fund-gate.js). */
.fund-legal-body.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* Gouttiere commune a tout le site (03/10/2026) : 20px de chaque cote en
   mobile, contenu de 1160px au plus sur ordinateur - les bords du hero de
   l'accueil. Place en fin de feuille : l'emporte sur les paliers plus haut. */
.page-content-wrapper,
.investment-chart-wrapper,
.nav-chart-wrapper {
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
/* Ordinateur : la paire de cartes occupe toute la largeur de contenu, comme
   les graphiques dessous (Key Information prend le reste). */
@media (min-width: 1025px) {
  .fund-container { flex: 1 1 auto; max-width: none; }
}
@media (max-width: 768px) {
  .fund-legal-note { margin-left: 20px; margin-right: 20px; }
}
