/* ============================================================
   Primo Immobilier — Luxe Saphir Profond × identite immoweek
   Palette : navy #014b69 (concurrent) + amber #ef8a47 (concurrent)
   Fonts   : Suez One (titres) + Hind (corps) — Design DB pick
   ============================================================ */

:root {
  --bc7-primary:   #014b69;
  --bc7-primary-2: #0087ba;
  --bc7-accent:    #ef8a47;
  --bc7-accent-2:  #D4B86A;
  --bc7-text:      #1c2533;
  --bc7-text-soft: #5a6075;
  --bc7-bg:        #F8F6F0;
  --bc7-bg-alt:    #F4FCFF;
  --bc7-surface:   #FFFFFF;
  --bc7-line:      #D5DCE5;
  --bc7-shadow:    0 8px 28px rgba(1, 75, 105, .12);
  --bc7-shadow-lg: 0 18px 60px rgba(1, 75, 105, .18);
  --bc7-radius:    10px;
  --bc7-radius-lg: 16px;
  --bc7-max:       1240px;
  --bc7-gutter:    1.5rem;
}

/* Dark theme overrides (only if user toggles, not enabled here but harmless) */
html[data-theme="dark"] {
  --bc7-bg: #0d1622;
  --bc7-bg-alt: #131f30;
  --bc7-surface: #182438;
  --bc7-text: #f0f3f8;
  --bc7-text-soft: #aab4c3;
  --bc7-line: #2a3a52;
}

/* --- RESET / BASE -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bc7-body {
  margin: 0; padding: 0;
  font-family: "Hind", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--bc7-text);
  background: var(--bc7-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Suez One", Georgia, serif;
  font-weight: 400; line-height: 1.2;
  color: var(--bc7-primary);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--bc7-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bc7-accent); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--bc7-line); margin: 2.4rem 0; }
.bc7-container { max-width: var(--bc7-max); margin: 0 auto; padding: 0 var(--bc7-gutter); }

/* --- BUTTONS ------------------------------------------------- */
.bc7-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--bc7-radius);
  font-family: "Hind", sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.bc7-btn--primary { background: var(--bc7-primary); color: #fff; }
.bc7-btn--primary:hover { background: #013856; color: #fff; }
.bc7-btn--accent { background: var(--bc7-accent); color: #fff; }
.bc7-btn--accent:hover { background: #d97a3a; color: #fff; transform: translateY(-2px); }
.bc7-btn--ghost {
  background: transparent; color: var(--bc7-primary); border-color: var(--bc7-primary);
}
.bc7-btn--ghost:hover { background: var(--bc7-primary); color: #fff; }

/* CTA animation : border_draw_button --------------------------- */
.bc7-btn--cta {
  position: relative;
  background: transparent;
  color: var(--bc7-primary);
  border: 2px solid transparent;
  padding: .85rem 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: visible;
  background-image:
    linear-gradient(var(--bc7-surface), var(--bc7-surface)),
    linear-gradient(135deg, var(--bc7-primary), var(--bc7-accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.bc7-btn--cta::before,
.bc7-btn--cta::after {
  content: ""; position: absolute; inset: -2px;
  border: 2px solid var(--bc7-accent);
  border-radius: var(--bc7-radius);
  pointer-events: none;
  opacity: 0;
}
.bc7-btn--cta:hover {
  color: #fff;
  background-image: linear-gradient(135deg, var(--bc7-primary), #013856);
}
.bc7-btn--cta:hover::before {
  animation: rpBorderDrawTop .55s ease forwards;
  opacity: 1;
}
.bc7-btn--cta:hover::after {
  animation: rpBorderDrawBot .55s ease .2s forwards;
  opacity: 1;
}
@keyframes rpBorderDrawTop {
  0%   { clip-path: inset(0 100% 50% 0); }
  100% { clip-path: inset(0 0 50% 0); }
}
@keyframes rpBorderDrawBot {
  0%   { clip-path: inset(50% 0 0 100%); }
  100% { clip-path: inset(50% 0 0 0); }
}

/* CTR animation : thin_promo_bar (top bar) --------------------- */
.bc7-promo-bar {
  position: relative;
  background: linear-gradient(90deg, var(--bc7-primary), #013856, var(--bc7-primary));
  background-size: 200% 100%;
  color: #fff;
  text-align: center;
  font-size: .92rem; font-weight: 500;
  padding: .55rem 1rem;
  animation: rpPromoSlide 12s linear infinite;
  letter-spacing: .02em;
}
.bc7-promo-bar a {
  color: var(--bc7-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: .35em;
  font-weight: 600;
}
.bc7-promo-bar a:hover { color: #fff; }
@keyframes rpPromoSlide {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* CTO animation : floating_contact_card ----------------------- */
.bc7-cto-card {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-left: 4px solid var(--bc7-accent);
  border-radius: var(--bc7-radius);
  padding: 1rem 1.2rem;
  width: 280px;
  box-shadow: var(--bc7-shadow-lg);
  z-index: 50;
  transform: translateY(140%);
  opacity: 0;
  animation: rpCtoIn .7s ease 4s forwards, rpCtoFloat 5s ease-in-out 5s infinite;
}
.bc7-cto-card__title {
  font-family: "Suez One", serif;
  font-size: 1.05rem; color: var(--bc7-primary);
  margin: 0 0 .3em;
}
.bc7-cto-card__body { font-size: .9rem; color: var(--bc7-text-soft); margin-bottom: .6rem; }
.bc7-cto-card__cta {
  display: inline-block;
  background: var(--bc7-accent);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-weight: 600; font-size: .88rem;
  text-decoration: none;
}
.bc7-cto-card__cta:hover { background: #d97a3a; }
.bc7-cto-card__close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.1rem; color: var(--bc7-text-soft);
}
@keyframes rpCtoIn {
  0% { transform: translateY(140%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes rpCtoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (max-width: 560px) {
  .bc7-cto-card { right: 10px; left: 10px; width: auto; bottom: 10px; }
}

/* --- HEADER (logo-left-menu-right + mega menu) --------------- */
.bc7-header {
  background: var(--bc7-surface);
  border-bottom: 1px solid var(--bc7-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.bc7-header-inner {
  max-width: var(--bc7-max);
  margin: 0 auto;
  padding: .9rem var(--bc7-gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.bc7-brand-link {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; color: var(--bc7-primary);
}
.bc7-brand-logo {
  height: 50px; width: auto; display: block;
}
.bc7-brand-name {
  font-family: "Suez One", serif;
  font-size: 1.5rem;
  color: var(--bc7-primary);
  /* Casing style B (Title Case): no text-transform */
  letter-spacing: 0;
  line-height: 1;
}
.bc7-nav { display: flex; align-items: center; }
.bc7-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.bc7-nav-list > li { position: relative; }
.bc7-nav-list > li > a {
  font-family: "Hind", sans-serif;
  font-weight: 500;
  color: var(--bc7-text);
  text-decoration: none;
  padding: .5rem 0;
  display: block;
  position: relative;
  transition: color .25s ease;
}
.bc7-nav-list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--bc7-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.bc7-nav-list > li:hover > a,
.bc7-nav-list > li:focus-within > a { color: var(--bc7-primary); }
.bc7-nav-list > li:hover > a::after,
.bc7-nav-list > li:focus-within > a::after { transform: scaleX(1); }

/* MEGA MENU (layout C : split nav + featured) ------------------ */
/* anti-empreinte : seul site sur 3 a un mega-menu, layout pioché % 5 = 2 */
.bc7-megapanel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 720px;
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-top: 3px solid var(--bc7-accent);
  box-shadow: var(--bc7-shadow-lg);
  padding: 1.6rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  z-index: 110;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
}
.bc7-nav-list > li:hover > .bc7-megapanel,
.bc7-nav-list > li:focus-within > .bc7-megapanel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s;
}
.bc7-megapanel__nav {
  border-right: 1px solid var(--bc7-line);
  padding-right: 1.2rem;
}
.bc7-megapanel__nav h4 {
  font-family: "Suez One", serif;
  font-size: .85rem;
  color: var(--bc7-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .8rem;
}
.bc7-megapanel__nav a {
  display: block; padding: .35rem 0;
  font-size: .92rem;
  color: var(--bc7-text);
  text-decoration: none;
}
.bc7-megapanel__nav a:hover { color: var(--bc7-accent); }
.bc7-megapanel__feat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.bc7-megapanel__article {
  text-decoration: none; color: inherit;
  display: block;
}
.bc7-megapanel__article-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bc7-bg-alt) center/cover no-repeat;
  border-radius: 6px;
  margin-bottom: .5rem;
}
.bc7-megapanel__article-title {
  font-family: "Suez One", serif;
  font-size: .98rem;
  color: var(--bc7-primary);
  line-height: 1.3;
  margin: 0 0 .25rem;
}
.bc7-megapanel__article-meta {
  font-size: .78rem;
  color: var(--bc7-text-soft);
}
.bc7-megapanel__article:hover .bc7-megapanel__article-title { color: var(--bc7-accent); }
.bc7-megapanel__empty {
  grid-column: 1 / -1;
  padding: 1.2rem;
  text-align: center;
  color: var(--bc7-text-soft);
  font-style: italic;
}
.bc7-megapanel__empty a {
  color: var(--bc7-accent);
  text-decoration: underline;
}

/* Burger / nav mobile (default HIDDEN, only shown when .is-open + mobile) */
.bc7-burger {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
}
.bc7-burger span {
  display: block; width: 26px; height: 2px;
  background: var(--bc7-primary);
  transition: transform .3s, opacity .3s;
}
.bc7-nav-mobile { display: none; }

@media (max-width: 980px) {
  .bc7-nav-list { display: none; }
  .bc7-burger { display: flex; }
  .bc7-nav-mobile.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  .bc7-nav-mobile.is-open a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid #e5e5e5;
    color: #0a0a0a;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
  }
  .bc7-nav-mobile.is-open a:hover { color: var(--bc7-accent); }
  .bc7-nav-mobile__close {
    position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: 0;
    font-size: 1.6rem; color: #0a0a0a; cursor: pointer;
  }
  .bc7-megapanel { display: none !important; }
}

/* --- HERO : fade-reveal -------------------------------------- */
.bc7-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bc7-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: rpHeroFadeReveal 1.6s ease forwards;
  opacity: 0;
  transform: scale(1.04);
}
@keyframes rpHeroFadeReveal {
  0%   { opacity: 0; transform: scale(1.06); filter: blur(8px); }
  100% { opacity: 1; transform: scale(1.0); filter: blur(0); }
}
.bc7-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--bc7-max);
  margin: 0 auto;
  padding: 4rem var(--bc7-gutter);
  color: var(--bc7-surface);
}
.bc7-hero-eyebrow {
  display: inline-block;
  font-family: "Hind", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bc7-accent-2);
  background: rgba(1, 75, 105, .65);
  padding: .35rem .9rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  animation: rpHeroFadeReveal 1.6s ease .4s both;
}
.bc7-hero-title {
  font-family: "Suez One", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
  margin: 0 0 1rem;
  max-width: 800px;
  animation: rpHeroFadeReveal 1.6s ease .6s both;
}
.bc7-hero-subtitle {
  font-family: "Hind", sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  max-width: 640px;
  margin: 0 0 1.8rem;
  animation: rpHeroFadeReveal 1.6s ease .8s both;
}
.bc7-hero-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bc7-accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--bc7-radius);
  font-family: "Hind", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(239, 138, 71, .35);
  animation: rpHeroFadeReveal 1.6s ease 1s both;
  transition: transform .25s ease, background-color .25s ease;
}
.bc7-hero-cta:hover {
  background: #d97a3a;
  color: #fff;
  transform: translateY(-3px);
}
/* Hero gradient overlay : ONLY when video — image hero stays clean */
.bc7-hero--has-video::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 100%);
  z-index: 0;
}
/* Slight side gradient on image hero for legibility of text on busy bgs */
.bc7-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(1, 75, 105, .55) 0%, rgba(1, 75, 105, .15) 50%, transparent 80%);
  pointer-events: none;
}

/* --- EDITORIAL BLOC SEO (after hero) ------------------------- */
.bc7-editorial {
  background: var(--bc7-bg);
  padding: 4rem var(--bc7-gutter);
}
.bc7-editorial__inner {
  max-width: 920px;
  margin: 0 auto;
}
.bc7-editorial__kicker {
  display: inline-block;
  font-family: "Hind", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bc7-accent);
  margin-bottom: .8rem;
}
.bc7-editorial h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
}
.bc7-editorial h3 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  margin-bottom: .6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--bc7-accent);
}
.bc7-editorial p { font-size: 1.05rem; color: var(--bc7-text); }
.bc7-editorial p a { color: var(--bc7-accent); font-weight: 500; }
.bc7-editorial p a:hover { color: var(--bc7-primary); }
.bc7-editorial__line {
  background: var(--bc7-surface);
  border-left: 4px solid var(--bc7-primary);
  padding: 1.4rem 1.6rem;
  border-radius: 6px;
  margin: 2.4rem 0 0;
  box-shadow: var(--bc7-shadow);
}
.bc7-editorial__line h3 {
  margin-top: 0; border: 0; padding: 0;
  color: var(--bc7-primary);
}
.bc7-editorial__line p { margin-bottom: 0; color: var(--bc7-text-soft); font-style: italic; }

/* --- SECTION TITLE ------------------------------------------- */
.bc7-section-title {
  text-align: center;
  margin-bottom: 2.2rem;
}
.bc7-section-title .kicker {
  display: block;
  font-family: "Hind", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bc7-accent);
  margin-bottom: .5rem;
}
.bc7-section-title h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
}

/* --- CATEGORIES GRID ----------------------------------------- */
.bc7-categories {
  padding: 4rem var(--bc7-gutter);
  background: var(--bc7-bg-alt);
}
.bc7-categories__grid {
  max-width: var(--bc7-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .bc7-categories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bc7-categories__grid { grid-template-columns: 1fr; } }

.bc7-cat-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--bc7-radius-lg);
  overflow: hidden;
  background: var(--bc7-primary);
  aspect-ratio: 4/5;
  box-shadow: var(--bc7-shadow);
  transition: transform .35s ease, box-shadow .35s ease;
  color: #fff;
}
.bc7-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bc7-shadow-lg);
  color: #fff;
}
.bc7-cat-card-img {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  z-index: 1;
  transition: transform .6s ease;
}
.bc7-cat-card:hover .bc7-cat-card-img { transform: scale(1.06); }
.bc7-cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,75,105,.05) 0%, rgba(1,75,105,.85) 100%);
  z-index: 2;
}
.bc7-cat-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.2rem;
  z-index: 3;
}
.bc7-cat-card-title {
  font-family: "Suez One", serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.bc7-cat-card-meta {
  display: inline-block;
  font-size: .78rem;
  color: var(--bc7-accent-2);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .35rem;
}

/* Fallback : if no image, solid color block */
.bc7-cat-card--noimg { background: linear-gradient(160deg, var(--bc7-primary), #013856); }
.bc7-cat-card--noimg::after { display: none; }

/* --- LATEST POSTS GRID (18 articles) ------------------------- */
.bc7-latest {
  padding: 4rem var(--bc7-gutter);
  background: var(--bc7-bg);
}
.bc7-latest__grid {
  max-width: var(--bc7-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 980px) { .bc7-latest__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bc7-latest__grid { grid-template-columns: 1fr; } }

.bc7-card {
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-radius: var(--bc7-radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.bc7-card:hover { transform: translateY(-4px); box-shadow: var(--bc7-shadow-lg); }
.bc7-card__thumb {
  display: block;
  aspect-ratio: 16/10;
  background: var(--bc7-bg-alt) center/cover no-repeat;
  overflow: hidden;
}
.bc7-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bc7-card:hover .bc7-card__thumb img { transform: scale(1.04); }
.bc7-card__body { padding: 1.2rem 1.3rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.bc7-card__cat {
  display: inline-block;
  font-family: "Hind", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bc7-accent);
  text-decoration: none;
  margin-bottom: .5rem;
}
.bc7-card__title {
  font-family: "Suez One", serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
}
.bc7-card__title a { color: var(--bc7-primary); text-decoration: none; }
.bc7-card__title a:hover { color: var(--bc7-accent); }
.bc7-card__excerpt {
  color: var(--bc7-text-soft);
  font-size: .95rem;
  margin-bottom: .9rem;
  flex: 1;
}
.bc7-card__meta {
  font-size: .8rem;
  color: var(--bc7-text-soft);
  border-top: 1px solid var(--bc7-line);
  padding-top: .7rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* Empty-state for fresh sites */
.bc7-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bc7-text-soft);
  font-style: italic;
}
.bc7-empty a { color: var(--bc7-accent); font-weight: 600; }

/* --- METRICS LINKS BLOCK (mid-home, user-fed) ---------------- */
.bc7-metrics {
  padding: 3rem var(--bc7-gutter);
  background: var(--bc7-surface);
  border-top: 1px solid var(--bc7-line);
  border-bottom: 1px solid var(--bc7-line);
}
.bc7-metrics__inner {
  max-width: var(--bc7-max);
  margin: 0 auto;
}
.bc7-metrics__title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}
.bc7-metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.bc7-metrics__link {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--bc7-line);
  border-radius: var(--bc7-radius);
  text-decoration: none;
  color: var(--bc7-primary);
  background: var(--bc7-bg-alt);
  transition: border-color .3s ease, transform .3s ease;
}
.bc7-metrics__link:hover {
  border-color: var(--bc7-accent);
  transform: translateY(-2px);
  color: var(--bc7-accent);
}

/* --- ABOUT TEASER ON HOME ------------------------------------ */
.bc7-about-teaser {
  padding: 4.5rem var(--bc7-gutter);
  background: var(--bc7-primary);
  color: rgba(255,255,255,.92);
}
.bc7-about-teaser__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.bc7-about-teaser h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.bc7-about-teaser p {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.bc7-about-teaser .bc7-btn--accent { box-shadow: 0 8px 24px rgba(239,138,71,.45); }

/* --- FOOTER (4 cols + tools col) ----------------------------- */
.bc7-footer {
  background: #082a3d;
  color: #cbd6e2;
  padding: 3.5rem var(--bc7-gutter) 0;
  font-size: .92rem;
}
.bc7-footer__grid {
  max-width: var(--bc7-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 980px) {
  .bc7-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bc7-footer__grid { grid-template-columns: 1fr; }
}
.bc7-footer-col h3,
.bc7-footer-title {
  color: #fff;
  font-family: "Suez One", serif;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.bc7-footer-logo {
  width: 110px; height: auto; display: block; margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.bc7-footer-brand-pitch {
  color: #cbd6e2;
  line-height: 1.6;
  font-size: .95rem;
  margin-bottom: 1.2rem;
}
.bc7-footer-brand-cta {
  display: inline-block;
  color: var(--bc7-accent-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}
.bc7-footer-brand-cta:hover { color: #fff; }
.bc7-footer-links {
  list-style: none; padding: 0; margin: 0;
}
.bc7-footer-links li { margin-bottom: .55rem; }
.bc7-footer-links a {
  color: #cbd6e2;
  text-decoration: underline;
  text-decoration-color: rgba(203, 214, 226, .25);
  text-underline-offset: 3px;
}
.bc7-footer-links a:hover { color: #fff; text-decoration-color: var(--bc7-accent); }
.bc7-footer-socials {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.bc7-footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background-color .3s ease, transform .3s ease;
}
.bc7-footer-socials a:hover {
  background: var(--bc7-accent);
  transform: translateY(-2px);
}
.bc7-footer-bottom {
  margin-top: 2.4rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 0;
  text-align: center;
  color: #8c9aab;
  font-size: .85rem;
}
.bc7-footer-bottom a { color: #cbd6e2; }

/* --- CONTENT PAGES (à-propos, contact, category, tool) ------- */
.bc7-page {
  padding: 3.5rem var(--bc7-gutter);
  max-width: 920px;
  margin: 0 auto;
}
.bc7-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}
.bc7-page h2 { margin-top: 2.2rem; }
.bc7-page h3 { margin-top: 1.8rem; }
.bc7-page p, .bc7-page li { font-size: 1.05rem; }
.bc7-page ul, .bc7-page ol { padding-left: 1.4rem; }
.bc7-page__intro {
  font-size: 1.15rem;
  color: var(--bc7-text-soft);
  font-family: "Hind", sans-serif;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.7;
  border-left: 3px solid var(--bc7-accent);
  padding-left: 1.2rem;
}
.bc7-persona-photo {
  float: right;
  width: 220px;
  height: auto;
  border-radius: var(--bc7-radius-lg);
  margin: 0 0 1.4rem 1.6rem;
  box-shadow: var(--bc7-shadow);
}
@media (max-width: 720px) {
  .bc7-persona-photo { float: none; display: block; margin: 0 auto 1.4rem; width: 60%; max-width: 220px; }
}

/* --- CONTACT FORM EMBED -------------------------------------- */
.bc7-contact-form {
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-radius: var(--bc7-radius-lg);
  padding: 1rem;
  margin-top: 2rem;
  box-shadow: var(--bc7-shadow);
}

/* --- CATEGORY PAGE (intro-faq layout) ------------------------ */
.bc7-cat-page { padding-top: 3rem; }
.bc7-cat-hero {
  background: linear-gradient(135deg, var(--bc7-primary) 0%, #013856 100%);
  color: #fff;
  padding: 3rem var(--bc7-gutter);
  text-align: center;
}
.bc7-cat-hero h1 { color: #fff; }
.bc7-cat-hero p {
  color: rgba(255,255,255,.9);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.bc7-cat-faq {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 var(--bc7-gutter);
}
.bc7-cat-faq details {
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-radius: var(--bc7-radius);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
  cursor: pointer;
}
.bc7-cat-faq summary {
  font-family: "Suez One", serif;
  color: var(--bc7-primary);
  font-size: 1.05rem;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.bc7-cat-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--bc7-accent);
  transition: transform .3s ease;
}
.bc7-cat-faq details[open] summary::after { content: "−"; }
.bc7-cat-faq details > p, .bc7-cat-faq details > div { margin-top: .8rem; color: var(--bc7-text-soft); }
.bc7-cat-outro {
  max-width: 860px;
  margin: 3rem auto;
  padding: 2rem var(--bc7-gutter);
  background: var(--bc7-bg-alt);
  border-radius: var(--bc7-radius-lg);
}

/* --- TOOLS (interactive widgets) ----------------------------- */
.bc7-tool-wrap {
  background: var(--bc7-surface);
  border: 1px solid var(--bc7-line);
  border-radius: var(--bc7-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--bc7-shadow);
}

/* --- ACCESSIBILITY / FOCUS ----------------------------------- */
:focus-visible {
  outline: 2px solid var(--bc7-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- RESPONSIVE TWEAKS --------------------------------------- */
@media (max-width: 600px) {
  .bc7-hero-inner { padding: 3rem 1rem; }
  .bc7-categories, .bc7-latest, .bc7-editorial, .bc7-about-teaser { padding: 2.5rem 1rem; }
  .bc7-section-title h2 { font-size: 1.6rem; }
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !important; margin: 0 !important; font-weight: 800 !important; text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !important; }
body [class*="cat-hero"] [class*="breadcrumb"], body [class*="cat-hero"] nav[aria-label*="riane"], body [class*="cat-hero"] nav[aria-label*="readcrumb"] { display: none !important; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible (dark on light) v1 */
/* Bouton burger mobile : couleur SOMBRE forcee + leger fond pour qu'il soit toujours distinguable du header (fond clair ou sombre indifferent). */
[class*="-burger"], [class*="-burger"] * { color: #1a1a1a !important; }
[class*="-burger"] svg { stroke: #1a1a1a !important; fill: none !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"] { background: rgba(0,0,0,0.05) !important; border-radius: 6px !important; border: 1px solid rgba(0,0,0,0.1) !important; padding: 6px !important; }
/* Si le header a un fond sombre (defini en inline ou via classe), on inverse en blanc */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 980px) {
  [class*="-burger"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 44px !important; height: 44px !important; }
}
/* RANKO PRIMO-CUSTOM 2026-07-10 */

.bc7-hero-title { color: #ffffff !important; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.bc7-about-teaser h2 { color: #ffffff !important; }
.bc7-cat-card-title { color: #ffffff !important; }

