/* ═══════════════════════════════════════════════════════════════
   MBH FULLWIDTH v2 — global.css
   Design system complet : tokens, header, footer, utilitaires
   Typographie : Instrument Serif (titres) + Geist (corps)
   Direction : Precision Industrial — sombre, structuré, premium
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:        #08080e;
  --bg-2:      #0d0d16;
  --bg-3:      #12121e;
  --surface:   #181826;
  --surface-2: #1e1e30;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.11);

  --orange:       #f97316;
  --orange-soft:  rgba(249,115,22,0.10);
  --orange-mid:   rgba(249,115,22,0.22);
  --orange-glow:  rgba(249,115,22,0.40);

  --text:       #dddde8;
  --text-dim:   #7b7b9a;
  --text-faint: #35354f;
  --white:      #ffffff;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Geist', 'DM Sans', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t:         0.22s;

  --header-h: 66px;
}

/* ── RESET GLOBAL ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── GRAIN TEXTURE ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.mbh-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(8,8,14,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.mbh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.mbh-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.mbh-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--orange);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 7px;
  flex-shrink: 0;
}

.mbh-logo-mark span {
  background: rgba(255,255,255,0.95);
  border-radius: 2px;
}

.mbh-logo-mark span:nth-child(2) { opacity: .55; }
.mbh-logo-mark span:nth-child(3) { opacity: .55; }
.mbh-logo-mark span:nth-child(4) { opacity: .30; }

.mbh-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mbh-logo-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
}

.mbh-logo-sub {
  font-size: .64rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Nav */
.mbh-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
}

.mbh-nav a {
  font-size: .84rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 8px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap;
}

.mbh-nav a:hover {
  color: var(--white);
  background: var(--surface);
}

/* Lang switcher */
.mbh-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}

.mbh-lang button {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: .28rem .6rem;
  border-radius: 7px;
  transition: all var(--t) var(--ease);
}

.mbh-lang button.active {
  background: var(--orange);
  color: var(--white);
}

.mbh-lang button:hover:not(.active) {
  color: var(--text);
  background: var(--surface-2);
}

/* Header CTA */
.mbh-header-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  padding: .5rem 1.15rem;
  border-radius: 9px;
  transition: opacity var(--t), transform var(--t);
  white-space: nowrap;
  flex-shrink: 0;
}

.mbh-header-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Hamburger */
.mbh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.mbh-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}

/* Mobile nav */
.mbh-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(8,8,14,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  gap: .1rem;
  z-index: 199;
}

.mbh-mobile-nav.open { display: flex; }

.mbh-mobile-nav a {
  font-size: .95rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}

.mbh-mobile-nav a:last-of-type { border-bottom: none; }
.mbh-mobile-nav a:hover { color: var(--white); }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.mbh-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(3rem,6vw,5rem) clamp(1.25rem,4vw,3rem) clamp(1.5rem,3vw,2.5rem);
}

.mbh-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.mbh-footer-brand p {
  font-size: .84rem;
  color: var(--text-dim);
  margin-top: .85rem;
  line-height: 1.7;
  max-width: 280px;
}

.mbh-footer-col h5 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

.mbh-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.mbh-footer-col a {
  font-size: .84rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t);
}

.mbh-footer-col a:hover { color: var(--white); }

.mbh-footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mbh-footer-copy {
  font-size: .78rem;
  color: var(--text-faint);
}

.mbh-footer-legal a {
  font-size: .78rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--t);
}

.mbh-footer-legal a:hover { color: var(--text-dim); }

/* ════════════════════════════════════════════════════════════
   UTILITAIRES PARTAGÉS (utilisés dans les blocs html)
════════════════════════════════════════════════════════════ */

/* Scroll reveal */
.mbh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mbh-reveal.in { opacity: 1; transform: none; }

/* Sections */
.mbh-section {
  padding: clamp(4rem,9vw,7.5rem) clamp(1.25rem,4vw,3rem);
}
.mbh-section--alt { background: var(--bg-2); }

.mbh-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Tags */
.mbh-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}

.mbh-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--orange);
}

/* Titres */
.mbh-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.mbh-h1 strong {
  font-style: normal;
  font-weight: 400;
  color: var(--orange);
}

.mbh-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.008em;
  color: var(--white);
  margin-bottom: .9rem;
}

.mbh-h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .55rem;
  letter-spacing: .01em;
}

.mbh-lead {
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* Boutons */
.mbh-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  padding: .8rem 1.7rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t) var(--ease);
}

.mbh-btn-primary {
  background: var(--orange);
  color: var(--white);
}
.mbh-btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
}

.mbh-btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
}
.mbh-btn-ghost:hover {
  color: var(--white);
  background: var(--surface);
  border-color: var(--border-2);
}

/* Cards */
.mbh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}

.mbh-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.35), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.mbh-card:hover {
  border-color: rgba(249,115,22,.22);
  transform: translateY(-3px);
}
.mbh-card:hover::before { opacity: 1; }

/* Icon boxes */
.mbh-icon {
  width: 42px;
  height: 42px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-mid);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.mbh-icon svg {
  width: 19px; height: 19px;
  stroke: var(--orange);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Form elements */
.mbh-field label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-dim);
  margin-bottom: .4rem;
}

.mbh-field input,
.mbh-field textarea,
.mbh-field select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: .72rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
  appearance: none;
}

.mbh-field input:focus,
.mbh-field textarea:focus,
.mbh-field select:focus {
  border-color: rgba(249,115,22,.55);
}

.mbh-field input::placeholder,
.mbh-field textarea::placeholder { color: var(--text-faint); }

.mbh-field textarea { resize: vertical; min-height: 120px; }

/* Divider */
.mbh-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE HEADER / FOOTER
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mbh-nav { display: none; }
  .mbh-header-cta { display: none; }
  .mbh-burger { display: flex; }

  .mbh-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .mbh-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .mbh-footer-inner { grid-template-columns: 1fr; }
}
