/* ESMA Advisor — charte Noir & Or */
:root {
  --bg: #121212;
  --surface: #181818;
  --card: #1C1C1E;
  --line: rgba(197, 160, 89, 0.18);
  --line-strong: rgba(197, 160, 89, 0.45);
  --gold: #C5A059;
  --gold-bright: #D4AF37;
  --white: #FFFFFF;
  --text: #A1A1AA;
  --text-dim: #71717A;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-bright); }
h1, h2, h3, h4 { color: var(--white); font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.text-gradient {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(18, 18, 18, .85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.scrolled { background: rgba(18, 18, 18, .97); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s; }
.site-header.scrolled .header-inner { height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand img { height: 56px; width: auto; border-radius: 4px; transition: height .4s; }
.site-header.scrolled .brand img { height: 46px; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.brand-tag { display: block; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text); margin-top: 3px; }
.brand:hover { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  position: relative; padding: 8px 18px; color: var(--text); font-weight: 500; font-size: .95rem;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--gold); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .btn { margin-left: 20px; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); padding: 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid var(--gold); cursor: pointer; transition: all .3s; font-family: var(--font-body);
}
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--gold-bright)); color: #121212; }
.btn-primary:hover { color: #121212; box-shadow: 0 8px 30px rgba(197, 160, 89, .35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: rgba(197, 160, 89, .1); color: var(--gold-bright); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: .88rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 2px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub { font-size: 1.15rem; margin-top: 18px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(calc(100vh - var(--header-h)), 820px); display: flex; align-items: center;
  overflow: hidden; text-align: center; padding: 80px 0;
  background: radial-gradient(ellipse at top, #1c1a15 0%, var(--bg) 60%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: rgba(197, 160, 89, .07); filter: blur(90px); pointer-events: none;
}
.hero::before { top: 10%; left: -10%; }
.hero::after { bottom: 0; right: -10%; }
.hero .container { position: relative; z-index: 1; max-width: 980px; }
.hero-badge {
  display: inline-block; padding: 9px 24px; margin-bottom: 36px;
  border: 1px solid var(--line-strong); background: rgba(197, 160, 89, .06);
  color: var(--gold); font-size: .85rem; font-weight: 500; letter-spacing: .06em;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.01em; margin-bottom: 28px; }
.hero h1 .text-gradient { display: block; margin-top: 8px; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 720px; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  padding: 100px 0 80px; text-align: center;
  background: radial-gradient(ellipse at top, #1c1a15 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { font-size: 1.2rem; max-width: 760px; margin: 0 auto; }

/* ---------- Chiffres clés ---------- */
.stats { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { text-align: center; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; margin-bottom: 14px; }
.stat-label { color: var(--white); font-weight: 500; font-size: 1.05rem; }
.stat-detail { font-size: .9rem; margin-top: 4px; }

/* ---------- À propos ---------- */
.about { max-width: 860px; margin: 0 auto; text-align: center; }
.quote {
  font-family: var(--font-display); font-style: italic; color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.5; margin: 0 auto 48px; max-width: 760px;
  position: relative; padding: 0 20px;
}
.quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.about p { font-size: 1.12rem; }

/* ---------- Cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); padding: 40px 34px; position: relative;
  transition: border-color .4s, transform .4s, box-shadow .4s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { color: var(--gold); margin-bottom: 24px; }
.card-icon svg { width: 46px; height: 46px; }

.value-card h3 { color: var(--gold); }

/* ---------- Services (page) ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 72px 0; border-bottom: 1px solid var(--line); }
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: 0; padding-bottom: 0; }
.service-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-sub { color: var(--gold); font-weight: 600; font-size: 1.1rem; margin-bottom: 20px; }
.service-icon {
  display: inline-flex; padding: 16px; border: 1px solid var(--line-strong); color: var(--gold); margin-bottom: 26px;
  background: rgba(197, 160, 89, .06);
}
.service-icon svg { width: 40px; height: 40px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.panel { background: var(--card); border: 1px solid var(--line); padding: 38px 34px; }
.panel h3 { font-size: 1.35rem; margin-bottom: 22px; }

.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::after {
  content: counter(step); position: absolute; top: -18px; left: -18px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: #121212;
}

/* ---------- Projets ---------- */
.case { padding: 44px 40px; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.case-num { font-family: var(--font-display); color: var(--gold); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.tag { display: inline-block; padding: 4px 14px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-strong); color: var(--gold); }
.tag-live { border-color: rgba(212, 175, 55, .7); color: var(--gold-bright); background: rgba(212, 175, 55, .08); }
.case h3 { font-size: 1.6rem; margin-bottom: 26px; }
.case dl { margin: 0; }
.case dt { color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.case dd { margin: 0 0 22px; }
.case dd:last-child { margin-bottom: 0; }
.case .result { border-left: 2px solid var(--gold); padding-left: 16px; color: var(--white); }

.testimonial .stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 18px; font-size: 1.05rem; }
.testimonial blockquote { margin: 0 0 24px; font-style: italic; }
.testimonial .who { color: var(--white); font-weight: 600; margin: 0; }
.testimonial .role { font-size: .9rem; color: var(--text-dim); margin: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 120px 0; background: radial-gradient(ellipse at center, #1f1c14 0%, var(--bg) 70%); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 44px; }

/* ---------- Contact ---------- */
.info-grid .card { text-align: center; padding: 32px 24px; }
.info-grid .card-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.info-grid .card-icon svg { width: 34px; height: 34px; }
.info-grid h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.info-grid p, .info-grid a { margin: 0; word-break: break-word; }

.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.form-grid .field { margin-bottom: 0; }
.field label { display: block; color: var(--white); font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; background: var(--bg); color: var(--white);
  border: 1px solid #2E2E32; font: inherit; font-size: 1rem; outline: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 160, 89, .15); }
.field select option { background: var(--card); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; margin-bottom: 24px; }
.consent input { margin-top: 5px; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; text-align: center; margin: 14px 0 0; color: var(--text-dim); }
.form-status { padding: 18px 20px; margin-bottom: 24px; border: 1px solid; display: none; }
.form-status.ok { display: block; border-color: var(--gold); background: rgba(197, 160, 89, .08); color: var(--white); }
.form-status.err { display: block; border-color: #b4534a; background: rgba(180, 83, 74, .1); color: #f1c5c0; }
.btn[disabled] { opacity: .6; cursor: wait; }

.why-item { display: flex; gap: 18px; margin-bottom: 26px; }
.why-item .card-icon { margin: 0; flex-shrink: 0; }
.why-item .card-icon svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.why-item p { margin: 0; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 22px 26px; color: var(--white); font-weight: 600; list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 26px 22px; margin: 0; }

/* ---------- Pages légales ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.6rem; margin-top: 52px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.todo { background: rgba(212, 175, 55, .14); color: var(--gold-bright); padding: 1px 6px; border: 1px dashed var(--gold); font-size: .92em; }

/* ---------- Footer ---------- */
.site-footer { background: #0D0D0D; border-top: 1px solid var(--line); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 56px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-brand img { height: 60px; border-radius: 4px; }
.site-footer h4 { font-size: 1.15rem; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold); }
.social {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-top: 6px;
  border: 1px solid var(--line-strong); color: var(--gold); transition: all .3s;
}
.social svg { width: 18px; height: 18px; }
.site-footer a.social { color: var(--gold); }
.site-footer a.social:hover { background: var(--gold); color: #121212; }
.grid-2 > .case-wide { grid-column: 1 / -1; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  margin-top: 64px; padding: 26px 0; border-top: 1px solid #222;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: var(--text-dim);
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-dim); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-block, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 18, 18, .98); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid #222; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin: 18px 0 0; text-align: center; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .form-grid .field { margin-bottom: 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
  .brand img { height: 46px; }
  .brand-name { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .card, .case, .panel { padding: 30px 22px; }
  .hero-actions .btn { width: 100%; }
}
