/* ============================================================
   FBBS Consulting — feuille de style partagée
   Palette : encre chaude · ivoire · laiton
   Typographie : Fraunces (titres) · Mulish (texte)
   ============================================================ */

:root {
  --ink: #1B1612;
  --ink-soft: #2A231C;
  --ivory: #F4EEE3;
  --ivory-deep: #ECE4D5;
  --brass: #9C7233;
  --brass-light: #C9A35E;
  --stone: #786E61;
  --stone-light: #C7BDAE;
  --line: rgba(27, 22, 18, 0.14);
  --line-dark: rgba(201, 163, 94, 0.24);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--deep { background: var(--ivory-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
}
.section--dark .eyebrow { color: var(--brass-light); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--stone); line-height: 1.7; }
.section--dark .lede { color: var(--stone-light); }

/* Menu-rule signature element */
.rule { display: flex; align-items: center; gap: 0.85rem; margin: 1.4rem 0; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.section--dark .rule::before, .section--dark .rule::after { background: var(--line-dark); }
.rule i { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); flex: none; }
.rule--left { justify-content: flex-start; }
.rule--left::before { display: none; }
.rule--left::after { max-width: 4.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--brass); color: var(--ivory); }
.btn--solid { background: var(--brass); color: var(--ivory); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.section--dark .btn { color: var(--brass-light); border-color: var(--brass-light); }
.section--dark .btn:hover { background: var(--brass-light); color: var(--ink); }
.section--dark .btn--solid { background: var(--brass-light); color: var(--ink); }
.section--dark .btn--solid:hover { background: var(--ivory); border-color: var(--ivory); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 238, 227, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brandmark { display: flex; align-items: baseline; gap: 0.5rem; line-height: 1; }
.brandmark b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.02em; }
.brandmark span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--stone); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); border-color: var(--brass); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 78% 18%, rgba(201, 163, 94, 0.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4.5rem, 12vw, 9rem); }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  font-weight: 400; max-width: 16ch; margin-top: 1.4rem; color: var(--ivory);
}
.hero h1 em { font-style: italic; color: var(--brass-light); }
.pillars {
  margin-top: 1.6rem; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--stone-light);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
}
.pillars i { width: 5px; height: 5px; background: var(--brass-light); transform: rotate(45deg); display: inline-block; }
.hero .lede { max-width: 52ch; margin-top: 1.8rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--ivory); }
.page-head .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ivory); margin-top: 1.1rem; max-width: 20ch; }
.page-head .lede { max-width: 56ch; margin-top: 1.4rem; }

/* ---------- Section heading block ---------- */
.head-block { max-width: 60ch; margin-bottom: 3rem; }
.head-block h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-top: 1rem; }
.head-block p { margin-top: 1.1rem; }

/* ---------- Service list ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--ivory); padding: clamp(1.6rem, 3vw, 2.4rem); }
.section--deep .service { background: var(--ivory-deep); }
.service .num { font-family: var(--font-display); font-size: 0.95rem; color: var(--brass); letter-spacing: 0.05em; }
.service h3 { font-size: 1.5rem; margin: 0.5rem 0 0.7rem; }
.service p { color: var(--stone); font-size: 0.98rem; }
.service ul { list-style: none; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.service ul li { font-size: 0.82rem; color: var(--ink); position: relative; padding-left: 0.95rem; }
.service ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }

/* Detailed service blocks (services page) */
.service-block { border-top: 1px solid var(--line); padding-block: clamp(2.2rem, 4vw, 3.2rem); display: grid; grid-template-columns: minmax(0, 7rem) 1fr; gap: clamp(1rem, 4vw, 3rem); }
.service-block:last-child { border-bottom: 1px solid var(--line); }
.service-block .idx { font-family: var(--font-display); font-size: 2rem; color: var(--brass); line-height: 1; }
.service-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service-block p { margin-top: 1rem; color: var(--stone); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.4rem; }
.tags span { font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink); border: 1px solid var(--line); padding: 0.35rem 0.85rem; border-radius: 999px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--brass-light); line-height: 1; }
.stat .l { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-light); margin-top: 0.7rem; }

/* ---------- References teaser ---------- */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.ref { border: 1px solid var(--line); padding: 1.5rem; }
.ref h3 { font-size: 1.2rem; }
.ref small { display: block; color: var(--brass); font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.45rem; }
.ref p { color: var(--stone); font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- Marques partenaires ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.brands span { background: var(--ivory); display: flex; align-items: center; justify-content: center; min-height: 116px; padding: 1rem; text-align: center; line-height: 1.2; font-family: var(--font-display); font-size: 1.22rem; letter-spacing: 0.01em; color: var(--ink); }

/* ---------- Timeline (realisations) ---------- */
.timeline { border-left: 1px solid var(--line); margin-left: 0.5rem; }
.tl { position: relative; padding: 0 0 2.4rem 2rem; }
.tl::before { content: ""; position: absolute; left: -4.5px; top: 0.55rem; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.tl:last-child { padding-bottom: 0; }
.tl .yr { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.tl h3 { font-size: 1.35rem; margin: 0.35rem 0; }
.tl .loc { font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.tl p { color: var(--stone); font-size: 0.96rem; margin-top: 0.4rem; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; margin: 0 auto; color: var(--ivory); }
.cta-band p { color: var(--stone-light); max-width: 48ch; margin: 1.2rem auto 0; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-detail { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.contact-detail .k { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.contact-detail .v { font-size: 1.15rem; margin-top: 0.3rem; }
.contact-detail .v a:hover { color: var(--brass); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 0.8rem 0.9rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--stone-light); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-top .brandmark b { color: var(--ivory); }
.footer-top .brandmark span { color: var(--stone-light); }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--stone-light); margin-top: 1rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: var(--stone-light); margin-bottom: 0.55rem; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--stone); }

/* ---------- Reveal animation (only when JS active) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.4rem; transform: translateY(-130%);
    transition: transform 0.35s ease; box-shadow: 0 18px 30px rgba(27,22,18,0.08);
  }
  .nav.open { transform: none; }
  .nav a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2.5rem; }
  .refs { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .service-block { grid-template-columns: 1fr; gap: 0.8rem; }
  .service-block .idx { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
