/* =========================================================================
   Assurances Bastian & LuxFiscalité — courtage & fiscalité (Yutz) — site.css
   Archétype : « cabinet premium de courtage & fiscalité — élégant, confiance ».
   Signature : SÉRIF Faustina + FILETS D'OR fins sous les titres + GUILLEMETS OR
   sur les avis + cartes à liseré or. Palette émeraude + or sur ivoire.
   ANTI-FOOTPRINT : aucune classe custom — uniquement classes/ids Bootstrap existants,
   éléments et pseudo-éléments.
   ========================================================================= */

:root {
  --ab-emerald: #0e4a3c;        /* vert émeraude (dominante) */
  --ab-emerald-rgb: 14, 74, 60;
  --ab-emerald-2: #0a3a2f;
  --ab-emerald-3: #14654f;
  --ab-gold: #c8a24b;           /* or (accent) */
  --ab-gold-rgb: 200, 162, 75;
  --ab-gold-deep: #a8842f;
  --ab-ivory: #f8f4ec;         /* ivoire chaud (fond) */
  --ab-ivory-2: #efe8d9;
  --ab-paper: #fffdf9;
  --ab-ink: #1b2d27;
  --ab-muted: #6c7b73;
  --ab-line: #e4ddcc;

  --bs-primary: #0e4a3c;
  --bs-primary-rgb: 14, 74, 60;

  --bs-body-bg: var(--ab-ivory);
  --bs-body-color: #3f4b44;
  --bs-body-font-family: 'Onest', system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.05rem;
  --bs-body-line-height: 1.72;

  --bs-heading-color: var(--ab-emerald);
  --bs-link-color: var(--ab-emerald);
  --bs-link-hover-color: var(--ab-gold-deep);
  --bs-border-color: var(--ab-line);

  --ab-shadow: 0 26px 54px -32px rgba(10, 58, 47, 0.42), 0 6px 16px -10px rgba(10, 58, 47, 0.2);
}

body { background-color: var(--ab-ivory); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Faustina', Georgia, serif; font-weight: 600;
  line-height: 1.18; letter-spacing: -0.005em; color: var(--ab-emerald);
}
p { text-wrap: pretty; }
::selection { background: var(--ab-gold); color: var(--ab-emerald); }
a { transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease, border-color 0.16s ease; }

#sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; position: relative; padding-bottom: 0.9rem; }
#sec-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 60px; height: 2px; background: var(--ab-gold); }

/* =========================================================================
   TOP BAR + NAVBAR
   ========================================================================= */
#topbar { background: var(--ab-emerald-2); color: #cdd9d2; font-size: 0.82rem; }
#topbar a { color: #cdd9d2; text-decoration: none; }
#topbar-tel { font-weight: 600; }
#topbar .bi { color: var(--ab-gold); }

.navbar.sticky-top {
  background-color: rgba(248, 244, 236, 0.97) !important;
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ab-line);
  box-shadow: 0 8px 24px -20px rgba(10, 58, 47, 0.5);
}
#brand-logo { height: auto; max-height: 52px; width: auto; }
.navbar .nav-link {
  font-family: 'Onest', sans-serif; font-weight: 500; font-size: 0.95rem;
  color: var(--ab-emerald) !important; position: relative; padding-inline: 0.85rem;
}
.navbar .nav-link::after { content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px; background: var(--ab-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.navbar .nav-link:hover::after, .navbar .nav-link:focus::after { transform: scaleX(1); }
.navbar .nav-link:hover { color: var(--ab-gold-deep) !important; }

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn { --bs-btn-font-family: 'Onest', sans-serif; --bs-btn-font-weight: 600; border-radius: 6px; }
.btn-lg { padding: 0.72rem 1.8rem; }
.btn-primary { --bs-btn-bg: var(--ab-gold); --bs-btn-color: var(--ab-emerald); --bs-btn-border-color: var(--ab-gold); --bs-btn-hover-bg: var(--ab-gold-deep); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--ab-gold-deep); box-shadow: 0 12px 24px -14px rgba(200, 162, 75, 0.7); }
.btn-primary:hover { transform: translateY(-2px); }

/* =========================================================================
   HERO
   ========================================================================= */
#hero { position: relative; overflow: hidden; background:
    radial-gradient(700px 400px at 85% 10%, rgba(200, 162, 75, 0.1), transparent 60%),
    linear-gradient(135deg, var(--ab-emerald), var(--ab-emerald-2)); padding: 4.5rem 0; }
#hero-eyebrow { display: inline-block; color: var(--ab-gold); font-family: 'Onest', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
#hero-title { color: #fff; font-family: 'Faustina', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
#hero-intro { color: #d7e2db; font-size: 1.18rem; margin: 1.3rem 0 2rem; max-width: 38rem; }
#hero-figure { border-radius: 14px; overflow: hidden; border: 1px solid rgba(200, 162, 75, 0.4); box-shadow: var(--ab-shadow); }
#hero-figure img { display: block; width: 100%; }

/* =========================================================================
   À PROPOS
   ========================================================================= */
#apropos-lead { font-family: 'Faustina', serif; font-size: 1.5rem; font-weight: 600; color: var(--ab-emerald); line-height: 1.4; margin-bottom: 1.4rem; position: relative; padding-top: 1.6rem; }
#apropos-lead::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 54px; height: 2px; background: var(--ab-gold); }
#apropos-text { color: #45524b; font-size: 1.08rem; margin-bottom: 1.2rem; }

/* =========================================================================
   2 PÔLES
   ========================================================================= */
#polo-card { background: var(--ab-paper); border: 1px solid var(--ab-line); border-top: 4px solid var(--ab-gold); border-radius: 12px; box-shadow: var(--ab-shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
#polo-card:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -34px rgba(10, 58, 47, 0.5); }
#polo-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(14, 74, 60, 0.08); color: var(--ab-emerald); font-size: 1.6rem; margin-bottom: 1.1rem; }
#polo-title { font-family: 'Faustina', serif; font-size: 1.6rem; font-weight: 700; color: var(--ab-emerald); margin-bottom: 0.8rem; }
#polo-text { color: #45524b; margin-bottom: 1.2rem; }
#polo-cta { font-family: 'Onest', sans-serif; font-weight: 600; color: var(--ab-gold-deep); text-decoration: none; }
#polo-cta:hover { color: var(--ab-emerald); }

/* =========================================================================
   FRONTALIERS
   ========================================================================= */
#front-figure { border-radius: 14px; overflow: hidden; box-shadow: var(--ab-shadow); border: 5px solid #fff; position: relative; }
#front-figure::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(200, 162, 75, 0.5); pointer-events: none; }
#front-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#front-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
#front-text { color: #45524b; font-size: 1.1rem; }

/* =========================================================================
   ILS NOUS FONT CONFIANCE
   ========================================================================= */
#fiducia { background: var(--ab-ivory-2); }
#rec-card { background: var(--ab-paper); border: 1px solid var(--ab-line); border-radius: 12px; box-shadow: var(--ab-shadow); position: relative; }
#rec-quote { color: var(--ab-gold); font-size: 2rem; display: block; line-height: 1; margin-bottom: 0.5rem; }
#rec-text { font-family: 'Faustina', serif; font-style: italic; color: #3f4b44; font-size: 1.06rem; line-height: 1.6; margin-bottom: 1rem; }
#rec-author { font-family: 'Onest', sans-serif; font-weight: 700; color: var(--ab-emerald); font-size: 0.95rem; }
#part-logo { background: #fff; border: 1px solid var(--ab-line); border-radius: 10px; padding: 0.9rem 1.4rem; height: 5rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--ab-shadow); }
#part-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* =========================================================================
   SEO + FOOTER
   ========================================================================= */
#seo { background: var(--ab-paper); border-top: 1px solid var(--ab-line); }
#seo h2 { color: var(--ab-emerald); }
#seo p { color: var(--ab-muted); }

footer#colophon { background: linear-gradient(160deg, var(--ab-emerald), var(--ab-emerald-2)); color: #cdd9d2; padding: 3.6rem 0 2rem; border-top: 4px solid var(--ab-gold); }
#footer-name { color: #fff; font-family: 'Faustina', serif; font-weight: 700; }
#footer-addr { color: #cdd9d2; }
#footer-label { color: var(--ab-gold); font-family: 'Faustina', serif; font-weight: 700; font-size: 1.05rem; }
footer#colophon a, footer#colophon li { color: #cdd9d2 !important; }
footer#colophon a:hover { color: #fff !important; }
footer#colophon .bi { color: var(--ab-gold); }
#footer-hours li { color: #b3c2ba; }
#footer-rule { border-top-color: rgba(200, 162, 75, 0.3); opacity: 1; }
#footer-orias, #copyright { color: #9bafa6; }

/* a11y */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--ab-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
