/* ==========================================================================
   plan-financier (plan-financier.fr) — site.css
   Direction : « Patrimoine éditorial — cabinet de gestion ».
   Signature : TRAJECTOIRE ASCENDANTE (courbe de croissance dorée à nœuds).
   Vert-forêt de confiance + or premium sur crème. Site MINCE (portail finance).
   Anti-footprint : aucune classe custom — classes/ids Bootstrap + pseudo-éléments.
   ========================================================================== */

:root {
  --forest: #14432e;       /* vert-forêt (patrimoine) */
  --forest-2: #1c5a3d;
  --forest-deep: #0f3323;  /* footer / panneaux */
  --gold: #c8a24b;         /* or premium */
  --gold-lt: #e0c583;
  --ink: #20261f;
  --ink-soft: #414a3f;
  --cream: #f5f1e6;        /* fond */
  --surface: #fcfaf3;
  --muted: #6d7268;
  --line: #e2dcc9;

  --bs-primary: var(--forest);
  --bs-primary-rgb: 20, 67, 46;
  --bs-secondary: var(--gold);
  --bs-secondary-rgb: 200, 162, 75;
  --bs-body-bg: var(--cream);
  --bs-body-color: #2c322a;
  --bs-body-font-family: 'Golos Text', system-ui, sans-serif;
  --bs-body-font-size: 1.03rem;
  --bs-body-line-height: 1.75;
  --bs-link-color: var(--forest);
  --bs-link-hover-color: var(--gold);
  --bs-border-color: var(--line);
  --bs-emphasis-color: var(--ink);
}

/* ------------------------------ Base --------------------------------- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(1000px 520px at 100% -6%, rgba(200, 162, 75, 0.1), transparent 60%),
    radial-gradient(820px 460px at -8% 2%, rgba(20, 67, 46, 0.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -0.005em;
}

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

a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(20, 67, 46, 0.5); outline-offset: 2px; box-shadow: none;
}
section[id] { scroll-margin-top: 90px; }

/* Kicker signature : trajectoire miniature (or) + libellé espacé */
#kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Golos Text', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem;
  margin-bottom: 0.9rem; color: var(--gold);
}
#kicker::before {
  content: ""; width: 26px; height: 12px; flex: none;
  background:
    linear-gradient(45deg, transparent 45%, var(--gold) 45%, var(--gold) 55%, transparent 55%) no-repeat,
    radial-gradient(circle at 2px 10px, var(--gold) 2px, transparent 2.5px) no-repeat,
    radial-gradient(circle at 24px 2px, var(--gold) 2px, transparent 2.5px) no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* --------------------------- Boutons --------------------------------- */
.btn {
  --bs-btn-border-radius: 8px; --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: 0.6rem;
  font-family: 'Golos Text', 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(--forest); --bs-btn-border-color: var(--forest);
  --bs-btn-hover-bg: var(--forest-2); --bs-btn-hover-border-color: var(--forest-2);
  --bs-btn-active-bg: var(--forest-deep);
  box-shadow: 0 12px 24px -12px rgba(20, 67, 46, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(20, 67, 46, 0.65); }

/* ---------------------------- Navbar --------------------------------- */
#topnav {
  background: rgba(252, 250, 243, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
#brand-name { font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 1.28rem; color: var(--forest); letter-spacing: 0.01em; }
#topnav .nav-link {
  font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 0.94rem;
  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(--gold); 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(--forest); }
#topnav .nav-link:hover::after { transform: scaleX(1); }

/* Champ de recherche (navbar) */
#nav-search {
  gap: 0.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3rem 0.9rem;
}
#nav-search i { color: var(--gold); }
#nav-search input {
  border: 0; background: transparent; outline: none;
  font-family: 'Golos Text', sans-serif; font-size: 0.9rem; color: var(--ink); width: 140px;
}

/* ----------------------------- 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(15,51,35,0.94) 0%, rgba(15,51,35,0.72) 52%, rgba(15,51,35,0.35) 100%);
}
#hero-line { position: absolute; right: 0; bottom: 0; z-index: 1; width: 55%; height: 70%; color: rgba(200, 162, 75, 0.4); pointer-events: none; }
#hero-line svg { width: 100%; height: 100%; }
#hero .container { position: relative; z-index: 2; }
#hero #kicker { color: var(--gold-lt); }
#hero-title {
  font-family: 'Bodoni Moda', serif; font-weight: 800; color: #fff;
  font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1rem;
}
#hero-lead { color: rgba(245, 241, 230, 0.86); font-size: 1.15rem; max-width: 52ch; }
#hero-search {
  display: flex; align-items: center; gap: 0.6rem; max-width: 560px;
  background: rgba(252, 250, 243, 0.95); border-radius: 999px; padding: 0.4rem 0.5rem 0.4rem 1.2rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
#hero-search i { color: var(--gold); font-size: 1.1rem; }
#hero-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: 'Golos Text', sans-serif; font-size: 1rem; color: var(--ink); min-width: 0;
}

/* --------------------------- RUBRIQUES ------------------------------- */
#rubriques { padding: 5rem 0; }
#rubriques > .container > .mb-5 h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
#rub-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 2rem 1.8rem; color: var(--ink);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
#rub-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.32s ease;
}
#rub-card:hover { transform: translateY(-6px); box-shadow: 0 28px 46px -28px rgba(20, 67, 46, 0.4); border-color: transparent; }
#rub-card:hover::after { transform: scaleX(1); }
#rub-num {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 2rem;
  color: rgba(200, 162, 75, 0.28); line-height: 1;
}
#rub-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 1.2rem; border-radius: 14px;
  background: rgba(20, 67, 46, 0.08); color: var(--forest); font-size: 1.5rem;
  transition: background 0.28s ease, color 0.28s ease;
}
#rub-card:hover #rub-ico { background: var(--forest); color: var(--gold-lt); }
#rub-title { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; color: var(--forest); }
#rub-more {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem;
  font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.08em;
}
#rub-more i { transition: transform 0.24s ease; }
#rub-card:hover #rub-more i { transform: translateX(5px); }

/* ---------------- Pages secondaires (catégorie / légal) -------------- */
#page-head {
  background: var(--forest); color: #fff; padding: 3.6rem 0 2.6rem; position: relative; overflow: hidden;
}
#page-head::after {
  content: ""; position: absolute; right: -4%; bottom: -30%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 75, 0.25), transparent 70%); pointer-events: none;
}
#page-head #kicker { color: var(--gold-lt); }
#page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.2rem); position: relative; }
#page-head .breadcrumb a { color: rgba(245, 241, 230, 0.72); }
#page-head .breadcrumb a:hover { color: var(--gold-lt); }
#page-head .breadcrumb-item.active { color: var(--gold-lt); }
#page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(245,241,230,0.4); }

#empty-state {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 4rem 2rem; max-width: 620px; margin: 0 auto;
}
#empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 1.2rem; border-radius: 16px;
  background: rgba(20, 67, 46, 0.08); color: var(--forest); font-size: 1.9rem;
}
#empty-state p { color: var(--muted); }
#other-cats { max-width: 720px; margin: 0 auto; }
#cat-chip {
  font-family: 'Golos Text', sans-serif; font-weight: 600; font-size: 0.9rem;
  color: var(--forest); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
#cat-chip:hover { background: var(--forest); color: var(--gold-lt); border-color: var(--forest); }

#legal-body { max-width: 720px; font-size: 1.05rem; color: var(--ink-soft); }
#legal-body h2 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; color: var(--forest); }
#legal-body h2:first-child { margin-top: 0; }

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

/* ----------------------------- Footer -------------------------------- */
#site-footer { background: var(--forest-deep); color: rgba(245, 241, 230, 0.75); padding: 3.6rem 0 0; margin-top: 1rem; }
#footer-brand { font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 1.24rem; color: #fff; }
#footer-cats { font-family: 'Golos Text', sans-serif; color: var(--gold-lt); font-size: 0.92rem; letter-spacing: 0.02em; }
#site-footer h2 { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 1rem; font-family: 'Golos Text', sans-serif; text-transform: uppercase; }
#site-footer a { color: rgba(245, 241, 230, 0.75); }
#site-footer a:hover { color: var(--gold-lt); }
#site-footer p, #site-footer li { margin-bottom: 0; }
#site-footer hr { border-color: rgba(200, 162, 75, 0.2); opacity: 1; }
#footer-copy { font-size: 0.82rem; color: rgba(245, 241, 230, 0.55); }

/* --------------------------- Responsive ------------------------------ */
@media (max-width: 991.98px) {
  #topnav .navbar-collapse {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; margin-top: 0.6rem; padding: 0.8rem;
  }
  #topnav .nav-link::after { display: none; }
  #nav-search { margin-top: 0.5rem; }
  #hero { padding: 4rem 0; }
  #hero-line { display: none; }
  #hero::before { background: linear-gradient(180deg, rgba(15,51,35,0.82), rgba(15,51,35,0.94)); }
}

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