/* ============================================
   SNBAM — Shared Stylesheet v2
   Couleurs : #121212 / #D3B574 / #F5F5F5
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:       #121212;
  --dark-deep:  #080808;
  --dark-mid:   #1a1a1a;
  --gold:       #D3B574;
  --gold-dim:   rgba(211,181,116,0.3);
  --gold-pale:  rgba(211,181,116,0.08);
  --gold-border:rgba(211,181,116,0.25);
  --light:      #F5F5F5;
  --light-dim:  rgba(245,245,245,0.65);
  --light-muted:rgba(245,245,245,0.38);
  --border:     rgba(245,245,245,0.07);
  --border-mid: rgba(245,245,245,0.13);
  --font-head:  'Bebas Neue', sans-serif;
  --font-sans:  'Montserrat', sans-serif;
  --nav-h:      80px;
  --radius:     2px;
  --trans:      0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--dark); color: var(--light); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); flex-shrink: 0; }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(18,18,18,.93);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: height var(--trans);
}
.site-nav.scrolled { height: 56px; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; filter: brightness(1.4); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--light-muted); position: relative; transition: color var(--trans);
}
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--trans); }
.nav-links a:hover, .nav-links a.active { color: var(--light); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: var(--light-dim); transition: all var(--trans); }
.nav-cta {
  padding: 9px 22px; background: var(--gold); color: #0a0a0a;
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  border-radius: var(--radius); transition: background var(--trans);
}
.nav-cta:hover { background: #e5c98a; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; border-radius: var(--radius); transition: all var(--trans); cursor: pointer; border: none; }
.btn-gold { padding: 13px 28px; background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: #e5c98a; }
.btn-outline { padding: 12px 26px; border: 1px solid var(--border-mid); color: var(--light-dim); background: none; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { padding: 0; background: none; color: var(--light-muted); display: inline-flex; align-items: center; gap: .6rem; }
.btn-ghost .line { display: block; width: 28px; height: 1px; background: currentColor; transition: width var(--trans); }
.btn-ghost:hover { color: var(--light); }
.btn-ghost:hover .line { width: 44px; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: calc(var(--nav-h) + 5rem) 5vw 5rem;
  position: relative; overflow: hidden;
  background: var(--dark-deep);
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(211,181,116,.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Decorative big heading behind */
.page-header::after {
  content: attr(data-title);
  position: absolute; top: 50%; left: 5vw; transform: translateY(-50%);
  font-family: var(--font-head); font-size: clamp(6rem,15vw,14rem);
  letter-spacing: .02em; color: rgba(245,245,245,.022);
  pointer-events: none; white-space: nowrap; z-index: 0; line-height: 1;
}
.page-header-inner { position: relative; z-index: 1; max-width: 800px; }
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(3rem,7vw,6rem); letter-spacing: .02em; line-height: .95; color: var(--light); margin-bottom: 1.2rem; }
.page-header h1 .gold { color: var(--gold); }
.page-header p { font-size: .85rem; font-weight: 300; line-height: 1.9; color: var(--light-dim); max-width: 560px; }

/* ===== SECTION ===== */
.section { padding: clamp(4rem,8vw,7rem) 5vw; }
.section-sm { padding: clamp(3rem,5vw,4.5rem) 5vw; }
.section-dark { background: rgba(0,0,0,.35); }

.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow { margin-bottom: .8rem; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(2.2rem,5vw,4rem); letter-spacing: .02em; line-height: .95; color: var(--light); }
.section-header h2 .gold { color: var(--gold); }
.section-header p { font-size: .82rem; font-weight: 300; line-height: 1.9; color: var(--light-dim); max-width: 560px; margin-top: .8rem; }

/* ===== STATS ===== */
.stats-strip {
  background: var(--gold);
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-cell { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid rgba(0,0,0,.12); }
.stat-cell:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem); color: #0a0a0a; line-height: 1; letter-spacing: .02em; }
.stat-label { font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(0,0,0,.45); margin-top: 4px; }

/* ===== FOOTER ===== */
.site-footer { background: rgba(0,0,0,.55); border-top: 1px solid var(--border); padding: 4rem 5vw 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand img { height: 40px; filter: brightness(1.4); margin-bottom: 1rem; }
.footer-brand p { font-size: .68rem; font-weight: 300; color: var(--light-muted); line-height: 1.9; }
.footer-col h4 { font-size: .55rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .68rem; font-weight: 300; color: var(--light-muted); transition: color var(--trans); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .6rem; letter-spacing: .08em; color: rgba(245,245,245,.15); }

/* ===== MOBILE MENU ===== */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 190; background: rgba(8,8,8,.98); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-size: 2.5rem; letter-spacing: .05em; color: var(--light-dim); transition: color var(--trans); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 1.5rem; right: 5vw; font-size: 1.5rem; cursor: pointer; color: var(--light-muted); }

/* ===== CERTIF BADGES ===== */
.certif-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.certif-badge { padding: 6px 14px; background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: var(--radius); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ===== FORM ===== */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .55rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--light-muted); }
.form-input, .form-select, .form-textarea {
  background: rgba(245,245,245,.04); border: 1px solid var(--border-mid);
  padding: 11px 14px; font-family: var(--font-sans); font-size: .78rem; font-weight: 300;
  color: var(--light); border-radius: var(--radius); outline: none;
  transition: border-color var(--trans), background var(--trans); -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,245,245,.18); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); background: rgba(211,181,116,.05); }
.form-select { cursor: pointer; }
.form-select option { background: var(--dark); color: var(--light); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-submit { width: 100%; padding: 14px; background: var(--gold); color: #0a0a0a; font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; border: none; border-radius: var(--radius); cursor: pointer; transition: background var(--trans); }
.form-submit:hover { background: #e5c98a; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: .78rem; font-weight: 500; color: var(--light); text-align: left; gap: 1rem; font-family: var(--font-sans); transition: color var(--trans); }
.faq-q:hover { color: var(--gold); }
.faq-icon { width: 22px; height: 22px; border: 1px solid var(--gold-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 15px; flex-shrink: 0; transition: all var(--trans); }
.faq-item.open .faq-icon { background: var(--gold); color: #0a0a0a; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; font-size: .76rem; font-weight: 300; line-height: 1.9; color: var(--light-muted); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* ===== SHARED JS COUNTER CLASS ===== */
.count-target { transition: none; }
