:root {
  --mfc-navy: #0B1363;
  --mfc-cream: #F6F1E7;
  --mfc-sand: #EFE7D4;
  --mfc-bordeaux: #7A1F2B;
  --mfc-gold: #C8A04B;
  --mfc-ink: #0A0E2E;
  --mfc-muted: #5A6383;
  --mfc-line: #E4DDC9;
  --mfc-sticky-top: clamp(72px, 10vw, 110px);
  --mfc-container-max: 1200px;
  --mfc-page-pad: 32px;
}

body:is(#module-prestablog-blog, #module-prestablog-conseils) #wrapper,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #content-wrapper,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #main,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #content {
  background: var(--mfc-cream);
}

body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) #wrapper,
body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) #content-wrapper,
body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) #main,
body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) #content,
body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) .mfc-blog,
body:is(#module-prestablog-blog, #module-prestablog-conseils):has(.mfc-art-grid) .mfc-toc {
  background: #fff;
}
  max-width: 100%;
}

body:is(#module-prestablog-blog, #module-prestablog-conseils) #content.page-content,
body:is(#module-prestablog-blog, #module-prestablog-conseils) .columns-container.container,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #center-column {
  padding: 0;
  max-width: none;
  width: 100%;
}

body:is(#module-prestablog-blog, #module-prestablog-conseils) nav.breadcrumb,
body:is(#module-prestablog-blog, #module-prestablog-conseils) .breadcrumb,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #prestablog_menu_cat,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #left-column,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #right-column {
  display: none !important;
}

body:is(#module-prestablog-blog, #module-prestablog-conseils) #prestablogfront,
body:is(#module-prestablog-blog, #module-prestablog-conseils) #prestablogfont {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.mfc-blog {
  width: 100%;
  color: var(--mfc-ink);
  background: var(--mfc-cream);
  font-family: Inter, sans-serif;
}

.mfc-blog h1,
.mfc-blog h2,
.mfc-blog h3,
.mfc-blog .mfc-grid-card__title {
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.mfc-container {
  width: 100%;
  max-width: var(--mfc-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mfc-page-pad);
  padding-right: var(--mfc-page-pad);
}

.mfc-breadcrumb-strip {
  background: #fff;
  border-bottom: 1px solid var(--mfc-line);
}

.mfc-breadcrumb-strip .mfc-container { padding-top: 14px; padding-bottom: 14px; }

.mfc-breadcrumb-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.mfc-breadcrumb-strip__item { display: inline-flex; align-items: center; color: var(--mfc-muted); }
.mfc-breadcrumb-strip__item:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--mfc-line); }
.mfc-breadcrumb-strip__item a { color: var(--mfc-navy); text-decoration: none; }
.mfc-breadcrumb-strip__item a:hover { color: var(--mfc-bordeaux); }

.mfc-blog-hero,
.mfc-art-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--mfc-navy);
}

.mfc-blog-hero__bg,
.mfc-art-hero-bg { position: absolute; inset: 0; }

.mfc-blog-hero__bg img,
.mfc-art-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfc-blog-hero::after,
.mfc-art-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,19,99,0.28) 0%, rgba(11,19,99,0.48) 45%, rgba(10,14,46,0.88) 100%);
}

.mfc-blog-hero__inner,
.mfc-art-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--mfc-container-max);
  margin: 0 auto;
  padding: 0 var(--mfc-page-pad) 40px;
  text-align: center;
}

.mfc-blog-hero__inner h1,
.mfc-art-hero h1 {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.08;
  color: var(--mfc-cream);
  margin: 0;
}

.mfc-blog-hero__inner p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  color: rgba(246,241,231,0.9);
  max-width: 720px;
  margin: 14px auto 0;
}

.mfc-blog-hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.mfc-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--mfc-gold);
  color: var(--mfc-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.mfc-hero-pill:hover { background: #d4ad58; color: var(--mfc-navy); }

.mfc-art-hero-inner { text-align: left; padding-bottom: 48px; }

.mfc-art-hero-eyebrow { display: flex; margin-bottom: 20px; }

.mfc-art-hero-eyebrow .cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mfc-navy);
  background: var(--mfc-gold);
  padding: 6px 14px;
}

.mfc-art-hero h1 {
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.05;
  max-width: 20ch;
}

.mfc-art-wrap { padding: 52px 0 110px; }

.mfc-art-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.mfc-art-main { min-width: 0; grid-area: main; }
.mfc-art-aside { grid-area: aside; }

@media (min-width: 992px) {
  .mfc-art-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    grid-template-areas: "main aside";
  }
  .mfc-toc {
    position: sticky;
    top: var(--mfc-sticky-top);
    max-height: calc(100vh - var(--mfc-sticky-top) - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 991px) {
  .mfc-art-grid { grid-template-areas: "aside" "main"; }
  .mfc-blog-hero, .mfc-art-hero { height: 300px; }
  .mfc-post-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mfc-prose h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--mfc-navy);
  margin: 64px 0 18px;
  scroll-margin-top: 120px;
}

.mfc-prose h3 {
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--mfc-bordeaux);
  margin: 28px 0 12px;
}

.mfc-prose p,
.mfc-prose li {
  font-size: 17px;
  line-height: 1.8;
  color: #2A2F45;
  margin-bottom: 20px;
}

.mfc-prose a { color: var(--mfc-bordeaux); }

.mfc-toc {
  border-top: 2px solid var(--mfc-navy);
  padding-top: 18px;
  background: var(--mfc-cream);
}

.mfc-toc-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mfc-bordeaux);
  margin-bottom: 18px;
}

.mfc-toc-nav { position: relative; }

.mfc-toc-list { list-style: none; padding: 0 0 0 22px; margin: 0; }

.mfc-toc-track {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--mfc-line);
}

.mfc-toc-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--mfc-gold);
  transition: height 0.15s linear;
}

.mfc-toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--mfc-muted);
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.35s ease;
}

.mfc-toc-link .num {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--mfc-line);
  transition: color 0.35s ease;
}
.mfc-toc-link:hover,
.mfc-toc-link.active { color: var(--mfc-navy); }
.mfc-toc-link.active .num { color: var(--mfc-gold); }
.mfc-toc-link--sub { padding-left: 12px; }

.mfc-art-foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--mfc-line);
}

.mfc-art-back {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mfc-bordeaux);
  text-decoration: none;
}

.mfc-cat-section {
  width: 100%;
  max-width: var(--mfc-container-max);
  margin: 0 auto;
  padding: 64px var(--mfc-page-pad);
  border-bottom: 1px solid var(--mfc-line);
}

.mfc-cat-section__head {
  border-bottom: 3px solid var(--mfc-gold);
  padding-bottom: 16px;
  margin-bottom: 36px;
}

.mfc-cat-section h2 { font-size: clamp(24px, 3vw, 38px); color: var(--mfc-navy); margin: 0; }
.mfc-cat-section__title-link { color: inherit; text-decoration: none; }
.mfc-cat-section__title-link:hover { color: var(--mfc-bordeaux); }

.mfc-post-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.mfc-grid-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--mfc-line);
}

.mfc-grid-card__link:hover { box-shadow: 0 10px 28px rgba(11, 19, 99, 0.08); }

.mfc-grid-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mfc-sand);
}

.mfc-grid-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mfc-grid-card__date {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(10, 14, 46, 0.72);
  color: #fff;
  font-size: 11px;
}

.mfc-grid-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 18px 18px 20px;
}

.mfc-grid-card__title { font-size: 19px; line-height: 1.3; color: var(--mfc-navy); margin: 0; }

.mfc-grid-card__btn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  background: var(--mfc-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mfc-cat-intro { font-size: 16px; line-height: 1.75; color: #2A2F45; max-width: 820px; }

.mfc-related { background: #fff; padding: 72px 0; border-top: 1px solid var(--mfc-line); }
.mfc-related h2 { font-size: 40px; color: var(--mfc-navy); margin: 0 0 28px; }

@media (max-width: 767px) {
  .mfc-blog-hero, .mfc-art-hero { height: 220px; }
  .mfc-art-hero h1 { max-width: none; }
  .mfc-post-list--grid { grid-template-columns: 1fr; }
}
