/* ==========================================================================
   Omnium Capital Management — styles communs a toutes les pages
   Charte : bleu #000190 / #1414FF, turquoise #2BD8C2, or #FFD700
   Typo : Poppins (titres, nav), Quattrocento Sans (corps, charts)
   ========================================================================== */

:root {
  --bleu: #000190;
  --bleu-vif: #1414FF;
  --bleu-degrade: linear-gradient(135deg, #000190 0%, #1414FF 100%);
  --turquoise: #2BD8C2;
  --turquoise-fonce: #1AC4B0;
  --or: #FFD700;
  --fond: #f0f3fa;
  --gris-axe: #888;
  --gris-trait: #d0d0d0;
  --font-titres: 'Poppins', sans-serif;
  --font-corps: 'Quattrocento Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  padding: 0;
  /* Les coins des elements tournes (orbite du hero) comptent dans la zone
     de defilement meme invisibles : on cadenasse l'axe horizontal. */
  overflow-x: clip;
  background-color: var(--fond);
  font-family: var(--font-corps);
  color: #1a1a2e;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header (sticky) — repris du prototype de Jeremie (Next/Tailwind, 01/10/2026)
   Logo 26px, menu Perf / Fund / Team ; fond --fond
   translucide floute ; compact (56px) des que la page defile ; filet de
   progression de lecture turquoise -> bleu sous le header ; burger < 768px.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 243, 250, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(240, 243, 250, 0.9);
  border-bottom-color: rgba(0, 1, 144, 0.14);
  box-shadow: 0 8px 30px -12px rgba(0, 1, 144, 0.18);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .site-header-inner { height: 56px; }

.site-logo {
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-logo:hover { transform: scale(1.025); opacity: 0.85; }

.site-logo img {
  height: 26px;
  width: auto;
  display: block;
  user-select: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  font-family: var(--font-titres);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(0, 1, 144, 0.6);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.site-nav a:hover { color: var(--bleu); }

/* Soulignement : trait turquoise de 16px qui pousse au survol ; 20px et
   2px d'epaisseur sur la page courante. */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  margin: 0 auto;
  height: 1px;
  width: 0;
  border-radius: 999px;
  background: var(--turquoise);
  transition: width 0.3s ease;
}

.site-nav a:hover::after { width: 16px; }

.site-nav a.active { color: var(--bleu); }

.site-nav a.active::after { height: 2px; width: 20px; }

/* « Home » figure dans le menu sur toutes les pages SAUF l'accueil (ou il
   serait la page courante, et ou le logo suffit) - demande du 02/10/2026.
   Le panneau mobile, lui, le montre partout, point turquoise compris. */
.site-nav a.nav-home.active { display: none; }

/* Filet de progression de lecture (largeur = part de la page defilee). */
.site-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--turquoise), var(--bleu-vif));
  transition: width 0.15s linear;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--bleu);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Ordinateur : header un cran plus present que la mesure du prototype
   (02/10/2026), puis deux fois +5 % (proprietaire, 03/10/2026) - 88px
   (70px compact), logo 36px, menu Poppins 500 a 1.16rem. Le mobile garde
   la mesure du prototype (72/56px, logo 26px). */
@media (min-width: 768px) {
  .site-header-inner { padding: 0 40px; height: 88px; }
  .site-header.is-scrolled .site-header-inner { height: 70px; }
  .site-logo img { height: 36px; }
  .site-nav { gap: 44px; }
  .site-nav a { font-size: 1.16rem; }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  /* Panneau mobile : liste pleine largeur sous le header, papier opaque
     (le flou imbrique dans celui du header ne s'applique pas : le contenu
     transparaissait), un filet par ligne, point turquoise sur la page courante. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    background: var(--fond);
    border-top: 1px solid transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s ease, opacity 0.28s ease, border-color 0.28s ease;
  }

  .site-nav.open {
    max-height: 240px;
    opacity: 1;
    padding: 16px 24px;
    border-top-color: rgba(0, 1, 144, 0.14);
    box-shadow: 0 18px 30px -18px rgba(0, 1, 144, 0.28);
  }

  /* Lignes de 28px (hauteur de ligne seule, sans marge verticale), filet
     sous le texte seulement - la mesure du prototype : 145px pour quatre
     entrees. */
  .site-nav a.nav-home,
  .site-nav a.nav-home.active { display: block; }

  .site-nav a {
    align-self: flex-start;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 28px;
    color: rgba(0, 1, 144, 0.7);
    padding: 0;
    border-bottom: 1px solid rgba(0, 1, 144, 0.07);
  }

  .site-nav a::after { display: none; }

  .site-nav a.active { color: var(--bleu); }

  .site-nav a.active::after {
    content: "\2022";
    display: inline;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0 8px;
    background: none;
    color: var(--turquoise);
  }
}

/* --------------------------------------------------------------------------
   Signature d'entree (prototype de Jeremie) : un voile couleur de fond, le
   m qui s'ecrit sur son fantome avec une lueur, un filet, puis le voile
   se retire vers le haut et la page apparait. Chronologie reprise du
   composant d'origine (1,26 s au total). Rien en mouvement reduit.
   -------------------------------------------------------------------------- */

.route-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: var(--fond);
  clip-path: inset(0 0 0 0);
  animation: route-intro-wipe 1.26s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.route-intro-glow {
  position: absolute;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background: rgba(43, 216, 194, 0.1);
  filter: blur(64px);
  opacity: 0;
  transform: scale(0.72);
  animation: route-intro-glow 1.08s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.route-intro-mark {
  position: relative;
  width: 112px;
  opacity: 0;
  transform: scale(0.86);
  animation: route-intro-mark 1.14s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.route-intro-ghost { display: block; width: 100%; opacity: 0.15; }

.route-intro-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: route-intro-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.route-intro-m {
  display: block;
  width: 100%;
  filter: drop-shadow(0 12px 30px rgba(43, 216, 194, 0.28));
}

.route-intro-underline {
  position: absolute;
  left: 50%;
  bottom: -16px;
  height: 1px;
  width: 0;
  transform: translateX(-50%);
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(43, 216, 194, 0.55), transparent);
  animation: route-intro-underline 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.route-intro-hairline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
  animation: route-intro-hairline 1.02s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* La page arrive sous le voile qui se retire (opacite seule : une
   transformation sur <main> casserait les elements fixes de la porte Fund). */
main { animation: route-intro-content 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both; }

@keyframes route-intro-wipe {
  0%, 64% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}

@keyframes route-intro-glow {
  0% { opacity: 0; transform: scale(0.72); }
  40% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.16); }
}

@keyframes route-intro-mark {
  0% { opacity: 0; transform: scale(0.86); }
  18% { opacity: 1; transform: scale(1); }
  79% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.045); }
}

@keyframes route-intro-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes route-intro-underline {
  0% { width: 0; opacity: 0; }
  50% { opacity: 1; }
  100% { width: 72%; opacity: 0.55; }
}

@keyframes route-intro-hairline {
  0% { transform: scaleX(0); opacity: 0; }
  68% { transform: scaleX(0.68); opacity: 0.85; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes route-intro-content {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 640px) {
  .route-intro-glow { width: 288px; height: 288px; }
  .route-intro-mark { width: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-intro { display: none; }
  main { animation: none; }
}

/* --------------------------------------------------------------------------
   Footer — fond bleu, logo baseline, adresse, contact
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bleu);
  color: #fff;
  text-align: center;
  padding: 26px 20px 18px 20px;
  margin-top: 60px;
}


.site-footer p {
  font-family: var(--font-corps);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a {
  color: var(--turquoise);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .copyright {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Chrome partage des sections de graphiques (titres, boutons de periode)
   Convention reprise des blocs d'origine : titre majuscule + trait degrade.
   -------------------------------------------------------------------------- */

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

.time-btn {
  font-family: var(--font-corps);
  padding: 10px 16px;
  border: 1.5px solid var(--gris-trait);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  min-width: 65px;
  transition: all 0.25s ease;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.time-btn.active {
  background: var(--bleu-degrade);
  color: white;
  border-color: var(--bleu);
  box-shadow: 0 2px 6px rgba(0, 1, 144, 0.2);
  transform: translateY(-0.5px);
}

@media (hover: hover) {
  .time-btn:not(.active):hover {
    background: var(--turquoise);
    color: #000;
    border-color: var(--turquoise);
    box-shadow: 0 2px 6px rgba(43, 216, 194, 0.25);
    transform: translateY(-0.5px);
  }
}

@media (max-width: 768px) {
  .chart-section-title { font-size: 1.4rem; font-weight: 700; }
}
