/* ============================================================
   HBV.mc — Proposition A : Corporate épuré clair
   ============================================================ */
:root {
  --gold: #9c7a2e;
  --gold-soft: #c9a86a;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --bg: #fbfaf7;
  --bg-alt: #ffffff;
  --bg-soft: #f3f1ea;
  --ink: #14223d;
  --ink-soft: #4a566b;
  --line: #e7e3d8;
  --accent: #11233f;
  --accent-ink: #ffffff;
  --gold-on-bg: #9c7a2e;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(20, 34, 61, .04), 0 18px 40px -24px rgba(20, 34, 61, .25);
  --header-bg: rgba(251, 250, 247, .78);
  --hero-grad: radial-gradient(1200px 600px at 75% -10%, rgba(184, 146, 63, .14), transparent 60%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .95rem; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(17, 35, 63, .45); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-on-bg); color: var(--gold-on-bg); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.brand-mark { color: var(--ink); }
.brand-dot { color: var(--gold-on-bg); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold-on-bg); transition: width .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; cursor: pointer; transition: all .25s var(--ease); }
.toggle:hover { border-color: var(--gold-on-bg); color: var(--gold-on-bg); }
.lang-toggle { font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 7px 12px; gap: 2px; }
.lang-toggle .lang-inactive { opacity: .45; }
.lang-toggle .lang-sep { opacity: .35; margin: 0 1px; }
.menu-btn { display: none; flex-direction: column; gap: 5px; width: 40px; height: 38px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.hero-bg { position: absolute; inset: 0; background: var(--hero-grad); z-index: 0; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: radial-gradient(700px 400px at 80% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(700px 400px at 80% 0%, #000 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; color: var(--gold-on-bg); margin-bottom: 18px; }
.hero-title { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--ink); }
.stat-num small { font-size: .55em; font-weight: 600; }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; background: var(--bg-soft); }
.trust-label { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 18px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.trust-logos span { font-family: var(--font-serif); font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--ink); opacity: .55; transition: opacity .25s var(--ease); }
.trust-logos span:hover { opacity: 1; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--card-shadow); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--gold-on-bg); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(184, 146, 63, .16), rgba(184, 146, 63, .04)); color: var(--gold-on-bg); margin-bottom: 22px; border: 1px solid var(--line); }
.card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.card > p { color: var(--ink-soft); margin-bottom: 20px; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card-list li { position: relative; padding-left: 24px; font-size: .94rem; color: var(--ink); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--gold-on-bg); }

.approche { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approche-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.approche-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.approche-text .section-lead { margin-bottom: 28px; }
.approche-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.feature { display: flex; gap: 16px; }
.feature-num { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold-on-bg); font-weight: 600; flex-shrink: 0; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; font-family: var(--font-sans); font-weight: 700; }
.feature p { font-size: .92rem; color: var(--ink-soft); }

.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector { padding: 28px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card-bg); transition: transform .3s var(--ease), border-color .3s var(--ease); }
.sector:hover { transform: translateY(-4px); border-color: var(--gold-on-bg); }
.sector h3 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 8px; }
.sector p { font-size: .9rem; color: var(--ink-soft); }

.apropos-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.apropos-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 22px; }
.apropos-text p { color: var(--ink-soft); margin-bottom: 18px; }
.apropos-media { display: flex; justify-content: center; }
.media-card { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: var(--radius); display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--accent), #0a1730); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.media-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 280px at 30% 20%, rgba(184, 146, 63, .35), transparent 60%); }
.media-mark { font-family: var(--font-serif); font-size: 4.2rem; font-weight: 700; color: #fff; position: relative; z-index: 1; }
.media-mc { font-family: var(--font-serif); font-size: 4.2rem; font-weight: 700; color: var(--gold-soft); position: relative; z-index: 1; }

.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.contact-details { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-k { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.contact-details a { font-size: 1.05rem; color: var(--ink); transition: color .2s var(--ease); }
.contact-details a:hover { color: var(--gold-on-bg); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--card-shadow); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-on-bg); box-shadow: 0 0 0 3px rgba(184, 146, 63, .15); }
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.form-note.success { color: var(--gold-on-bg); font-weight: 600; }
.form-note.error { color: #c0392b; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Submit button spinner */
#submitBtn .btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
#submitBtn[data-state="loading"] { opacity: .85; cursor: wait; }
#submitBtn[data-state="loading"] .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #submitBtn .btn-spinner { animation: none; } }

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand p { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-nav a { font-size: .92rem; color: var(--ink-soft); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--gold-on-bg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .84rem; color: var(--ink-soft); }
.footer-legal a:hover { color: var(--gold-on-bg); }

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

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .approche-grid, .apropos-grid, .contact-inner { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .apropos-media { order: -1; }
  .media-card { max-width: 280px; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .4); margin-left: 0; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav a:last-child { border-bottom: none; }
  .header-cta { display: none; }
  .menu-btn { display: flex; }
  .approche-list { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .sector-grid { grid-template-columns: 1fr; } .hero-stats { gap: 24px; } }
