/* ============================================================
   Fiduciaire FWH SA — Démo one-pager
   Palette issue de brand.json : #1670bf / #2ea3f2
   Typo constitution fiduciaire : Playfair Display + Inter
   ============================================================ */

:root {
  --primary: #1670bf;
  --primary-d: #0d528d;
  --accent: #1670bf;
  --accent-d: #0d528d;
  --accent-soft: rgba(22, 112, 191, 0.08);
  --accent-light: #2ea3f2;
  --ink: #0d1117;
  --ink-soft: #3a3f45;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --line: #e6e1d8;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(13, 17, 23, 0.12);
  --shadow-sm: 0 8px 26px rgba(13, 17, 23, 0.07);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }
html.js-ready .reveal-el { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js-ready .reveal-el.in { opacity: 1; transform: translateY(0); }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

/* Eyebrow avec liseret */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
  font-family: var(--font-body);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
}

.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-primary { background: var(--primary); color: var(--white); }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.08rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(22,112,191,.28); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--ink-soft); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.02rem; }
.btn-sm { padding: 11px 22px; font-size: .88rem; }

/* Top bar */
.topbar { background: var(--primary-d); color: #d1e4f7; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: center; flex-wrap: wrap; padding: 9px 0; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.12); }
.topbar-inner span:last-child { border-right: none; }
.topbar-inner svg { width: 15px; height: 15px; color: var(--accent-light); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: .9rem; letter-spacing: .03em; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta-mobile { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero typographique */
.hero-typo { position: relative; min-height: 92vh; display: flex; align-items: center; background: var(--bg); overflow: hidden; padding: 120px 0; }
.hero-typo__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.hero-typo__content { position: relative; z-index: 2; }
.hero-typo__eyebrow { color: var(--accent); }
.hero-typo h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); line-height: 1.05; margin-bottom: 24px; max-width: 15ch; }
.hero-typo h1 em { color: var(--accent-light); }
.hero-typo__sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 36px; }
.hero-typo__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-typo__proof { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-typo__proof .p { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-typo__proof .p svg { width: 18px; height: 18px; color: var(--accent); }

.hero-typo__visual { position: relative; height: 100%; min-height: 420px; }
.hero-typo__shape {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  opacity: .12;
  transform: rotate(-3deg) scale(.95);
}
.hero-typo__img {
  position: absolute; inset: 0; z-index: 2;
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-typo__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-typo__dots {
  position: absolute; right: -40px; top: -40px; z-index: 0;
  width: 160px; height: 160px;
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .25;
}
.hero-typo__line {
  position: absolute; left: -60px; bottom: 80px; z-index: 3;
  width: 120px; height: 3px; background: var(--accent-light);
}

/* Services bento */
.bento { padding: 110px 0; background: var(--bg-soft); }
.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.bento__cell {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.bento__cell:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.bento__cell--featured {
  grid-column: span 2; grid-row: span 2;
  background: var(--primary); color: var(--white); border-color: transparent;
}
.bento__cell--featured .bento__title,
.bento__cell--featured .bento__desc { color: var(--white); }
.bento__cell--featured .bento__ico { background: rgba(255,255,255,.14); color: var(--white); }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--img {
  padding: 0;
  min-height: 220px;
}
.bento__cell--img img { width: 100%; height: 100%; object-fit: cover; }
.bento__cell--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(13,17,23,.78), rgba(13,17,23,.35) 55%, transparent 100%);
}
.bento__cell--img .bento__img-caption {
  position: absolute; bottom: 22px; left: 22px; right: 22px; z-index: 2;
  color: var(--white); text-shadow: 0 1px 8px rgba(13,17,23,.45);
}
.bento__ico {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.bento__ico svg { width: 24px; height: 24px; }
.bento__title { font-size: 1.18rem; line-height: 1.25; margin-bottom: 8px; color: var(--ink); }
.bento__desc { font-size: .92rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.bento__featured-img {
  position: absolute; inset: 0; z-index: 0;
  opacity: .18;
}
.bento__featured-img img { width: 100%; height: 100%; object-fit: cover; }
.bento__featured-body { position: relative; z-index: 1; }
.bento__featured-body .bento__title { font-size: 1.6rem; }
.bento__featured-body .bento__desc { font-size: 1rem; max-width: 38ch; }
.bento__tag {
  display: inline-block; margin-top: auto;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: var(--white);
}

/* À propos split */
.apropos { padding: 110px 0; background: var(--bg); }
.apropos__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.apropos__text h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 20px; }
.apropos__text p { color: var(--ink-soft); margin-bottom: 18px; max-width: 55ch; }
.apropos__list { list-style: none; margin: 28px 0 34px; display: grid; gap: 14px; }
.apropos__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.apropos__list li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.apropos__visual { position: relative; min-height: 520px; }
.apropos__img1 {
  position: absolute; top: 0; right: 0; width: 72%; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.apropos__img2 {
  position: absolute; bottom: 0; left: 0; width: 55%; aspect-ratio: 4/3;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 6px solid var(--bg);
}
.apropos__img1 img, .apropos__img2 img { width: 100%; height: 100%; object-fit: cover; }
.apropos__badge {
  position: absolute; right: 8%; bottom: 18%; z-index: 3;
  background: var(--white); border-left: 3px solid var(--accent-light);
  padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-width: 220px;
}
.apropos__badge b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.apropos__badge span { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }

/* Preuve citation + compteurs */
.preuve { padding: 110px 0; background: var(--bg-soft); }
.preuve__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.preuve__quote { border-left: 3px solid var(--accent-light); padding-left: 28px; }
.preuve__quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25;
  color: var(--ink); margin: 0 0 20px;
}
.preuve__quote cite {
  display: block; font-style: normal;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.preuve__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.preuve__stat { border-left: 2px solid var(--accent); padding-left: 18px; }
.preuve__stat b {
  display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--ink); line-height: 1;
}
.preuve__stat span {
  display: block; margin-top: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact { padding: 110px 0 60px; background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.contact__form h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.contact__form > p { color: var(--ink-soft); margin-bottom: 28px; }
.contact__form label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.contact__form input, .contact__form textarea, .contact__form select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; background: var(--bg-soft);
  transition: border-color .15s; color: var(--ink);
}
.contact__form input:focus, .contact__form textarea:focus, .contact__form select:focus { outline: none; border-color: var(--accent); }
.contact__form textarea { min-height: 120px; resize: vertical; }
.contact__form .field { margin-bottom: 18px; }
.contact__form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__success {
  display: none; background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent-d); padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px;
  font-weight: 600;
}
.contact__cards { display: grid; gap: 18px; }
.contact__card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.contact__card-icon {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.contact__card-icon svg { width: 22px; height: 22px; }
.contact__card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.contact__card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.contact__card a { font-weight: 700; color: var(--accent); transition: color .15s; }
.contact__card a:hover { color: var(--accent-d); text-decoration: underline; }

/* CTA band */
.cta-band { padding: 90px 0; background: var(--primary); color: var(--white); text-align: center; }
.cta-band__inner { max-width: 760px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--primary-d); color: #b5c9dc; padding: 70px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer__brand img { height: 48px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: .95rem; line-height: 1.65; max-width: 28ch; margin-bottom: 18px; }
.footer__ide { font-size: .82rem; color: #8aa4bd; }
.footer h5 { color: var(--white); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 6px 0; font-size: .94rem; color: #b5c9dc; transition: color .15s; }
.footer a:hover { color: var(--accent-light); }
.footer__address p { font-size: .94rem; line-height: 1.7; color: #b5c9dc; margin-bottom: 10px; }
.footer__tel { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer__copy { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8aa4bd; text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  .section, .bento, .apropos, .preuve, .contact { padding: 72px 0; }
  .hero-typo__grid, .apropos__grid, .preuve__grid, .contact__grid { grid-template-columns: 1fr; }
  .bento__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento__cell { min-height: 200px; }
  .bento__cell--featured { grid-column: span 2; grid-row: span 2; }
  .bento__cell--wide { grid-column: span 2; }
  .hero-typo { min-height: auto; padding: 90px 0; }
  .hero-typo__visual { min-height: 360px; order: -1; }
  .apropos__visual { min-height: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner span { padding: 4px 14px; border-right: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 0 6%; max-height: 0; overflow: hidden; transition: max-height .35s; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line); }
  .nav-links.open { max-height: 420px; padding: 12px 6%; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn:not(.burger) { display: none; }
  .nav-cta-mobile { display: block; color: var(--accent); font-weight: 700; margin-top: 8px; }
  .burger { display: flex; }
  .hero-typo h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-typo__proof { gap: 12px; }
  .hero-typo__proof .p { font-size: .75rem; }
  .hero-typo__proof .p svg { width: 16px; height: 16px; }
  .bento__grid { grid-template-columns: 1fr; }
  .bento__cell--featured, .bento__cell--wide { grid-column: span 1; grid-row: span 1; }
  .preuve__stats { grid-template-columns: 1fr; }
  .contact__form .row2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .apropos__img1 { width: 85%; }
  .apropos__img2 { width: 65%; }
  .apropos__badge { right: 0; bottom: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal-el { transition: none; }
}
