/* ==========================================================================
   KMG Agencement — FICHE RÉALISATION (realisations/projet.php)
   Continuité du carrousel : anthracite + or (présentation, galerie, vortex),
   crème (texte du projet, demande de devis), courbes dorées entre sections.
   Couleurs : variables de css/home-premium.css (--kmg-gold, --kmg-gold-grad,
   --kmg-gold-fill, --kmg-cream, --kmg-ink, --kmg-edge-dark, --kmg-anth-a…).
   Préfixe : html body#top.kmg-fiche-page (aucune incidence ailleurs).
   ========================================================================== */

html body#top.kmg-fiche-page { background: var(--kmg-edge-dark) !important; overflow-x: hidden; }
html.kf-lb-open, html.kf-lb-open body { overflow: hidden !important; }

html body#top.kmg-fiche-page .kf-main { display: block; margin: 0; padding: 0; }

/* Les anciennes feuilles imposent fond, padding et calques aux <section> */
html body#top.kmg-fiche-page .kf-main > section {
  position: relative;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
}
html body#top.kmg-fiche-page .kf-main > section::before,
html body#top.kmg-fiche-page .kf-main > section::after { content: none !important; display: none !important; }

html body#top.kmg-fiche-page .kf-wrap {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Titres ---------- */
html body#top.kmg-fiche-page .kf-title,
html body#top.kmg-fiche-page .kf-h2,
html body#top.kmg-fiche-page .kf-h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--kmg-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: none !important;
  text-shadow: none;
}
html body#top.kmg-fiche-page .kf-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  line-height: 1.1 !important;
  color: #f6f0e3 !important;
  -webkit-text-fill-color: #f6f0e3 !important;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .45);
}
html body#top.kmg-fiche-page .kf-h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem) !important;
  line-height: 1.15 !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}
html body#top.kmg-fiche-page .kf-h2--light {
  color: #f6f0e3 !important;
  -webkit-text-fill-color: #f6f0e3 !important;
  text-align: center;
}
html body#top.kmg-fiche-page .kf-h3 {
  font-size: 1.3rem !important;
  line-height: 1.25 !important;
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  margin-bottom: 16px !important;
}
html body#top.kmg-fiche-page .kf-gold {
  background: var(--kmg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: transparent !important;
}
html body#top.kmg-fiche-page .kf-sub {
  margin: 10px auto 0 !important;
  max-width: 640px;
  text-align: center;
  font-family: var(--kmg-sans) !important;
  font-size: .98rem !important;
  line-height: 1.6 !important;
  color: rgba(246, 240, 227, .78) !important;
}

/* ---------- Boutons ---------- */
html body#top.kmg-fiche-page .kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--kmg-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}
html body#top.kmg-fiche-page .kf-btn--gold {
  background: var(--kmg-gold-fill);
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
  border: 0;
  box-shadow: 0 0 0 1px rgba(255, 248, 220, .4), 0 8px 22px rgba(232, 204, 128, .3);
}
html body#top.kmg-fiche-page .kf-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 248, 220, .6), 0 12px 28px rgba(232, 204, 128, .45); }
html body#top.kmg-fiche-page .kf-btn--line {
  background: rgba(31, 30, 28, .55);
  border: 1.5px solid rgba(232, 204, 128, .7);
  color: var(--kmg-gold) !important;
  -webkit-text-fill-color: var(--kmg-gold) !important;
}
html body#top.kmg-fiche-page .kf-btn--line:hover { background: var(--kmg-gold-fill); color: var(--kmg-ink) !important; -webkit-text-fill-color: var(--kmg-ink) !important; }
html body#top.kmg-fiche-page .kf-btn--ink {
  background: transparent;
  border: 1.5px solid rgba(45, 44, 41, .35);
  color: var(--kmg-ink) !important;
  -webkit-text-fill-color: var(--kmg-ink) !important;
}
html body#top.kmg-fiche-page .kf-btn--ink:hover { border-color: #c9ab62; }
html body#top.kmg-fiche-page .kf-btn--lg { padding: 16px 40px; font-size: 1.05rem; }
html body#top.kmg-fiche-page .kf-btn--block { display: flex; width: 100%; margin-top: 18px; white-space: normal; text-align: center; }
html body#top.kmg-fiche-page .kf-btn:focus-visible,
html body#top.kmg-fiche-page .kf-back:focus-visible,
html body#top.kmg-fiche-page .kf-nav:focus-visible,
html body#top.kmg-fiche-page .kf-thumb:focus-visible,
html body#top.kmg-fiche-page .kf-sib:focus-visible,
html body#top.kmg-fiche-page .kf-hero__zoom:focus-visible,
html body#top.kmg-fiche-page .kf-slide__zoom:focus-visible,
html body#top.kmg-fiche-page .kf-viewer__stage:focus-visible {
  outline: 2px solid #f5e6a3;
  outline-offset: 3px;
}

/* ---------- Courbes entre sections ---------- */
html body#top.kmg-fiche-page .kf-curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(46px, 6vw, 86px);
  z-index: 1;
  pointer-events: none;
}
html body#top.kmg-fiche-page .kf-curve svg { display: block; width: 100%; height: 100%; }
html body#top.kmg-fiche-page .kf-curve--to-cream .kf-curve__fill { fill: var(--kmg-cream); }
html body#top.kmg-fiche-page .kf-curve--to-dark .kf-curve__fill { fill: var(--kmg-edge-dark); }
html body#top.kmg-fiche-page .kf-curve__line {
  fill: none;
  stroke: #f0d57f;
  stroke-width: 1.4px;
  opacity: .8;
  filter: drop-shadow(0 0 3px rgba(232, 204, 128, .6));
}
/* -99% plus -1px left a viewport-dependent gap. Use the full wave height
   and one pixel of overlap into its own cream CTA to avoid two separately
   antialiased edges. The curve path and its gold stroke stay unchanged. */
html body#top.kmg-fiche-page .kf-curve--top { top: 1px; bottom: auto; transform: translateY(-100%); }

/* ==========================================================================
   1. PRÉSENTATION
   ========================================================================== */
html body#top.kmg-fiche-page .kf-hero {
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--kmg-header-h, 72px) + 34px) 0 clamp(90px, 9vw, 130px) !important;
  background: var(--kmg-edge-dark) !important;
  color: var(--kmg-light);
}
html body#top.kmg-fiche-page .kf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../images/realisations/realisations-showroom-bg.webp') 50% 60% / cover no-repeat;
}
html body#top.kmg-fiche-page .kf-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 30, 28, .86) 0%, rgba(31, 30, 28, .7) 40%, rgba(31, 30, 28, .78) 100%),
    radial-gradient(ellipse 50% 40% at 30% 55%, rgba(232, 204, 128, .10), transparent 70%);
}

html body#top.kmg-fiche-page .kf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 24px;
  font-family: var(--kmg-sans);
  font-size: .82rem;
  color: rgba(246, 240, 227, .6);
}
html body#top.kmg-fiche-page .kf-crumbs a { color: rgba(246, 240, 227, .8) !important; text-decoration: none; }
html body#top.kmg-fiche-page .kf-crumbs a:hover { color: var(--kmg-gold) !important; }
html body#top.kmg-fiche-page .kf-crumbs [aria-current] { color: var(--kmg-gold); }

html body#top.kmg-fiche-page .kf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
html body#top.kmg-fiche-page .kf-hero__media { margin: 0; }
html body#top.kmg-fiche-page .kf-hero__zoom {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 2px solid #f0d57f;
  border-radius: 16px;
  overflow: hidden;
  background: var(--kmg-anth-b);
  aspect-ratio: 16 / 11;
  cursor: zoom-in;
  box-shadow:
    0 0 0 1px rgba(255, 248, 220, .5),
    0 0 12px 2px rgba(255, 235, 164, .55),
    0 0 40px 8px rgba(232, 204, 128, .24),
    0 30px 60px rgba(8, 8, 7, .55);
}
html body#top.kmg-fiche-page .kf-hero__zoom img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  transition: transform .6s ease;
}
html body#top.kmg-fiche-page .kf-hero__zoom:hover img { transform: none; }
html body#top.kmg-fiche-page .kf-hero__zoom-ico {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 163, .6);
  background: rgba(20, 19, 17, .65);
  color: #f5e6a3;
}
html body#top.kmg-fiche-page .kf-illus-note {
  margin-top: 12px;
  font-family: var(--kmg-sans);
  font-size: .85rem;
  color: rgba(246, 240, 227, .75);
}
html body#top.kmg-fiche-page .kf-illus-note i { color: var(--kmg-gold); margin-right: 6px; }

html body#top.kmg-fiche-page .kf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 204, 128, .45);
  background: rgba(31, 30, 28, .6);
  font-family: var(--kmg-sans);
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kmg-gold) !important;
}
html body#top.kmg-fiche-page .kf-loc {
  margin: 12px 0 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: 1rem !important;
  color: rgba(246, 240, 227, .88) !important;
}
html body#top.kmg-fiche-page .kf-loc i { color: var(--kmg-gold); margin-right: 6px; }
html body#top.kmg-fiche-page .kf-orn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  margin: 20px 0 18px;
}
html body#top.kmg-fiche-page .kf-orn::before,
html body#top.kmg-fiche-page .kf-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--kmg-gold), rgba(232, 204, 128, 0)); }
html body#top.kmg-fiche-page .kf-orn::before { flex: 0 0 26px; background: var(--kmg-gold); }
html body#top.kmg-fiche-page .kf-orn i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--kmg-gold-fill); box-shadow: 0 0 8px rgba(232, 204, 128, .8); }
html body#top.kmg-fiche-page .kf-lead {
  margin: 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  color: rgba(246, 240, 227, .9) !important;
}
html body#top.kmg-fiche-page .kf-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body#top.kmg-fiche-page .kf-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(246, 240, 227, .06);
  border: 1px solid rgba(232, 204, 128, .2);
  font-family: var(--kmg-sans);
  font-size: .85rem;
  color: rgba(246, 240, 227, .88);
  list-style: none !important;
}
html body#top.kmg-fiche-page .kf-facts i { color: var(--kmg-gold); }
html body#top.kmg-fiche-page .kf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
html body#top.kmg-fiche-page .kf-actions--center { justify-content: center; }
html body#top.kmg-fiche-page .kf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--kmg-sans);
  font-size: .9rem;
  color: rgba(246, 240, 227, .8) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(232, 204, 128, .35);
  padding-bottom: 2px;
}
html body#top.kmg-fiche-page .kf-back:hover { color: var(--kmg-gold) !important; }
html body#top.kmg-fiche-page .kf-404 { text-align: center; padding: 60px 0 40px; }
html body#top.kmg-fiche-page .kf-404 .kf-lead { margin: 14px 0 26px !important; }

/* ==========================================================================
   2. LE PROJET (crème)
   ========================================================================== */
html body#top.kmg-fiche-page .kf-story {
  padding: clamp(46px, 5vw, 70px) 0 clamp(100px, 10vw, 140px) !important;
  background: linear-gradient(180deg, var(--kmg-cream) 0%, #f3e9d7 100%) !important;
  color: var(--kmg-ink);
}
html body#top.kmg-fiche-page .kf-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
html body#top.kmg-fiche-page .kf-story__grid--single { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
html body#top.kmg-fiche-page .kf-story__text p {
  margin: 18px 0 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: 1rem !important;
  line-height: 1.85 !important;
  color: #3d3a33 !important;
}
html body#top.kmg-fiche-page .kf-story__text .kf-h2 { margin-bottom: 6px !important; }
html body#top.kmg-fiche-page .kf-result {
  position: relative;
  margin: 30px 0 0 !important;
  padding: 22px 26px 22px 28px !important;
  border: 0 !important;
  border-left: 3px solid #e8cc80 !important;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(232, 204, 128, .18), rgba(232, 204, 128, .04));
}
html body#top.kmg-fiche-page .kf-result p { margin: 0 !important; font-style: italic; }
html body#top.kmg-fiche-page .kf-result .kf-result__k {
  margin-bottom: 6px !important;
  font-style: normal;
  font-family: var(--kmg-serif) !important;
  font-size: 1.15rem !important;
  color: #8c7a3c !important;
}

html body#top.kmg-fiche-page .kf-story__aside { display: grid; gap: 20px; position: sticky; top: 110px; }
html body#top.kmg-fiche-page .kf-card {
  padding: 26px 26px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(201, 171, 98, .45);
  box-shadow: 0 18px 40px rgba(98, 91, 78, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}
html body#top.kmg-fiche-page .kf-checks { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body#top.kmg-fiche-page .kf-checks li {
  position: relative;
  margin: 0 0 11px !important;
  padding-left: 34px !important;
  list-style: none !important;
  font-family: var(--kmg-sans);
  font-size: .95rem;
  line-height: 1.5;
  color: #3d3a33;
}
html body#top.kmg-fiche-page .kf-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--kmg-gold-fill);
  box-shadow: 0 2px 6px rgba(201, 171, 98, .45);
}
html body#top.kmg-fiche-page .kf-checks li::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--kmg-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
html body#top.kmg-fiche-page .kf-brief { margin: 0; }
html body#top.kmg-fiche-page .kf-brief > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 171, 98, .3);
  font-family: var(--kmg-sans);
  font-size: .92rem;
}
html body#top.kmg-fiche-page .kf-brief dt { color: var(--kmg-ink-soft); }
html body#top.kmg-fiche-page .kf-brief dd { margin: 0; text-align: right; font-weight: 600; color: var(--kmg-ink); }

/* ==========================================================================
   3. GALERIE + 4. AVANT / APRÈS (anthracite)
   ========================================================================== */
html body#top.kmg-fiche-page .kf-gallery,
html body#top.kmg-fiche-page .kf-ba {
  padding: clamp(40px, 5vw, 64px) 0 clamp(50px, 6vw, 80px) !important;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(232, 204, 128, .07), transparent 70%),
    linear-gradient(180deg, var(--kmg-edge-dark) 0%, var(--kmg-anth-a) 50%, var(--kmg-edge-dark) 100%) !important;
}
html body#top.kmg-fiche-page .kf-ba { padding-top: 10px !important; padding-bottom: clamp(110px, 11vw, 150px) !important; }
html body#top.kmg-fiche-page .kf-ba .kv { max-width: 1000px; margin: clamp(24px, 3vw, 36px) auto 0; }
html body#top.kmg-fiche-page .kf-ba .kv--video { max-width: 1000px; aspect-ratio: 16 / 9; }

html body#top.kmg-fiche-page .kf-viewer { max-width: 1000px; margin: clamp(24px, 3vw, 36px) auto 0; }
html body#top.kmg-fiche-page .kf-viewer__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #141311;
  border: 1.5px solid rgba(240, 213, 127, .8);
  box-shadow: 0 0 0 1px rgba(255, 248, 220, .25), 0 0 26px rgba(232, 204, 128, .18), 0 26px 50px rgba(8, 8, 7, .5);
  touch-action: pan-y;
}
html body#top.kmg-fiche-page .kf-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
html body#top.kmg-fiche-page .kf-slide.is-active { opacity: 1; visibility: visible; }
html body#top.kmg-fiche-page .kf-slide__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
html body#top.kmg-fiche-page .kf-slide img,
html body#top.kmg-fiche-page .kf-slide video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  background: radial-gradient(ellipse at center, #2c2a26, #141311);
}
html body#top.kmg-fiche-page .kf-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 20px 14px;
  background: linear-gradient(180deg, transparent, rgba(20, 19, 17, .8));
  font-family: var(--kmg-sans);
  font-size: .85rem;
  color: rgba(246, 240, 227, .85);
  pointer-events: none;
}
html body#top.kmg-fiche-page .kf-slide video + figcaption { display: none; }

html body#top.kmg-fiche-page .kf-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid var(--kmg-gold);
  background: rgba(31, 30, 28, .82);
  color: var(--kmg-gold);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 8, 7, .45), 0 0 16px rgba(232, 204, 128, .28);
  transition: background .25s ease, color .25s ease;
}
html body#top.kmg-fiche-page .kf-nav:hover { background: var(--kmg-gold-fill); color: var(--kmg-ink); }
html body#top.kmg-fiche-page .kf-nav--prev { left: 16px; }
html body#top.kmg-fiche-page .kf-nav--next { right: 16px; }
html body#top.kmg-fiche-page .kf-nav[hidden] { display: none; }
html body#top.kmg-fiche-page .kf-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(20, 19, 17, .7);
  border: 1px solid rgba(232, 204, 128, .4);
  font-family: var(--kmg-sans);
  font-size: .8rem;
  color: #f6f0e3;
}

html body#top.kmg-fiche-page .kf-thumbs,
html body#top.kmg-fiche-page .kf-lb__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 204, 128, .4) transparent;
}
/* Centrer les miniatures sous la photo, en gardant tout le ruban accessible
   par défilement lorsqu'il dépasse la largeur de l'écran. */
html body#top.kmg-fiche-page .kf-thumbs > :first-child { margin-inline-start: auto; }
html body#top.kmg-fiche-page .kf-thumbs > :last-child { margin-inline-end: auto; }
html body#top.kmg-fiche-page .kf-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 130px;
  height: 84px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(232, 204, 128, .25);
  background: #1f1e1c;
  opacity: .62;
  cursor: pointer;
  transition: opacity .25s ease, border-color .25s ease, box-shadow .25s ease;
}
html body#top.kmg-fiche-page .kf-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; background: #1f1e1c; }
html body#top.kmg-fiche-page .kf-thumb:hover { opacity: .9; }
html body#top.kmg-fiche-page .kf-thumb.is-active {
  opacity: 1;
  border: 2px solid #f0d57f;
  box-shadow: 0 0 12px rgba(232, 204, 128, .55);
}
html body#top.kmg-fiche-page .kf-thumb__video { position: absolute; inset: 0; background: linear-gradient(135deg, #2c2a26, #1a1917); }
html body#top.kmg-fiche-page .kf-thumb__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(20, 19, 17, .7);
  border: 1px solid rgba(245, 230, 163, .7);
  color: #f5e6a3;
  font-size: .7rem;
}

/* ==========================================================================
   5. DEMANDE DE DEVIS + RÉALISATIONS VOISINES (crème)
   ========================================================================== */
html body#top.kmg-fiche-page .kf-cta {
  padding: clamp(40px, 5vw, 60px) 0 clamp(50px, 6vw, 80px) !important;
  background: linear-gradient(180deg, var(--kmg-cream) 0%, #f3e9d7 100%) !important;
  color: var(--kmg-ink);
}
html body#top.kmg-fiche-page .kf-cta .kf-curve--top .kf-curve__fill { fill: var(--kmg-cream); }
html body#top.kmg-fiche-page .kf-cta__box {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 46px) clamp(22px, 4vw, 50px);
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(201, 171, 98, .5);
  box-shadow: 0 22px 50px rgba(98, 91, 78, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}
html body#top.kmg-fiche-page .kf-cta__box p {
  max-width: 560px;
  margin: 12px auto 0 !important;
  font-family: var(--kmg-sans) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: var(--kmg-ink-soft) !important;
}
html body#top.kmg-fiche-page .kf-cta__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(201, 171, 98, .7);
  background: rgba(255, 255, 255, .6);
}
html body#top.kmg-fiche-page .kf-cta__ico i {
  font-size: 1.7rem;
  background: var(--kmg-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html body#top.kmg-fiche-page .kf-siblings {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 46px);
}
html body#top.kmg-fiche-page .kf-sib {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(201, 171, 98, .35);
  text-decoration: none !important;
  color: var(--kmg-ink) !important;
  font-family: var(--kmg-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
html body#top.kmg-fiche-page .kf-sib:hover { border-color: #c9ab62; box-shadow: 0 12px 28px rgba(98, 91, 78, .16); transform: translateY(-2px); }
html body#top.kmg-fiche-page .kf-sib img { flex: 0 0 auto; width: 96px; height: 66px; object-fit: contain; background: #1f1e1c; border-radius: 10px; border: 1px solid rgba(201, 171, 98, .6); }
html body#top.kmg-fiche-page .kf-sib small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--kmg-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8c7a3c;
}
html body#top.kmg-fiche-page .kf-sib--next { justify-content: flex-end; text-align: right; }
html body#top.kmg-fiche-page .kf-sib--all {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-family: var(--kmg-sans);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}
html body#top.kmg-fiche-page .kf-sib--all i { font-size: 1.2rem; color: #b49c5c; }

/* La courbe du pied de page part de la crème */
html body#top.kmg-fiche-page .kmg-curve--cf { background: linear-gradient(#f3e9d7 calc(100% - 2px), var(--kmg-footer) 0); }

/* ==========================================================================
   PLEIN ÉCRAN
   ========================================================================== */
html body#top.kmg-fiche-page .kf-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(16, 15, 14, .97);
  opacity: 0;
  transition: opacity .25s ease;
}
html body#top.kmg-fiche-page .kf-lb[hidden] { display: none; }
html body#top.kmg-fiche-page .kf-lb.is-open { opacity: 1; }
html body#top.kmg-fiche-page .kf-lb__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid rgba(232, 204, 128, .2);
}
html body#top.kmg-fiche-page .kf-lb__title {
  flex: 1;
  margin: 0 !important;
  font-family: var(--kmg-serif);
  font-size: 1.15rem;
  color: #f6f0e3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body#top.kmg-fiche-page .kf-lb__count { font-family: var(--kmg-sans); font-size: .85rem; color: var(--kmg-gold); }
html body#top.kmg-fiche-page .kf-lb__close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 204, 128, .7);
  background: transparent;
  color: var(--kmg-gold);
  font-size: 1.2rem;
  cursor: pointer;
}
html body#top.kmg-fiche-page .kf-lb__close:hover { background: var(--kmg-gold-fill); color: var(--kmg-ink); }
html body#top.kmg-fiche-page .kf-lb__close:focus-visible { outline: 2px solid #f5e6a3; outline-offset: 3px; }
html body#top.kmg-fiche-page .kf-lb__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px clamp(10px, 7vw, 90px);
  touch-action: pan-y;
}
html body#top.kmg-fiche-page .kf-lb__stage img,
html body#top.kmg-fiche-page .kf-lb__stage video {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(232, 204, 128, .35), 0 20px 60px rgba(0, 0, 0, .6);
}
html body#top.kmg-fiche-page .kf-lb__nav { top: 50%; }
html body#top.kmg-fiche-page .kf-lb__thumbs { justify-content: center; margin: 0; padding: 12px 16px 16px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  html body#top.kmg-fiche-page .kf-hero { padding-top: 132px !important; }
  html body#top.kmg-fiche-page .kf-hero__grid { grid-template-columns: 1fr; }
  html body#top.kmg-fiche-page .kf-story__grid,
  html body#top.kmg-fiche-page .kf-story__grid--single { grid-template-columns: 1fr; }
  html body#top.kmg-fiche-page .kf-story__aside { position: static; }
  /* Keep the full photo width; gallery controls sit below its frame. */
  html body#top.kmg-fiche-page .kf-viewer__stage:has(> .kf-nav) {
    overflow: visible;
    margin-bottom: 76px;
  }
  html body#top.kmg-fiche-page .kf-viewer__stage > .kf-slide {
    border-radius: inherit;
    overflow: hidden;
  }
  html body#top.kmg-fiche-page .kf-viewer__stage > .kf-nav {
    top: calc(100% + 12px);
    transform: none;
  }
  html body#top.kmg-fiche-page .kf-viewer__stage > .kf-nav--prev { left: calc(50% - 56px); }
  html body#top.kmg-fiche-page .kf-viewer__stage > .kf-nav--next { right: calc(50% - 56px); }
}
@media (max-width: 699px) {
  html body#top.kmg-fiche-page .kf-siblings { grid-template-columns: 1fr; }
  html body#top.kmg-fiche-page .kf-sib--next { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  html body#top.kmg-fiche-page .kf-sib--all { order: 3; flex-direction: row; }
}
@media (max-width: 599px) {
  html body#top.kmg-fiche-page .kf-wrap { width: calc(100% - 28px); }
  html body#top.kmg-fiche-page .kf-crumbs { font-size: .76rem; margin-bottom: 18px; }
  html body#top.kmg-fiche-page .kf-hero__zoom { aspect-ratio: 4 / 3.4; border-radius: 12px; }
  html body#top.kmg-fiche-page .kf-title { font-size: clamp(1.7rem, 8vw, 2.1rem) !important; }
  html body#top.kmg-fiche-page .kf-actions .kf-btn { flex: 1 1 100%; }
  html body#top.kmg-fiche-page .kf-card { padding: 22px 18px; }
  html body#top.kmg-fiche-page .kf-viewer__stage { aspect-ratio: 4 / 3.6; border-radius: 12px; }
  html body#top.kmg-fiche-page .kf-nav { width: 40px; height: 40px; font-size: .9rem; }
  html body#top.kmg-fiche-page .kf-nav--prev { left: 8px; }
  html body#top.kmg-fiche-page .kf-nav--next { right: 8px; }
  html body#top.kmg-fiche-page .kf-thumb { width: 96px; height: 64px; }
  html body#top.kmg-fiche-page .kf-cta__box .kf-btn { flex: 1 1 100%; }
  html body#top.kmg-fiche-page .kf-lb__stage { padding: 10px 6px; }
  html body#top.kmg-fiche-page .kf-lb__nav { top: auto; bottom: 110px; }
  html body#top.kmg-fiche-page .kf-lb__thumbs { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html body#top.kmg-fiche-page .kf-slide,
  html body#top.kmg-fiche-page .kf-lb,
  html body#top.kmg-fiche-page .kf-hero__zoom img,
  html body#top.kmg-fiche-page .kf-btn,
  html body#top.kmg-fiche-page .kf-sib { transition: none !important; }
}

/* Les anciennes feuilles centrent le texte des sections : alignement à gauche */
html body#top.kmg-fiche-page .kf-hero__info,
html body#top.kmg-fiche-page .kf-story,
html body#top.kmg-fiche-page .kf-story p,
html body#top.kmg-fiche-page .kf-card,
html body#top.kmg-fiche-page .kf-crumbs,
html body#top.kmg-fiche-page .kf-checks li { text-align: left !important; }
html body#top.kmg-fiche-page .kf-crumbs { justify-content: flex-start; }

/* Fil d'Ariane : décalé pour ne pas passer sous le grand logo de l'en-tête */
@media (min-width: 1024px) {
  html body#top.kmg-fiche-page .kf-crumbs {
    padding-left: max(0px, calc(320px - (100vw - min(1200px, 100vw - 40px)) / 2));
  }
}
/* Mobile : la page courante est déjà le titre H1 juste en dessous */
@media (max-width: 599px) {
  html body#top.kmg-fiche-page .kf-crumbs > span:nth-last-child(-n+2) { display: none; }
}

/* Plein écran au-dessus de tout (logo fixe, burger, bouton « remonter ») */
html body#top.kmg-fiche-page .kf-lb { z-index: 2147483000; }
html.kf-lb-open body#top.kmg-fiche-page header,
html.kf-lb-open body#top.kmg-fiche-page .kmg-burger,
html.kf-lb-open body#top.kmg-fiche-page #kmg-backtotop,
html.kf-lb-open body#top.kmg-fiche-page #telephone-defilant { visibility: hidden !important; }

/* Materialize donne à tous les <nav> une hauteur fixe (56/64 px), un fond et
   une ombre : neutralisé pour le fil d'Ariane et les réalisations voisines. */
html body#top.kmg-fiche-page nav.kf-crumbs,
html body#top.kmg-fiche-page nav.kf-siblings {
  height: auto !important;
  line-height: normal !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit;
}

/* ==========================================================================
   PAGE UNIQUE — fiche affichée sous le carrousel (#fiche-projet)
   ========================================================================== */
html body#top.kmg-fiche-page .kf-zone {
  position: relative;
  scroll-margin-top: 130px;
  transition: opacity .55s ease, transform .7s cubic-bezier(.22, .8, .24, 1);
}
html body#top.kmg-fiche-page .kf-zone[hidden] { display: none; }
html body#top.kmg-fiche-page .kf-zone.is-preparing { opacity: 0; transform: translateY(26px); transition: none; }
html body#top.kmg-fiche-page .kf-zone.is-leaving { opacity: 0; transition: opacity .25s ease; }
html body#top.kmg-fiche-page .kf-zone.is-entering { opacity: 1; transform: none; }

/* Les sections de la fiche sont dans <article> : mêmes neutralisations
   des anciennes règles sur <section> que pour la page fiche */
html body#top.kmg-fiche-page .kf-fiche > section {
  position: relative;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
}
html body#top.kmg-fiche-page .kf-fiche > section::before,
html body#top.kmg-fiche-page .kf-fiche > section::after { content: none !important; display: none !important; }

/* Transition crème (bande d'atouts) -> anthracite (fiche) */
html body#top.kmg-fiche-page .kf-curve--from-cream {
  position: relative;
  bottom: auto;
  display: block;
  margin: 0;
  background: #f3e9d7;
}
html body#top.kmg-fiche-page .kf-curve--from-cream .kf-curve__fill { fill: var(--kmg-edge-dark); }

/* Présentation : plus d'espace pour l'en-tête de page, déjà passé */
html body#top.kmg-fiche-page .kf-zone .kf-hero { padding-top: clamp(26px, 3.4vw, 48px) !important; }
html body#top.kmg-fiche-page .kf-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
html body#top.kmg-fiche-page .kf-zone .kf-crumbs { margin: 0; padding-left: 0 !important; }
html body#top.kmg-fiche-page .kf-back--top {
  margin-top: 0;
  padding: 9px 18px;
  border: 1px solid rgba(232, 204, 128, .45);
  border-radius: 999px;
  background: rgba(31, 30, 28, .55);
}
html body#top.kmg-fiche-page .kf-back--top:hover { background: var(--kmg-gold-fill); color: var(--kmg-ink) !important; }
html body#top.kmg-fiche-page .kf-title:focus { outline: none; }
html body#top.kmg-fiche-page .kf-title:focus-visible { outline: 2px solid #f5e6a3; outline-offset: 6px; }

/* Mise en lumière à l'arrivée : la photo s'illumine, le titre se révèle */
html body#top.kmg-fiche-page .kf-fiche.is-spot .kf-hero__zoom { animation: kf-spot-photo 1.6s ease-out; }
html body#top.kmg-fiche-page .kf-fiche.is-spot .kf-title { animation: kf-spot-title 1s cubic-bezier(.22, .8, .24, 1) both; }
html body#top.kmg-fiche-page .kf-fiche.is-spot .kf-chip,
html body#top.kmg-fiche-page .kf-fiche.is-spot .kf-loc,
html body#top.kmg-fiche-page .kf-fiche.is-spot .kf-lead { animation: kf-spot-up .9s .15s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes kf-spot-photo {
  0%   { box-shadow: 0 0 0 1px rgba(255, 248, 220, .5), 0 0 12px 2px rgba(255, 235, 164, .55), 0 0 40px 8px rgba(232, 204, 128, .24), 0 30px 60px rgba(8, 8, 7, .55); }
  35%  { box-shadow: 0 0 0 1px rgba(255, 252, 235, .95), 0 0 22px 6px rgba(255, 240, 190, .95), 0 0 80px 20px rgba(232, 204, 128, .45), 0 30px 60px rgba(8, 8, 7, .55); }
  100% { box-shadow: 0 0 0 1px rgba(255, 248, 220, .5), 0 0 12px 2px rgba(255, 235, 164, .55), 0 0 40px 8px rgba(232, 204, 128, .24), 0 30px 60px rgba(8, 8, 7, .55); }
}
@keyframes kf-spot-title {
  from { opacity: 0; transform: translateY(14px); text-shadow: 0 0 30px rgba(245, 230, 163, .9); }
  to   { opacity: 1; transform: none; }
}
@keyframes kf-spot-up {
  from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 1023px) {
  html body#top.kmg-fiche-page .kf-zone { scroll-margin-top: 120px; }
}
@media (max-width: 599px) {
  html body#top.kmg-fiche-page .kf-topbar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html body#top.kmg-fiche-page .kf-zone { transition: none !important; transform: none !important; }
  html body#top.kmg-fiche-page .kf-fiche.is-spot * { animation: none !important; }
}

/* Le cadre suit la photographie entière, en paysage comme en portrait.
   Ces règles concernent uniquement les médias de la fiche, jamais le carrousel. */
html body#top.kmg-fiche-page .kf-fiche:not([data-slug="cabinet-podologie"]) .kf-hero__zoom {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: auto;
}
html body#top.kmg-fiche-page .kf-fiche:not([data-slug="cabinet-podologie"]) .kf-hero__zoom > img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(660px, 74svh);
}
html body#top.kmg-fiche-page .kf-viewer__stage {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: auto;
}
html body#top.kmg-fiche-page .kf-slide {
  display: none;
  position: relative;
  inset: auto;
  transition: none;
}
html body#top.kmg-fiche-page .kf-slide.is-active { display: block; }
html body#top.kmg-fiche-page .kf-slide__zoom { width: auto; height: auto; max-width: 100%; }
html body#top.kmg-fiche-page .kf-slide img,
html body#top.kmg-fiche-page .kf-slide video {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(780px, 78svh);
  background: transparent;
}
html body#top.kmg-fiche-page .kf-viewer .kf-nav {
  background: rgba(20, 19, 17, .28);
  backdrop-filter: blur(2px);
}
html body#top.kmg-fiche-page .kf-viewer .kf-nav:hover { background: rgba(20, 19, 17, .65); color: #E8CC80; }
html body#top.kmg-fiche-page .kf-thumb:has(> img) { width: auto; }
html body#top.kmg-fiche-page .kf-thumb > img {
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  background: transparent;
}
/* Les proportions du panneau au repos suivent la photo Avant ou Après.
   Le shader et sa chronologie restent ceux du vortex validé. */
html body#top.kmg-fiche-page .kf-ba [data-kv-gl].kf-photo-frame {
  box-sizing: content-box;
  width: min(calc(100% - 4px), calc(min(780px, 78svh) * var(--kf-photo-ratio)));
  aspect-ratio: var(--kf-photo-ratio);
}

@media (max-width: 599px) {
  html body#top.kmg-fiche-page .kf-wrap { width: calc(100% - 24px); }
  html body#top.kmg-fiche-page .kf-zone .kf-hero { padding-top: 20px !important; padding-bottom: 64px !important; }
  html body#top.kmg-fiche-page .kf-topbar { gap: 12px; margin-bottom: 18px; }
  html body#top.kmg-fiche-page .kf-hero__grid { gap: 22px; }
  html body#top.kmg-fiche-page .kf-fiche:not([data-slug="cabinet-podologie"]) .kf-hero__zoom { width: 100%; }
  html body#top.kmg-fiche-page .kf-fiche:not([data-slug="cabinet-podologie"]) .kf-hero__zoom > img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
  }
  html body#top.kmg-fiche-page .kf-viewer__stage { width: 100%; }
  html body#top.kmg-fiche-page .kf-slide__zoom { width: 100%; }
  html body#top.kmg-fiche-page .kf-slide img,
  html body#top.kmg-fiche-page .kf-slide video { width: 100% !important; height: auto !important; max-height: none; }
  html body#top.kmg-fiche-page .kf-card { padding: 18px 12px; }
  html body#top.kmg-fiche-page .kf-hero__info { min-width: 0; overflow-wrap: anywhere; }
  html body#top.kmg-fiche-page .kf-lb__top { gap: 8px; padding: 10px 12px; }
  html body#top.kmg-fiche-page .kf-lb__title { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.3; }
  html body#top.kmg-fiche-page .kf-lb__count { flex-shrink: 0; }
  html body#top.kmg-fiche-page .kf-lb__close { flex: 0 0 44px; }
}
