/* ==========================================================================
   Moser Forensic Finance — feuille de style
   Charte graphique : #016F95 (Tropic Sea) / #CEF1FD (Blue Light) /
   #FFFFFF (Blanc Pur) / #CCCCCC (Gris Clair) / #000000 (Noir Absolu)
   Typo : Helvetica Bold (titres) / Helvetica Regular (texte)
   ========================================================================== */

:root {
  --blue: #016F95;
  --blue-dark: #014a63;
  --blue-light: #CEF1FD;
  --white: #FFFFFF;
  --grey: #CCCCCC;
  --grey-light: #F4F7F8;
  --black: #000000;
  --text: #16211f;
  --max: 1160px;
  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--black);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 128px 0; }

/* Section label + signature mark (repris du logo, 3 barres ascendantes) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.1em;
}
.label-mark { width: 12px; height: auto; color: currentColor; flex: none; }
.section-intro { max-width: 720px; }
.lead { font-size: 1.15rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  font-size: .92rem;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); color: var(--white); }
.link-arrow {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}
.logo svg { width: clamp(120px, 15vw, 190px); height: auto; color: var(--blue); display: block; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .02em;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--blue);
  transition: right .25s var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .btn { padding: 11px 22px; font-size: .85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 1.5px;
  background: var(--black);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 232px 0 150px;
  background: linear-gradient(170deg, var(--blue) 0%, var(--blue-dark) 60%, #012538 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 30vw;
  max-width: 380px;
  opacity: .08;
  color: var(--white);
}
.hero-content { position: relative; max-width: 660px; }
.hero .section-label { color: var(--blue-light); }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 480px; font-size: 1.2rem; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Enjeux ---------- */
#enjeux { background: var(--white); }
.enjeux-intro { text-align: center; margin: 0 auto 72px; max-width: 720px; }
.enjeux-intro .section-label { justify-content: center; }
.enjeux-intro p { font-size: 1.08rem; color: #33403e; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e7ecec; border: 1px solid #e7ecec; }
.card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card-visual {
  width: 52px; height: 52px;
  margin: 36px 32px 0;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.card-visual svg { width: 24px; height: 24px; color: var(--blue); }
.card-body { padding: 24px 32px 36px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .55em; font-size: 1.15rem; }
.card-body p { font-size: .95rem; color: #33403e; }
.card-cta { margin-top: auto; padding-top: 12px; font-size: .92rem; }

/* ---------- A propos ---------- */
#MFF { background: var(--grey-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 72px;
  align-items: start;
}
.about-copy .quote {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
  border-left: 2px solid var(--blue);
  padding-left: 22px;
  margin: 32px 0;
  line-height: 1.45;
}
.feature-list { display: grid; gap: 1px; background: #e0e5e5; border-top: 1px solid #e0e5e5; }
.feature {
  background: var(--grey-light);
  padding: 26px 0;
}
.feature h4 { margin-bottom: 6px; font-size: 1rem; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: .92rem; color: #33403e; }

/* ---------- Approche ---------- */
#approche { background: var(--blue); color: var(--white); }
#approche .section-label { color: var(--blue-light); }
#approche h2 { color: var(--white); }
#approche .section-intro p { color: rgba(255,255,255,.85); }
.approche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.22); }
.approche-step {
  position: relative;
  padding: 40px 40px 0 0;
}
.approche-step + .approche-step { padding-left: 48px; border-left: 1px solid rgba(255,255,255,.22); }
.approche-step .num {
  display: block;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.18);
  margin-bottom: -6px;
}
.approche-step h3 { color: var(--white); }
.approche-step p { color: rgba(255,255,255,.8); font-size: .94rem; }
.approche-step a { color: var(--blue-light); }
.approche-step a:hover { color: var(--white); }

/* ---------- Services ---------- */
#services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: #e7ecec; border: 1px solid #e7ecec; }
.service-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 110px;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .tagline { color: var(--blue); font-weight: 700; margin-bottom: .7em; font-size: .95rem; }
.service-card ul { margin: 0; padding-left: 18px; font-size: .92rem; color: #33403e; }
.service-card li { margin-bottom: 7px; }
.services-note {
  margin-top: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
}

/* ---------- Contact ---------- */
#contact { background: var(--grey-light); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.contact-intro .portrait {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--white);
  border: 1px solid var(--grey);
  padding: 10px;
  margin-bottom: 28px;
}
.contact-intro .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; margin-top: 10px;
  font-size: .93rem;
}
.contact-details { display: flex; gap: 40px; margin: 36px 0 8px; flex-wrap: wrap; }
.contact-details h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 5px; font-weight: 700; }
.contact-details p { margin: 0; font-weight: 500; }

form.contact-form { display: grid; gap: 18px; background: var(--white); padding: 40px; border: 1px solid #e0e5e5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; color: #4a5654; }
input, textarea {
  width: 100%;
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s var(--ease);
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,111,149,.12); }
textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: .9rem; }
.form-status.ok { color: #146c2e; }
.form-status.err { color: #a3242c; }

/* ---------- Footer ---------- */
footer {
  background: #08202c;
  color: rgba(255,255,255,.7);
  padding: 36px 0;
  font-size: .85rem;
  letter-spacing: .01em;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--blue-light); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid, .services-grid { grid-template-columns: 1fr; }
  .card-grid, .services-grid { background: none; border: none; }
  .card, .service-card { border: 1px solid #e7ecec; }
  .card + .card, .service-card + .service-card { margin-top: -1px; }
  .approche-grid { grid-template-columns: 1fr; border-top: none; }
  .approche-step { padding: 32px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
  .approche-step + .approche-step { padding-left: 0; border-left: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-intro .portrait { max-width: 320px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn.btn-outline-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 12px; }
  header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 32px 28px;
    border-bottom: 1px solid #e7ecec;
    gap: 18px;
  }
  header:not(.open) .nav-links { display: none; }
  .hero { padding: 170px 0 90px; }
  section { padding: 76px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-mark { opacity: .06; width: 55vw; right: -20px; }
}
