/* ==========================================================================
   MBC Assurance Construction (mbcassurance.fr) — site.css
   Direction : « Charpente & confiance — courtage construction bois ».
   Signature : FERME DE CHARPENTE (toit à poinçon) ocre. Ardoise-bleu solide +
   ocre-bois chaud sur béton crème. Anti-footprint : aucune classe custom —
   classes/ids Bootstrap + pseudo-éléments.
   ========================================================================== */

:root {
  --slate: #1f3a4d;        /* ardoise-bleu (charpente / confiance) */
  --slate-2: #2a4c61;
  --slate-deep: #162c3a;   /* footer / panneaux */
  --ochre: #bc7a3a;        /* ocre-bois (filière bois) */
  --ochre-dark: #a3652c;
  --ochre-lt: #ddb079;
  --ink: #232a2d;
  --ink-soft: #414a4e;
  --concrete: #efeae0;     /* béton crème (fond) */
  --surface: #fbf8f1;
  --muted: #71766f;
  --line: #ded6c6;

  --bs-primary: var(--ochre);
  --bs-primary-rgb: 188, 122, 58;
  --bs-secondary: var(--slate);
  --bs-secondary-rgb: 31, 58, 77;
  --bs-body-bg: var(--concrete);
  --bs-body-color: #303733;
  --bs-body-font-family: 'Archivo', system-ui, sans-serif;
  --bs-body-font-size: 1.02rem;
  --bs-body-line-height: 1.75;
  --bs-link-color: var(--ochre-dark);
  --bs-link-hover-color: var(--slate);
  --bs-border-color: var(--line);
  --bs-emphasis-color: var(--slate);
}

/* ------------------------------ Base --------------------------------- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--concrete);
  background-image:
    radial-gradient(1000px 520px at 100% -6%, rgba(188, 122, 58, 0.1), transparent 60%),
    radial-gradient(820px 460px at -8% 2%, rgba(31, 58, 77, 0.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Zilla Slab', Georgia, serif;
  font-weight: 600; color: var(--slate); line-height: 1.2; letter-spacing: 0.005em;
}

::selection { background: var(--slate); color: #fff; }
a { text-decoration: none; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible {
  outline: 3px solid rgba(188, 122, 58, 0.55); outline-offset: 2px; box-shadow: none;
}
section[id] { scroll-margin-top: 92px; }

/* Kicker signature : mini pignon (triangle) ocre + libellé espacé */
#kicker, #kicker-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem;
  margin-bottom: 0.9rem; color: var(--ochre-dark);
}
#kicker::before, #kicker-light::before {
  content: ""; width: 16px; height: 12px; flex: none; background: var(--ochre);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
#kicker-light { color: var(--ochre-lt); }
#kicker-light::before { background: var(--ochre-lt); }

/* --------------------------- Boutons --------------------------------- */
.btn {
  --bs-btn-border-radius: 6px; --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: 0.62rem;
  font-family: 'Archivo', sans-serif; letter-spacing: 0.01em;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.8rem; --bs-btn-padding-y: 0.82rem; }
.btn-primary {
  --bs-btn-bg: var(--ochre); --bs-btn-border-color: var(--ochre);
  --bs-btn-hover-bg: var(--ochre-dark); --bs-btn-hover-border-color: var(--ochre-dark);
  --bs-btn-active-bg: var(--ochre-dark); --bs-btn-color: #fff;
  box-shadow: 0 12px 24px -12px rgba(188, 122, 58, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(188, 122, 58, 0.7); }
.btn-outline-light {
  --bs-btn-color: var(--concrete); --bs-btn-border-color: rgba(239, 234, 224, 0.45);
  --bs-btn-hover-bg: var(--concrete); --bs-btn-hover-color: var(--slate);
}
.btn-outline-light:hover { transform: translateY(-2px); }

/* ---------------------------- Topbar --------------------------------- */
#topbar {
  background: var(--slate-deep); color: rgba(239, 234, 224, 0.82);
  font-size: 0.85rem; padding: 0.45rem 0;
}
#topbar-area { color: var(--ochre-lt); }
#topbar-tel { color: #fff; font-weight: 700; }
#topbar-tel:hover { color: var(--ochre-lt); }

/* ---------------------------- Navbar --------------------------------- */
#topnav {
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
#brand-name { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.22rem; color: var(--slate); letter-spacing: 0.01em; }
#brand-sub { font-family: 'Archivo', sans-serif; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-dark); }
#topnav .nav-link {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.93rem;
  color: var(--ink-soft); padding: 0.5rem 0.85rem; position: relative;
}
#topnav .nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
#topnav .nav-link:hover, #topnav .nav-link:focus { color: var(--slate); }
#topnav .nav-link:hover::after { transform: scaleX(1); }

/* ----------------------------- HERO ---------------------------------- */
#hero { position: relative; overflow: hidden; padding: 5.5rem 0; color: #fff; }
#hero-bg { position: absolute; inset: 0; z-index: 0; }
#hero-bg img { width: 100%; height: 100%; object-fit: cover; }
#hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(22,44,58,0.94) 0%, rgba(22,44,58,0.74) 52%, rgba(22,44,58,0.4) 100%);
}
#hero-truss { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: 1; width: 42%; max-width: 460px; color: rgba(188, 122, 58, 0.32); pointer-events: none; }
#hero-truss svg { width: 100%; height: auto; }
#hero .container { position: relative; z-index: 2; }
#hero #kicker { color: var(--ochre-lt); }
#hero-title {
  font-family: 'Zilla Slab', serif; font-weight: 700; color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.12; margin-bottom: 0.9rem;
}
#hero-sub { color: rgba(239, 234, 224, 0.9); font-size: 1.2rem; max-width: 46ch; }
#hero-quick { }
#quick-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(239, 234, 224, 0.1); border: 1px solid rgba(239, 234, 224, 0.2);
  color: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.88rem; font-weight: 600;
  font-family: 'Archivo', sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#quick-chip i { color: var(--ochre-lt); }
#quick-chip:hover { background: var(--ochre); border-color: var(--ochre); transform: translateY(-2px); }
#quick-chip:hover i { color: #fff; }

/* --------------------------- NOS SOLUTIONS --------------------------- */
#solutions { padding: 5rem 0; }
#solutions > .container > .mb-5 h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
#sol-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.8rem; position: relative; overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
#sol-card::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--ochre); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease;
}
#sol-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -28px rgba(31, 58, 77, 0.4); border-color: transparent; }
#sol-card:hover::before { transform: scaleY(1); }
#sol-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
#sol-ico {
  width: 48px; height: 48px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--slate); color: var(--ochre-lt); font-size: 1.3rem;
}
#sol-title { font-family: 'Zilla Slab', serif; font-size: 1.2rem; color: var(--slate); }
#sol-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
#sol-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: 0.96rem; }
#sol-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  background: var(--ochre); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* --------------------------- NOTRE ÉQUIPE --------------------------- */
#equipe { padding: 5rem 0; background: linear-gradient(180deg, transparent, rgba(31, 58, 77, 0.04)); }
#equipe-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
#equipe-frame {
  position: relative; border-radius: 14px; overflow: hidden; border: 6px solid #fff;
  box-shadow: 0 30px 56px -30px rgba(31, 58, 77, 0.5), 0 0 0 1px var(--line);
}
#equipe-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
#equipe-text p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1rem; }
#fed-lab, #couv-lab {
  display: block; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ochre-dark); margin-bottom: 0.7rem;
}
#couvertures { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
#couv-chip {
  font-family: 'Archivo', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--slate);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.7rem;
}
#couv-chip i { color: var(--ochre-dark); }
#fed-chip {
  font-family: 'Archivo', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--slate); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.25rem 0.65rem;
}

/* --------------------------- PRÉSENTATION / SEO --------------------- */
#presentation { padding: 5rem 0; }
#pres-card {
  position: relative; background: var(--slate); color: #fff;
  border-radius: 14px; padding: 2rem 1.8rem 1.8rem; overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
#pres-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(22, 44, 58, 0.6); }
#pres-num {
  font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 2rem; color: var(--ochre-lt);
  display: block; line-height: 1; margin-bottom: 0.6rem;
}
#pres-title { font-family: 'Zilla Slab', serif; color: #fff; font-size: 1.2rem; margin-bottom: 0.7rem; }
#pres-card p { color: rgba(239, 234, 224, 0.82); font-size: 0.94rem; }

/* --------------------------- ACTUALITÉ ------------------------------ */
#actualite { padding: 5rem 0; }
#actualite > .container > .mb-5 h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
#actu-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.6rem 1.5rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
#actu-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(31, 58, 77, 0.4); border-color: var(--ochre); }
#actu-tag {
  display: inline-block; font-family: 'Archivo', sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ochre-dark);
  background: rgba(188, 122, 58, 0.1); border-radius: 5px; padding: 0.18rem 0.55rem; margin-bottom: 0.9rem;
}
#actu-title { font-family: 'Zilla Slab', serif; font-size: 1.15rem; color: var(--slate); line-height: 1.3; margin-bottom: 0.6rem; }
#actu-excerpt { color: var(--muted); font-size: 0.92rem; }

/* --------------------------- CONTACT -------------------------------- */
#contact { padding: 2rem 0 5.5rem; }
#contact-card {
  position: relative; overflow: hidden;
  background: var(--slate-deep); color: #fff; border-radius: 20px; padding: 3rem 2.6rem;
}
#contact-truss { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); color: rgba(188, 122, 58, 0.22); pointer-events: none; }
#contact-card > .row { position: relative; z-index: 1; }
#contact-card h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
#contact-card p { color: rgba(239, 234, 224, 0.82); }
#contact-tel { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
#contact-tel i { color: var(--ochre-lt); }
#contact-tel:hover { color: var(--ochre-lt); }

/* ------------------------- SEO bloc / pages ------------------------- */
#seo { padding: 2.4rem 0; }
#seo h2 { font-size: 1.1rem; color: var(--slate); }
#seo p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }

#page-head {
  background: var(--slate); color: #fff; padding: 3.6rem 0 2.6rem; position: relative; overflow: hidden;
}
#page-head::after {
  content: ""; position: absolute; right: -4%; bottom: -30%; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 122, 58, 0.25), transparent 70%); pointer-events: none;
}
#page-head #kicker { color: var(--ochre-lt); }
#page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); position: relative; }
#page-head .breadcrumb a { color: rgba(239, 234, 224, 0.72); }
#page-head .breadcrumb a:hover { color: var(--ochre-lt); }
#page-head .breadcrumb-item.active { color: var(--ochre-lt); }
#page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(239,234,224,0.4); }
#legal-body { max-width: 760px; font-size: 1.05rem; color: var(--ink-soft); }
#legal-body h2 { font-size: 1.35rem; margin: 1.8rem 0 0.6rem; color: var(--slate); }
#legal-body h2:first-child { margin-top: 0; }

/* ----------------------------- Footer -------------------------------- */
#site-footer { background: var(--slate-deep); color: rgba(239, 234, 224, 0.75); padding: 3.6rem 0 0; margin-top: 1rem; }
#footer-brand { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 1.2rem; color: #fff; }
#footer-sub { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ochre-lt); }
#site-footer h2 { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 1rem; font-family: 'Archivo', sans-serif; text-transform: uppercase; }
#site-footer a { color: rgba(239, 234, 224, 0.75); }
#site-footer a:hover { color: var(--ochre-lt); }
#site-footer p, #site-footer li { margin-bottom: 0; }
#site-footer hr { border-color: rgba(188, 122, 58, 0.2); opacity: 1; }
#fed-band #fed-chip { color: #fff; background: rgba(239, 234, 224, 0.06); border-color: rgba(188, 122, 58, 0.3); }
#footer-copy { font-size: 0.82rem; color: rgba(239, 234, 224, 0.5); }

/* --------------------------- Responsive ------------------------------ */
@media (max-width: 991.98px) {
  #topnav .navbar-collapse {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; margin-top: 0.6rem; padding: 0.8rem;
  }
  #topnav .nav-link::after { display: none; }
  #hero { padding: 4rem 0; }
  #hero-truss { display: none; }
  #hero::before { background: linear-gradient(180deg, rgba(22,44,58,0.82), rgba(22,44,58,0.94)); }
  #contact-card { padding: 2.2rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
