/*
  ============================================================
  STYLE DU SITE — VERSION V4 MODIFIÉE
  ============================================================

  🔧 RÉGLAGES FACILES — MODIFIER ICI EN PRIORITÉ
  ------------------------------------------------------------
  Tu peux changer les tailles de police du site ici, sans
  chercher dans tout le fichier.

  Exemple :
  --home-title-size: 60px;       = grand titre accueil
  --body-size: 17px;             = texte courant
  --card-title-size: 21px;       = titres des cartes
  --method-title-size: 30px;     = titres des blocs Méthode
  --portfolio-name-size: 11px;   = nom du portefeuille dans le menu
  --nav-size: 13px;              = onglets du menu
  --eyebrow-size: 14px;           = petits titres de section
  --method-hero-top: 54px;        = espace haut de la page Méthode
  --method-section-top: 38px;     = espace avant les blocs Méthode
  ============================================================
*/

:root {
  /* COULEURS */
  --navy: #061b49;
  --navy-2: #0b2f6b;
  --blue: #1d5aa6;
  --blue-light: #eaf1f8;
  --red: #c91616;
  --green: #1b9a63;
  --text: #172033;
  --muted: #6c7482;
  --line: #d9dee6;
  --soft: #f5f7fa;
  --white: #ffffff;
  --max: 1180px;

  /* 🔧 TAILLES DE POLICE */
  --body-size: 18px;
  --small-size: 14px;
  --eyebrow-size: 14px;
  --nav-size: 14px;
  --brand-size: 18px;
  --portfolio-name-size: 14px;
  --home-title-size: clamp(40px, 6vw, 72px);
  --page-title-size: clamp(36px, 5vw, 58px);
  --section-title-size: 26px;
  --card-title-size: 22px;
  --kpi-value-size: 26px;
  --method-title-size: 30px;
  --method-text-size: 18px;
  --method-quote-size: 16px;
  --ratio-value-size: 24px;
  --risk-number-size: 34px;

  /* 🔧 ESPACEMENTS */
  --method-hero-top: 54px;
  --method-hero-bottom: 38px;
  --method-section-top: 38px;
  --method-item-spacing: 42px;
  --report-kicker-size: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--body-size);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }

/* ============================================================
   MENU
   ============================================================ */
.site-header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 24px;
}
.brand { display:flex; flex-direction:column; line-height:1.1; }
.brand strong { font-size:var(--brand-size); letter-spacing:.08em; text-transform:uppercase; }
.brand span { font-size:var(--portfolio-name-size); opacity:.75; margin-top:5px; }
.nav { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.nav a { padding:10px 13px; font-size:var(--nav-size); opacity:.82; border-radius:3px; transition:.2s ease; }
.nav a:hover { opacity:1; background:rgba(255,255,255,.08); }
.nav a.active { opacity:1; background:rgba(255,255,255,.16); box-shadow:inset 0 -2px 0 #fff; }
.nav .nav-cta { background:white; color:var(--navy); opacity:1; font-weight:700; margin-left:5px; }

/* ============================================================
   ACCUEIL — HERO IMAGE
   ============================================================ */

   .hero-home {
    position: relative;
    min-height: calc(100vh - 72px);
    padding: 0;
    border-bottom: 1px solid var(--line);
  
    background-image: url("../images/hero-finance.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  
    display: flex;
    align-items: center;
  }
  
  .hero-home-content {
    width: 100%;
    display: flex;
    align-items: center;
  }
  
  .hero-home-text {
    width: 52%;
    max-width: 650px;
    padding: 70px 0;
    color: white;
  }
  
  .hero-home .eyebrow {
    margin: 0 0 20px;
    color: #4d9cff;
    font-size: var(--eyebrow-size);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  
  .home-title {
    margin: 0 0 24px;
    color: white;
    font-size: clamp(36px, 5vw, 50px);
    line-height: 1.03;
    letter-spacing: -.04em;
    font-weight: 700;
  }
  
  .home-title em {
    font-style: normal;
    color: #2d83f4;
  }
  
  .home-quote {
    margin: 0 0 4px;
    max-width: 620px;
    color: rgba(255,255,255,.88);
    font-size: 20px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
  }
  
  .home-quote-author {
    margin: 0 0 32px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 500;
    margin-left: 400px;
    margin-top: -20px;
  }
  
  .home-intro {
    max-width: 600px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.55;
  }
  
  .hero-home .hero-actions {
    margin-top: 0;
  }
  
  .hero-home .btn {
    margin-top: 0;
  }
  
  .hero-home .btn.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,.75);
  }
  
  
  /* ============================================================
     ACCUEIL — MOBILE
     ============================================================ */
  
  @media (max-width: 900px) {
  
    .hero-home {
      min-height: 720px;
      background-position: 65% center;
    }
  
    .hero-home-text {
      width: 70%;
      max-width: 600px;
    }
  
  }
  
  @media (max-width: 700px) {
  
    .hero-home {
      min-height: 760px;
      background-position: 68% center;
    }
  
    .hero-home-text {
      width: 100%;
      padding: 45px 0;
    }
  
    .home-title {
      font-size: clamp(38px, 10vw, 52px);
    }
  
    .home-quote {
      font-size: 17px;
    }
  
    .home-intro {
      font-size: 16px;
    }
  
  }

/* ============================================================
   STRUCTURE GÉNÉRALE
   ============================================================ */
.container { max-width:var(--max); margin:auto; padding:0 24px; }
.hero { padding:82px 0 64px; border-bottom:1px solid var(--line); }
.eyebrow,.kicker { text-transform:uppercase; letter-spacing:.12em; font-size:var(--eyebrow-size); font-weight:700; color:var(--blue); }
.page-head { padding:58px 0 34px; }
.page-head h1 { margin:0 0 8px; font-size:var(--page-title-size); line-height:1.05; letter-spacing:-.03em; color:var(--navy); }
.page-head p { color:var(--muted); margin:0; }
h2,h3 { color:var(--navy); margin-top:0; }
.section { padding:64px 0; }
.section-title { margin-bottom:24px; }
.section-title h2 { font-size:var(--section-title-size); margin:0 0 6px; }
.section-title p { color:var(--muted); margin:0; }

/* ============================================================
   BOUTONS / KPI
   ============================================================ */
.btn { display:inline-flex; align-items:center; padding:12px 17px; background:var(--navy); color:white; font-weight:700; font-size:13px; border-radius:2px; margin:8px 8px 0 0; }
.btn.secondary { background:white; color:var(--navy); border:1px solid var(--navy); }
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.kpi { padding:22px; border-right:1px solid var(--line); }
.kpi:last-child { border-right:0; }
.kpi span { display:block; color:var(--muted); font-size:var(--small-size); margin-bottom:7px; }
.kpi strong { display:block; color:var(--navy); font-size:var(--kpi-value-size); letter-spacing:-.02em; }

/* ============================================================
   CARTES
   ============================================================ */
.card { border:1px solid var(--line); background:white; }
.card-header { padding:20px 22px 0; }
.card-header h2 { font-size:var(--card-title-size); margin-bottom:4px; }
.card-header p { color:var(--muted); font-size:13px; margin:0; }
.card-body { padding:20px 22px 24px; }
.chart-card { border:1px solid var(--line); padding:22px; background:white; }

/* ============================================================
   GRAPHIQUE DE PERFORMANCE
   ============================================================ */
.chart-legend { display:flex; gap:25px; font-size:12px; margin-bottom:8px; color:var(--muted); }
.legend-dot { width:9px; height:9px; display:inline-block; border-radius:50%; margin-right:5px; }
.portfolio-dot { background:var(--navy-2); }
.benchmark-dot { background:var(--red); }
.chart-wrap svg { width:100%; height:auto; display:block; }
.chart-grid { stroke:#dfe3e9; stroke-width:1; }
.chart-zero { stroke:#9aa2ad; stroke-width:1; }
.portfolio-line { fill:none; stroke:var(--navy-2); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.benchmark-line { fill:none; stroke:var(--red); stroke-width:3.5; stroke-linecap:round; stroke-linejoin:round; }
.portfolio-point { fill:var(--navy-2); }
.benchmark-point { fill:var(--red); }
.chart-label { fill:#727b88; font-size:11px; }
.final-value { font-size:15px; font-weight:700; }
.portfolio-value { fill:var(--navy-2); }
.benchmark-value { fill:var(--red); }

/* ============================================================
   TABLEAU ANNUEL
   ============================================================ */
.annual-table { margin-top: 18px; border:1px solid var(--line); background:white; overflow-x:auto; }
.annual-row { display:grid; grid-template-columns:1.15fr repeat(5,1fr); border-top:1px solid var(--line); min-height:54px; align-items:center; }
.annual-row > * { padding:12px 15px; font-size:13px; }
.annual-row > * + * { border-left:1px solid var(--line); }
.annual-head { border-top:0; background:var(--soft); color:var(--muted); font-weight:700; }
.positive { color:var(--green); }
.negative { color:var(--red); }
.note { margin-top:12px; font-size:12px; color:var(--muted); }

/* ============================================================
   RATIOS CLÉS
   ============================================================ */
.key-ratios { display:grid; grid-template-columns:repeat(5,1fr); border:1px solid var(--line); background:white; }
.ratio-card { min-height:120px; padding:20px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:space-between; }
.ratio-card:last-child { border-right:0; }
.ratio-card span { color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.ratio-card strong { font-size:var(--ratio-value-size); color:var(--navy); line-height:1.1; }
.ratio-empty { color:#9aa2ad !important; font-size:16px !important; font-weight:600; }
.ratio-filled { color:var(--navy); }

/* ============================================================
   GÉOGRAPHIE + RISQUE
   ============================================================ */
.portfolio-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; }
.donut-wrap { display:grid; grid-template-columns:210px 1fr; gap:25px; align-items:center; }
.donut-wrap svg { width:210px; height:210px; transform:rotate(-90deg); }
.donut-base,.geo-segment { fill:none; stroke-width:28; }
.donut-base { stroke:#edf0f4; }
.geo-segment { stroke-linecap:butt; }
.donut-center { fill:white; }
.donut-total,.donut-caption { transform:rotate(90deg); transform-origin:110px 110px; fill:var(--navy); }
.donut-total { font-size:20px; font-weight:700; }
.donut-caption { font-size:9px; letter-spacing:.12em; fill:var(--muted); }
.geo-legend { display:grid; gap:12px; }
.geo-item { display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:9px; font-size:13px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.geo-dot { width:9px; height:9px; border-radius:50%; }
.geo-item strong { color:var(--navy); }
.risk-gauge { text-align:center; padding:8px 15px 15px; }
.risk-gauge svg { width:100%; max-width:430px; height:auto; display:block; margin:auto; }
.risk-track,.risk-progress { fill:none; stroke-width:20; stroke-linecap:butt; }
.risk-track { stroke:#e1e4e9; }
.risk-progress { stroke:var(--green); }
.risk-number { fill:var(--navy); font-size:var(--risk-number-size); font-weight:700; }


/* ============================================================
   MÉTHODE — STRUCTURE INSPIRÉE DE LA V2
   ============================================================ */
.method-hero { padding:var(--method-hero-top) 0 var(--method-hero-bottom); border-bottom:1px solid var(--line); }
.method-hero h1 { font-size:var(--page-title-size); line-height:1.02; letter-spacing:-.04em; margin:0 0 20px; color:var(--navy); }
.method-hero h1 em { font-style:normal; color:var(--blue); }
.hero-copy { max-width:1050px; color:var(--muted); font-size:var(--method-text-size); line-height:1.55; margin:0 0 10px; }
.hero-copy.small { font-size:16px; }
.method-section { padding-top:var(--method-section-top); }
.method-list { border-top:1px solid var(--line); }
.method-item { display:grid; grid-template-columns:100px 1fr; gap:30px; padding:var(--method-item-spacing) 0; border-bottom:1px solid var(--line); }
.pillar-number { color:var(--blue); font-size:13px; font-weight:700; letter-spacing:.12em; padding-top:7px; }
.method-item h2 { font-size:var(--method-title-size); line-height:1.15; margin:0 0 14px; letter-spacing:-.025em; }
.method-item p { max-width:950px; font-size:var(--method-text-size); color:var(--text); margin:0 0 22px; }
.method-item blockquote { margin:0; padding:16px 20px; border-left:3px solid var(--blue); background:var(--soft); color:var(--navy); font-size:var(--method-quote-size); font-weight:600; }
.principles-end { padding-top:35px; }
.principles-band { display:grid; grid-template-columns:1.2fr .8fr; gap:35px; border:1px solid var(--line); padding:35px; background:var(--soft); }
.principles-band h2 { font-size:30px; margin:0; line-height:1.15; }
.mini-principles { display:flex; flex-wrap:wrap; gap:9px; align-content:center; }
.mini-principles span { border:1px solid var(--line); background:white; padding:9px 12px; font-size:12px; font-weight:700; color:var(--navy); }

/* ============================================================
   RAPPORTS
   ============================================================ */
.report-card { border:1px solid var(--line); padding:22px; display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:12px; }
.report-card h3 { margin:4px 0 0; }
.report-kicker { color:var(--muted); text-transform:uppercase; letter-spacing:.1em; font-size:var(--report-kicker-size); font-weight:700; }
.report-card a { color:var(--navy); font-weight:700; font-size:13px; white-space:nowrap; }

/* ============================================================
   ACCUEIL — CARTES DE MÉTHODE
   ============================================================ */
.method-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.method-card { background:white; padding:30px; }
.method-card .number { color:var(--blue); font-size:12px; font-weight:700; letter-spacing:.1em; }
.method-card h3 { margin:10px 0 8px; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.footer { margin-top:60px; padding:32px 24px 45px; background:var(--navy); color:white; }
.footer-inner { max-width:var(--max); margin:auto; font-size:12px; }
.footer-links { display:flex; gap:20px; margin-top:10px; }
.footer a { opacity:.85; }
.footer a:hover { opacity:1; }
.footer p { color:rgba(255,255,255,.62); max-width:850px; margin:20px 0 0; font-size:11px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width:900px) {
  .hero-grid,.two-col,.portfolio-grid { grid-template-columns:1fr; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
  .kpi:nth-child(2) { border-right:0; }
  .kpi:nth-child(n+3) { border-top:1px solid var(--line); }
  .donut-wrap { grid-template-columns:1fr; justify-items:center; }
  .geo-legend { width:100%; }
  .key-ratios { grid-template-columns:repeat(2,1fr); }
  .ratio-card:nth-child(2n) { border-right:0; }
  .ratio-card:nth-child(n+3) { border-top:1px solid var(--line); }
  .method-item { grid-template-columns:60px 1fr; gap:20px; }
  .principles-band { grid-template-columns:1fr; }
}

@media (max-width:700px) {
  .header-inner { align-items:flex-start; flex-direction:column; padding-top:15px; padding-bottom:15px; }
  .nav { justify-content:flex-start; }
  .nav a { padding:7px 8px; }
  .hero { padding-top:55px; }
  .annual-table { overflow-x:auto; }
  .annual-row { min-width:760px; }
  .chart-card { padding:12px; }
  .performance-item { grid-template-columns:1fr 55px 20px 80px; }
  .report-card { align-items:flex-start; flex-direction:column; }
  .key-ratios { grid-template-columns:1fr; }
  .ratio-card { border-right:0; border-top:1px solid var(--line); }
  .ratio-card:first-child { border-top:0; }
  .method-item { grid-template-columns:1fr; gap:8px; padding:34px 0; }
  .method-item h2 { font-size:26px; }
  .principles-band { padding:25px; }
}
/* ============================================================
   🔧 ACCUEIL — POSITIONNEMENT DU HAUT DE PAGE
   Ces réglages passent volontairement après .hero
   ============================================================ */

   .hero-home {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  
  .hero-home .eyebrow {
    text-align: left;
    margin-top: 0;
    margin-bottom: 18px;
  }
  
  .home-quote {
    margin: 0 0 30px;
    text-align: center;
    max-width: 100%;
  }
  
  .hero-content-grid {
    margin-top: 0;
  }
  .page-update {
    margin-top: 18px;
    margin-bottom: -16px;
    padding-top: 8px;
    padding-right: 10px;
    border-top: 1px solid var(--line);
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }
  .hero-home {
    background-image:
      linear-gradient(rgba(4, 18, 45, .55), rgba(4, 18, 45, .55)),
      url("../images/hero-finance.jpg");
    background-size: cover;
    background-position: center;
  }

  /* ============================================================
   CORRECTION — FOOTER EN BAS DE PAGE
   ============================================================ */

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}