/*
Theme Name: NGFI Advisory
Author: NGFI Advisory
Description: Thème sur mesure — refonte 2026 (charte NG Finance).
Version: 1.0
Requires at least: 6.0
*/


  :root {
    /* NG Finance brand book codes */
    --navy: #0B2143;
    --navy-2: #0E2A54;
    --navy-deep: #071834;
    --red: #C8102E;
    --red-2: #A50E26;
    --red-br: #E0223E;
    --blue: #2E6BB0;
    --slate: #8A94A6;

    --paper: #FFFFFF;
    --gray: #EFEFF1;
    --gray-2: #E4E5E9;
    --ink: #1A2438;
    --muted: #5C6779;
    --line: rgba(11, 33, 67, 0.14);
    --line-2: rgba(11, 33, 67, 0.07);

    --bg: var(--paper); --fg: var(--ink); --accent: var(--red);
    --surface: var(--gray); --surface-2: var(--gray-2);
    --on-navy: #EAF0F8; --on-navy-muted: #9CB0CD;

    --sans: "Poppins", "Century Gothic", "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 1180px; --gutter: clamp(20px, 5vw, 60px);
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #0A1526; --fg: #E9EEF6; --muted: #98A6BC; --surface: #10203A; --surface-2: #0C1A30;
      --line: rgba(185,205,235,.16); --line-2: rgba(185,205,235,.08); --gray: #10203A; --gray-2: #0C1A30;
      --accent: #E23E56; --navy: #0A1A32; --navy-2: #0E2748; }
  }
  :root[data-theme="dark"] { --bg: #0A1526; --fg: #E9EEF6; --muted: #98A6BC; --surface: #10203A; --surface-2: #0C1A30;
    --line: rgba(185,205,235,.16); --line-2: rgba(185,205,235,.08); --gray: #10203A; --gray-2: #0C1A30;
    --accent: #E23E56; --navy: #0A1A32; --navy-2: #0E2748; }
  :root[data-theme="light"] { --bg: #FFFFFF; --fg: #1A2438; --muted: #5C6779; --surface: #EFEFF1; --surface-2: #E4E5E9;
    --line: rgba(11,33,67,.14); --line-2: rgba(11,33,67,.07); --gray: #EFEFF1; --gray-2: #E4E5E9;
    --accent: #C8102E; --navy: #0B2143; --navy-2: #0E2A54; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
  a { color: inherit; text-decoration: none; }

  h1,h2,h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
  .thin { font-weight: 300; }
  .tnum { font-variant-numeric: tabular-nums; }

  /* Pill section label (deck style) */
  .pill { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--navy); color: var(--fg);
    border-radius: 999px; padding: 8px 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
  .pill .num { color: var(--accent); font-weight: 700; }
  .pill.on-navy { border-color: rgba(255,255,255,.4); color: #fff; }

  .btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
  .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--red-br); transform: translateY(-1px); }
  .btn-outline { border-color: var(--line); color: var(--fg); }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-on-navy { border-color: rgba(255,255,255,.4); color: #fff; }
  .btn-on-navy:hover { background: rgba(255,255,255,.08); }
  .arrow { transition: transform .15s ease; }
  .btn:hover .arrow, a.lnk:hover .arrow { transform: translateX(3px); }
  a.lnk { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }

  .pw path { fill: none; stroke-width: 8; stroke-linecap: round; }
  .pw .pw-navy { stroke: #fff; } .pw .pw-red { stroke: var(--red-br); }

  /* Header (navy, deck cover feel) */
  header.site { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand .mark { width: 34px; height: 34px; }
  .brand b { font-weight: 800; font-size: 19px; letter-spacing: .05em; color: #fff; }
  .brand b span { color: var(--on-navy-muted); font-weight: 600; }
  .menu { display: flex; gap: 22px; align-items: center; }
  .menu > li { list-style: none; position: relative; }
  .menu ul { list-style: none; margin: 0; padding: 0; }
  .menu > li > a { font-size: 14.5px; font-weight: 500; color: var(--on-navy-muted); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
  .menu > li > a:hover, .menu > li:hover > a, .menu > li:focus-within > a { color: #fff; }
  .menu .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); position: relative; top: -2px; transition: transform .18s ease; }
  .menu li:hover > a .caret { transform: rotate(45deg) translate(1px,1px); }
  /* dropdown */
  .menu .sub { position: absolute; top: calc(100% + 8px); left: -14px; min-width: 264px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 24px 50px -24px rgba(11,33,67,.5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
  .menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .menu .sub li { position: relative; }
  .menu .sub a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--fg); font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 7px; }
  .menu .sub a:hover { background: var(--surface); color: var(--accent); }
  .menu .sub .chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
  /* nested flyout */
  .menu .sub .sub2 { top: -9px; left: calc(100% + 6px); }
  .menu .sub li:hover > .sub2, .menu .sub li:focus-within > .sub2 { opacity: 1; visibility: visible; transform: none; }
  .menu .sub .lead-in { padding: 6px 12px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .icon-btn { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .icon-btn:hover { border-color: var(--red-br); color: var(--red-br); }
  .menu-toggle { display: none; }

  /* HERO — navy cover with red arcs */
  .hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-bottom: 4px solid var(--red); }
  .hero .arcs { position: absolute; top: -60px; right: -80px; width: min(64vw, 640px); height: auto; z-index: 1; pointer-events: none; opacity: .96; }
  .hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 116px); max-width: var(--maxw); }
  .hero .inner { max-width: 640px; }
  .hero .tagline { display: flex; align-items: center; gap: 14px; color: var(--on-navy-muted); font-size: 15px; }
  .hero .tagline .ar { color: var(--red-br); font-size: 22px; }
  .hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -0.03em; margin-top: 20px; color: #fff; }
  .hero h1 .em { color: var(--red-br); }
  .hero .lead { margin: 24px 0 0; color: var(--on-navy-muted); font-size: clamp(16px,1.4vw,19px); max-width: 48ch; }
  .hero .rule { height: 1px; background: rgba(255,255,255,.2); margin: 30px 0; max-width: 520px; }
  .hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

  /* Facts */
  .facts { background: var(--surface); border-bottom: 1px solid var(--line); }
  .facts .wrap { display: grid; grid-template-columns: repeat(4,1fr); }
  .fact { padding: 26px 22px; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; }
  .fact b { font-size: 32px; font-weight: 600; display: block; letter-spacing: -.02em; }
  .fact span { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
  .fact b .u { color: var(--accent); }

  section { padding-block: clamp(58px, 8vw, 100px); }
  .sec-head { margin-bottom: 42px; }
  .sec-head h2 { font-size: clamp(27px, 3.5vw, 42px); margin-top: 18px; }
  .sec-head p { color: var(--muted); margin: 14px 0 0; max-width: 58ch; }

  /* Engagement + values preview */
  .eng { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,64px); align-items: center; }
  .eng .lede { font-size: clamp(20px,2.2vw,28px); font-weight: 400; letter-spacing: -.02em; line-height: 1.34; }
  .eng .lede .em { color: var(--accent); }
  .eng .lede + p { color: var(--muted); margin-top: 18px; font-size: 16px; }

  /* Activités — colored-header cards (deck) */
  .acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .act { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
  .act:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(11,33,67,.5); }
  .act .hd { padding: 18px 24px; display: flex; align-items: center; gap: 14px; color: #fff; }
  .act .hd .n { font-size: 14px; font-weight: 700; opacity: .9; }
  .act .hd h3 { font-size: 20px; color: #fff; font-weight: 500; }
  .act.c1 .hd { background: var(--navy); } .act.c2 .hd { background: var(--blue); }
  .act.c3 .hd { background: var(--red); } .act.c4 .hd { background: var(--slate); }
  .act .bd { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
  .act .bd p { color: var(--muted); font-size: 14.5px; margin: 0; }
  .act .bd .sub { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
  .act .bd .sub b { color: var(--fg); }
  .act .bd .lnk { margin-top: auto; padding-top: 18px; }

  /* Références */
  .refs { background: var(--surface); }
  .ref-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
  .ref-col h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .tag { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 500; transition: all .15s ease; }
  .tag:hover { border-color: var(--accent); color: var(--accent); }

  /* Experts */
  .team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .member { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
  .member .ph { position: relative; background: linear-gradient(160deg, var(--navy-2), var(--navy-deep)); min-height: 210px; }
  .member .ph .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700; color: rgba(255,255,255,.16); }
  .member .ph .cap { position: absolute; left: 12px; bottom: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); }
  .member .in { padding: 22px; }
  .member .in h3 { font-size: 19px; font-weight: 600; }
  .member .in .role { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
  .member .in p { color: var(--muted); font-size: 14px; margin: 13px 0 0; }
  .member .in .meta { margin-top: 13px; font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 5px 12px; }

  /* Publications */
  .pub-list { border-top: 1px solid var(--line); }
  .pub { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
  .pub:hover { background: var(--surface); }
  .pub .n { color: var(--accent); font-weight: 700; font-size: 14px; }
  .pub .t { font-weight: 600; font-size: 16px; }
  .pub .m { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

  /* Values ribbon (deck back cover) */
  .values { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
  .values .arcs { position: absolute; right: -100px; bottom: -140px; width: 420px; opacity: .9; pointer-events: none; }
  .values .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding-block: 54px; }
  .valm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .valm svg { color: var(--red-br); }
  .valm .t { letter-spacing: .18em; text-transform: uppercase; font-size: 14px; font-weight: 500; }

  /* Contact */
  .contact { background: var(--surface); border-top: 1px solid var(--line); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
  .contact h2 { font-size: clamp(27px,3.5vw,42px); }
  .contact .lead { color: var(--muted); margin-top: 14px; max-width: 40ch; }
  .coord { margin-top: 28px; display: grid; gap: 18px; }
  .coord .lab { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .coord .val { font-size: 18px; font-weight: 600; margin-top: 4px; }
  .coord .val a:hover { color: var(--accent); }
  .form { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
  .form .fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .field { margin-top: 14px; } .field:first-child { margin-top: 0; }
  .field label { font-size: 12px; font-weight: 600; color: var(--muted); }
  .field .inp { margin-top: 6px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .field .inp.area { height: 90px; }
  .form .btn { margin-top: 18px; width: 100%; justify-content: center; }

  footer.site { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--on-navy); padding-block: 52px 32px; }
  .foot-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
  .foot-brand b { font-weight: 800; font-size: 18px; letter-spacing: .05em; color: #fff; }
  .foot-brand p { color: var(--on-navy-muted); font-size: 14px; margin-top: 13px; max-width: 32ch; }
  .foot-col h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); margin: 0 0 14px; }
  .foot-col a { display: block; color: var(--on-navy); font-size: 14px; padding: 5px 0; opacity: .85; }
  .foot-col a:hover { opacity: 1; color: #fff; }
  .foot-bottom { position: relative; z-index: 2; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 12px; color: var(--on-navy-muted); }
  .foot-bottom a { color: var(--on-navy-muted); } .foot-bottom a:hover { color: #fff; }

  .disclaimer { max-width: var(--maxw); margin: 0 auto; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 14px 18px; }
  .disclaimer b { color: var(--fg); } .disclaimer code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }

  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  @media (max-width: 900px) {
    .menu { display: none; } .menu-toggle { display: inline-flex; }
    .eng, .ref-block, .team, .contact-grid { grid-template-columns: 1fr; }
    .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3){ border-left: 0; }
    .acts { grid-template-columns: 1fr; } .values .wrap { grid-template-columns: 1fr 1fr; } .foot-top { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    body { font-size: 16px; } .facts .wrap { grid-template-columns: 1fr; }
    .fact { border-left: 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; }
    .member { grid-template-columns: 1fr; } .member .ph { min-height: 130px; }
    .values .wrap { grid-template-columns: 1fr; } .form .fr2 { grid-template-columns: 1fr; }
    .pub { grid-template-columns: 30px 1fr; } .foot-top { grid-template-columns: 1fr; }
  }

  /* ---- v6 : header retravaillé + logo/photos ---- */
  .topbar { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 12.5px; letter-spacing: .01em; }
  .topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
  .topbar .l { display: flex; align-items: center; gap: 9px; }
  .topbar .l .dot { color: var(--red-br); }
  .topbar .r { display: flex; align-items: center; gap: 20px; }
  .topbar a { color: var(--on-navy); }
  .topbar a:hover { color: #fff; }
  .topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
  @media (max-width: 680px) { .topbar .l { display: none; } }

  .brand .logo { height: 30px; width: auto; display: block; }
  header.site .nav { height: 76px; }
  .menu { gap: 20px; }
  .menu > li > a { font-size: 14px; }
  .menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; background: var(--red-br); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .menu > li:hover > a::after, .menu > li:focus-within > a::after { transform: scaleX(1); }
  .nav-actions .btn-primary { padding: 10px 18px; }

  .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

  @media (max-width: 1200px) { .menu { display: none; } .menu-toggle { display: inline-flex; } }

  /* --- Correctifs mobile (header + menu burger) --- */
  body { overflow-x: clip; }
  @media (max-width: 600px){ .nav-actions .btn-primary { display: none; } }
  @media (max-width: 1200px){
    header.site.nav-open .menu { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px; max-height: 78vh; overflow: auto; box-shadow: 0 30px 44px -22px rgba(0,0,0,.35); }
    header.site.nav-open .menu > li { position: static; }
    header.site.nav-open .menu > li > a { color: var(--fg); font-size: 16px; padding: 12px 6px; }
    header.site.nav-open .menu > li > a::after { display: none; }
    header.site.nav-open .menu .caret, header.site.nav-open .menu .chev { display: none; }
    header.site.nav-open .menu .sub { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
    header.site.nav-open .menu .sub a { color: var(--muted); padding: 9px 6px; }
    header.site.nav-open .menu .sub2 { padding-left: 14px; }
    header.site.nav-open .menu .lead-in { padding: 6px; }
  }
  @media (max-width: 560px){ .engrow { flex-wrap: wrap; } .engrow .engd { flex-basis: 100%; margin-left: 34px; } }

/* v6b : header confort tablette */
.menu > li > a { white-space: nowrap; }

/* v6c : neutralise les conflits plugins sur les boutons (.btn générique) */
a.btn, .btn { white-space: nowrap !important; line-height: 1 !important; text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important; }
a.btn:hover, .btn:hover { text-decoration: none !important; }
a.btn-primary, .btn-primary { background: var(--accent) !important; color: #fff !important; border: 1.5px solid transparent !important; padding: 13px 22px !important; border-radius: 999px !important; }
a.btn-primary:hover, .btn-primary:hover { background: var(--red-br) !important; color: #fff !important; }
.nav-actions a.btn-primary { padding: 10px 18px !important; }
a.btn-outline, .btn-outline { background: transparent !important; color: var(--fg) !important; border: 1.5px solid var(--line) !important; border-radius: 999px !important; padding: 13px 22px !important; }
a.btn-outline:hover, .btn-outline:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
a.btn-on-navy, .btn-on-navy { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.4) !important; border-radius: 999px !important; padding: 13px 22px !important; }
a.btn .arrow, .btn .arrow { color: inherit !important; }
