/* =========================================================
   Horizon Bleu — Page réalisation : hero cinéma + pellicule photo + visionneuse (1.7.0)
   Chargé uniquement sur les pages qui contiennent .hb-cine-hero ou .hb-film
   ========================================================= */

/* ---------- HERO CINÉMA ---------- */
.hb-cine-hero.wp-block-cover {
  position: relative;
  min-height: calc(100svh - 80px) !important;
  padding: 0 !important;
  align-items: flex-end !important;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  background: #0E2442;
  isolation: isolate;
}
.hb-cine-hero .wp-block-cover__image-background {
  transform: translate3d(0, calc(var(--hb-p, 0) * 16vh), 0) scale(calc(1.04 + var(--hb-p, 0) * .1));
  will-change: transform;
  animation: hb-cine-in 2.1s cubic-bezier(.77, 0, .18, 1) both;
}
@keyframes hb-cine-in {
  0%   { clip-path: inset(18% 14% 18% 14% round 40px); scale: 1.28; filter: brightness(.55) saturate(.8); }
  55%  { filter: brightness(.9) saturate(1); }
  100% { clip-path: inset(0 0 0 0 round 0); scale: 1; filter: none; }
}
/* voile : lisibilité du texte + profondeur */
.hb-cine-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,36,66,.30) 0%, rgba(14,36,66,0) 26%, rgba(14,36,66,0) 46%, rgba(14,36,66,.55) 74%, rgba(10,28,52,.92) 100%),
    linear-gradient(90deg, rgba(14,36,66,.50) 0%, rgba(14,36,66,0) 58%);
  animation: hb-fade 1.6s ease .6s both;
}
/* lignes de soleil dorées */
.hb-cine-hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  border: 1px solid rgba(231,201,128,.45);
  box-shadow: 0 0 0 46px rgba(231,201,128,0), 0 0 0 47px rgba(231,201,128,.22), 0 0 0 110px rgba(231,201,128,0), 0 0 0 111px rgba(231,201,128,.12);
  animation: hb-sun 2.4s cubic-bezier(.16,1,.3,1) 1s both;
}
@keyframes hb-sun { from { opacity: 0; transform: translate3d(40px,-40px,0) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hb-fade { from { opacity: 0; } to { opacity: 1; } }

.hb-cine-hero .wp-block-cover__inner-container {
  position: relative; z-index: 2;
  width: 100% !important; max-width: 1320px !important; margin: 0 auto !important;
  padding: 120px clamp(20px, 4vw, 56px) clamp(40px, 7vh, 80px) !important;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  column-gap: clamp(28px, 5vw, 80px); align-items: end;
}
.hb-cine-hero .wp-block-cover__inner-container > * { grid-column: 1; margin: 0 !important; }
.hb-cine-hero .wp-block-cover__inner-container > .hb-paths { grid-column: 2; grid-row: 1 / span 4; align-self: end; }

.hb-coords {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.82) !important; font-size: .74rem !important; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
}
.hb-coords::before { content: ""; width: 46px; height: 1px; background: #E7C980; transform-origin: left; animation: hb-line 1.2s cubic-bezier(.77,0,.18,1) 1.2s both; }
@keyframes hb-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hb-cine-hero h1 {
  margin: 18px 0 18px !important;
  color: #fff !important;
  font-size: clamp(2.5rem, 5.4vw, 5.1rem) !important;
  line-height: 1.02 !important; letter-spacing: -.02em;
  max-width: 17ch; text-wrap: balance;
  text-shadow: 0 6px 40px rgba(8,22,42,.35);
}
.hb-cine-hero h1 em {
  display: inline; font-family: "HB Lora", Georgia, serif; font-style: italic; font-weight: 500;
  color: #E7C980; letter-spacing: -.01em;
}
.hb-cine-lede { color: rgba(255,255,255,.88) !important; font-size: clamp(1rem, 1.25vw, 1.2rem) !important; max-width: 46ch; line-height: 1.6; }

/* entrée du texte : chaque ligne monte derrière un masque */
.hb-cine-hero .wp-block-cover__inner-container > :not(.hb-paths) { animation: hb-cine-up 1.3s cubic-bezier(.16,1,.3,1) both; }
.hb-cine-hero .wp-block-cover__inner-container > :nth-child(1) { animation-delay: 1.05s; }
.hb-cine-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 1.18s; }
.hb-cine-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 1.34s; }
@keyframes hb-cine-up {
  from { opacity: 0; transform: translate3d(0, 46px, 0); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(-20% -10% -20% -10%); }
}

/* les deux parcours : voyageur / propriétaire */
.hb-paths > .wp-block-group__inner-container { display: contents; }
.hb-paths { display: grid !important; gap: 12px; }
.hb-path {
  position: relative; margin: 0 !important;
  padding: 20px 22px 18px !important; border-radius: 22px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.30);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  color: #fff;
  transition: transform .5s cubic-bezier(.16,1,.3,1), background .4s ease, box-shadow .5s ease;
  animation: hb-path-in 1.2s cubic-bezier(.16,1,.3,1) both;
}
.hb-path:nth-child(1) { animation-delay: 1.5s; }
.hb-path:nth-child(2) { animation-delay: 1.65s; }
@keyframes hb-path-in { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
.hb-path:hover { transform: translateY(-5px); background: rgba(255,255,255,.2); box-shadow: 0 24px 50px rgba(5,18,36,.35); }
.hb-path--owner { background: rgba(251,248,242,.95); border-color: rgba(255,255,255,.6); color: #14325C; }
.hb-path--owner:hover { background: #fff; }
.hb-path > * { margin: 0 !important; }
.hb-path-kicker { font-size: .68rem !important; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #E7C980 !important; }
.hb-path--owner .hb-path-kicker { color: #A14832 !important; }
.hb-path-title { margin: 6px 0 12px !important; font-family: var(--hb-font-display); font-size: 1.28rem !important; line-height: 1.2; color: inherit !important; }
.hb-path-link { font-weight: 700; font-size: .95rem !important; }
.hb-path-link a { color: inherit !important; text-decoration: none !important; display: inline-flex; gap: 8px; align-items: center; }
.hb-path-link a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.hb-path-link a:focus-visible { outline: none; }
.hb-path:focus-within { outline: 2px solid #E7C980; outline-offset: 3px; }
.hb-path-link .hb-arr { display: inline-block; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.hb-path:hover .hb-arr { transform: translateX(5px); }
.hb-path--guest:hover .hb-arr { transform: translate(3px, -3px); }

/* indicateur de défilement */
.hb-cine-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 1px; height: 46px; overflow: hidden;
  background: rgba(255,255,255,.25); pointer-events: none;
}
.hb-cine-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #E7C980; animation: hb-cue 2.2s cubic-bezier(.77,0,.18,1) 2.4s infinite; }
@keyframes hb-cue { 0% { top: -50%; } 60%, 100% { top: 100%; } }

/* ---------- PELLICULE PHOTO ---------- */
.hb-film-section { overflow: clip; }
.hb-film-head { display: flex !important; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hb-film-head > .wp-block-group__inner-container { display: contents; }
.hb-film-head h2 { margin: 12px 0 0 !important; }
.hb-film-sub { margin: 10px 0 0 !important; font-family: "HB Lora", Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important; color: #6C5A3E !important; }
.hb-film-hint { margin: 0 !important; display: inline-flex; align-items: center; gap: 10px; font-size: .78rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8A7A62 !important; }
.hb-film-hint::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #D9C9A8; background: radial-gradient(circle, #C9A24D 0 3px, transparent 4px); animation: hb-hint 2.4s ease-in-out infinite; }
@keyframes hb-hint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

.is-layout-constrained > .hb-film.wp-block-gallery,
.wp-block-group__inner-container > .hb-film.wp-block-gallery,
.hb-film.wp-block-gallery {
  display: flex !important; flex-wrap: nowrap !important; align-items: stretch;
  gap: clamp(12px, 1.6vw, 22px) !important;
  width: 100vw !important; max-width: 100vw !important;
  margin: 26px calc(50% - 50vw) 0 !important;
  padding: 8px max(24px, calc((100vw - 1180px) / 2)) 26px !important;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - 1180px) / 2));
  scrollbar-width: none; overscroll-behavior-x: contain;
  cursor: grab;
}
.hb-film.wp-block-gallery::-webkit-scrollbar { display: none; }
.hb-film.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hb-film.is-dragging figure { pointer-events: none; }

.hb-film.wp-block-gallery > figure.wp-block-image {
  position: relative; flex: 0 0 auto !important;
  width: auto !important; height: clamp(340px, 64vh, 620px) !important;
  margin: 0 !important; border-radius: 24px; overflow: hidden;
  scroll-snap-align: start; background: #E9DFCE;
  box-shadow: 0 22px 50px rgba(20,50,92,.12);
  opacity: 0; transform: translate3d(80px, 0, 0);
  transition: opacity 1s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 90ms), transform 1.2s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 90ms), box-shadow .5s ease;
}
.hb-film.is-in > figure.wp-block-image { opacity: 1; transform: none; }
.hb-film.wp-block-gallery > figure.wp-block-image img {
  display: block; height: 100% !important; width: auto !important; max-width: none !important;
  aspect-ratio: 4 / 3; object-fit: cover !important;
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.hb-film.wp-block-gallery > figure:nth-child(4n+2) img { aspect-ratio: 3 / 4; }
.hb-film.wp-block-gallery > figure:nth-child(4n+3) img { aspect-ratio: 5 / 4; }
.hb-film.wp-block-gallery > figure:hover img { transform: scale(1.05); filter: saturate(1.08); }
.hb-film.wp-block-gallery > figure::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,28,52,0), rgba(10,28,52,.72));
  transition: opacity .5s ease;
}
.hb-film.wp-block-gallery > figure figcaption,
.hb-film.wp-block-gallery figure.wp-block-image figcaption.wp-element-caption {
  position: absolute !important; z-index: 2; left: 20px !important; right: 20px !important; bottom: 18px !important; top: auto !important;
  margin: 0 !important; padding: 0 !important; max-height: none !important; overflow: visible !important;
  background: none !important; text-align: left !important; color: #fff !important;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hb-film figure:hover figcaption { transform: translateY(-6px); }
.hb-film .hb-cap-k { font-family: inherit; font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #E7C980; }
.hb-film .hb-cap-t { font-family: var(--hb-font-display); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.15; }
.hb-film .hb-cap-n { position: absolute; right: 0; bottom: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; opacity: .75; }

.hb-film-ui { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); max-width: 1180px; margin: 6px auto 0 !important; }
.hb-film-count { font-family: var(--hb-font-display); color: #14325C; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-film-count b { font-size: 1.9rem; font-weight: 600; margin-right: 4px; }
.hb-film-bar { position: relative; flex: 1; height: 2px; background: #E6DCCB; border-radius: 2px; overflow: hidden; }
.hb-film-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #C9A24D, #2A8FD6); transform-origin: left; transform: scaleX(var(--p, .08)); transition: transform .25s linear; }
.hb-film-btn {
  width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid #14325C; background: transparent; color: #14325C; cursor: pointer;
  display: grid; place-items: center; font-size: 1.15rem; padding: 0;
  transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.hb-film-btn:hover { background: #14325C; color: #fff; transform: scale(1.06); }
.hb-film-btn:focus-visible { outline: 2px solid #C9A24D; outline-offset: 3px; }
.hb-film-btn[disabled] { opacity: .3; pointer-events: none; }
.hb-film-open { margin-left: 6px; border-radius: 999px; width: auto; padding: 0 22px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* curseur « Agrandir » qui suit la souris */
.hb-film-cursor {
  position: fixed; z-index: 9999; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; background: rgba(251,248,242,.94); color: #14325C;
  display: grid; place-items: center; text-align: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none; transform: scale(0); transition: transform .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 14px 40px rgba(10,28,52,.25);
}
.hb-film-cursor.is-on { transform: scale(1); }

/* ---------- VISIONNEUSE PLEIN ÉCRAN ---------- */
.hb-lb { position: fixed; inset: 0; z-index: 100000; display: none; color: #fff; }
.hb-lb.is-mounted { display: block; }
.hb-lb-bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(20,50,92,.985), rgba(7,20,38,.995)); opacity: 0; transition: opacity .5s ease; }
.hb-lb.is-open .hb-lb-bg { opacity: 1; }
.hb-lb-top, .hb-lb-cap, .hb-lb-thumbs, .hb-lb-nav { opacity: 0; transition: opacity .5s ease .15s, transform .6s cubic-bezier(.16,1,.3,1) .15s; }
.hb-lb.is-open .hb-lb-top, .hb-lb.is-open .hb-lb-cap, .hb-lb.is-open .hb-lb-thumbs, .hb-lb.is-open .hb-lb-nav { opacity: 1; }
.hb-lb-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 3vw, 32px); }
.hb-lb-count { font-family: var(--hb-font-display); font-size: 1rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hb-lb-count b { font-size: 1.6rem; color: #E7C980; margin-right: 4px; }
.hb-lb-close, .hb-lb-nav {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center;
  font-size: 1.3rem; padding: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.hb-lb-close:hover, .hb-lb-nav:hover { background: rgba(255,255,255,.2); transform: scale(1.07); }
.hb-lb-close:focus-visible, .hb-lb-nav:focus-visible, .hb-lb-thumbs button:focus-visible { outline: 2px solid #E7C980; outline-offset: 3px; }
.hb-lb-nav { position: absolute; z-index: 3; top: 50%; margin-top: -26px; }
.hb-lb-prev { left: clamp(12px, 2.5vw, 32px); }
.hb-lb-next { right: clamp(12px, 2.5vw, 32px); }
.hb-lb-stage { position: absolute; z-index: 2; inset: 78px clamp(16px, 8vw, 120px) 168px; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.hb-lb-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.45);
  transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
}
.hb-lb-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 104px; text-align: center; padding: 0 20px; }
.hb-lb-cap .k { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #E7C980; }
.hb-lb-cap .t { display: block; margin-top: 4px; font-family: var(--hb-font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); }
.hb-lb-thumbs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; gap: 8px; justify-content: center; padding: 6px 20px; overflow-x: auto; scrollbar-width: none; }
.hb-lb-thumbs::-webkit-scrollbar { display: none; }
.hb-lb-thumbs button { flex: 0 0 auto; width: 74px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .45; background: #0E2442; transition: opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.hb-lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-lb-thumbs button:hover { opacity: .8; }
.hb-lb-thumbs button.is-active { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px #E7C980; }
html.hb-lb-lock, html.hb-lb-lock body { overflow: hidden !important; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .hb-cine-hero .wp-block-cover__inner-container { grid-template-columns: 1fr; padding-top: 110px !important; }
  .hb-cine-hero .wp-block-cover__inner-container > .hb-paths { grid-column: 1; grid-row: auto; margin-top: 26px !important; }
  .hb-paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hb-cine-hero.wp-block-cover { min-height: calc(100svh - 64px) !important; border-radius: 0 0 28px 28px; }
  .hb-cine-hero .wp-block-cover__inner-container { padding: 96px 20px 54px !important; }
  .hb-cine-hero h1 { font-size: clamp(2.05rem, 9vw, 2.6rem) !important; line-height: 1.06 !important; margin: 14px 0 12px !important; }
  .hb-cine-lede { font-size: 1rem !important; line-height: 1.55; }
  .hb-coords { font-size: .64rem !important; letter-spacing: .18em; gap: 10px; }
  .hb-coords::before { width: 28px; }
  .hb-paths { gap: 10px; }
  .hb-path { padding: 15px 14px 14px !important; border-radius: 18px; }
  .hb-path-link a::after { border-radius: 18px; }
  .hb-path-kicker { font-size: .6rem !important; letter-spacing: .16em; }
  .hb-path-title { font-size: 1.02rem !important; margin: 5px 0 10px !important; }
  .hb-path-link { font-size: .85rem !important; }
  .hb-cine-hero::after { width: 300px; height: 300px; right: -120px; top: -110px; }
  .hb-cine-cue { display: none; }

  .hb-film.wp-block-gallery { padding: 6px 20px 22px !important; scroll-padding-inline: 20px; gap: 12px !important; }
  .hb-film.wp-block-gallery > figure.wp-block-image { width: 82vw !important; height: auto !important; border-radius: 20px; }
  .hb-film.wp-block-gallery > figure.wp-block-image img,
  .hb-film.wp-block-gallery > figure:nth-child(n) img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; }
  .hb-film .hb-cap-t { font-size: 1.15rem; }
  .hb-film-ui { gap: 14px; }
  .hb-film-btn { display: none; }
  .hb-film-count b { font-size: 1.5rem; }
  .hb-film-hint { font-size: .7rem !important; }

  .hb-lb-stage { inset: 70px 10px 150px; }
  .hb-lb-nav { display: none; }
  .hb-lb-cap { bottom: 92px; }
  .hb-lb-thumbs { justify-content: flex-start; }
  .hb-lb-thumbs button { width: 58px; height: 44px; }
}

/* ---------- ANIMATIONS RÉDUITES ---------- */
@media (prefers-reduced-motion: reduce) {
  .hb-cine-hero .wp-block-cover__image-background { animation: none; transform: none; }
  .hb-cine-hero::before, .hb-cine-hero::after, .hb-coords::before,
  .hb-cine-hero .wp-block-cover__inner-container > *, .hb-path, .hb-cine-cue::after, .hb-film-hint::before { animation: none !important; }
  .hb-film.wp-block-gallery > figure.wp-block-image { opacity: 1; transform: none; transition: none; }
  .hb-film.wp-block-gallery > figure img, .hb-film figcaption, .hb-path, .hb-film-btn, .hb-lb-bg, .hb-lb-top, .hb-lb-cap, .hb-lb-thumbs, .hb-lb-nav { transition: none !important; }
  .hb-film-cursor { display: none; }
}

/* 1.7.1 — ajustements */
.hb-cine-hero .wp-block-cover__inner-container > h1 { margin: 16px 0 22px !important; }
.hb-cine-hero .wp-block-cover__inner-container > .hb-cine-lede { margin-bottom: 4px !important; }
.hb-path-title { line-height: 1.22 !important; }
.hb-path-kicker, .hb-path-link { line-height: 1.3 !important; }
.hb-lb .hb-lb-close, .hb-lb .hb-lb-nav { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35) !important; box-shadow: none !important; }
.hb-lb .hb-lb-close:hover, .hb-lb .hb-lb-nav:hover { background: rgba(255,255,255,.2) !important; }
.hb-lb .hb-lb-thumbs button { background: #0E2442 !important; border: 0 !important; box-shadow: none; }
.hb-lb .hb-lb-thumbs button.is-active { box-shadow: 0 0 0 2px #E7C980 !important; }
.hb-film-ui .hb-film-btn { background: transparent !important; color: #14325C !important; border: 1px solid #14325C !important; box-shadow: none !important; }
.hb-film-ui .hb-film-btn:hover { background: #14325C !important; color: #fff !important; }
@media (max-width: 600px) {
  .hb-cine-hero::before {
    background: linear-gradient(180deg, rgba(14,36,66,.30) 0%, rgba(14,36,66,.05) 20%, rgba(10,28,52,.55) 42%, rgba(10,28,52,.9) 64%, rgba(8,24,46,.97) 100%);
  }
  .hb-coords { flex-wrap: wrap; row-gap: 6px; line-height: 1.5; }
  .hb-cine-hero .wp-block-cover__inner-container > h1 { margin: 12px 0 14px !important; }
  .hb-paths { grid-template-columns: 1fr; gap: 10px; }
  .hb-path { display: grid !important; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 14px 18px !important; }
  .hb-path > .wp-block-group__inner-container { display: contents; }
  .hb-path-kicker { grid-column: 1; }
  .hb-path-title { grid-column: 1; margin: 3px 0 0 !important; font-size: 1.08rem !important; }
  .hb-path-link { grid-column: 2; grid-row: 1 / span 2; font-size: 0 !important; }
  .hb-path-link a { width: 42px; height: 42px; border-radius: 50%; justify-content: center; border: 1px solid currentColor; }
  .hb-path-link .hb-arr { font-size: 1.05rem; }
  .is-layout-constrained > .hb-film.wp-block-gallery,
  .wp-block-group__inner-container > .hb-film.wp-block-gallery,
  .hb-film.wp-block-gallery { width: calc(100% + 48px) !important; max-width: none !important; margin: 22px -24px 0 !important; padding: 6px 24px 22px !important; scroll-padding-inline: 24px; }
}

/* =========================================================
   1.8.0 — Étude de cas orientée propriétaires
   ========================================================= */
/* Hero : parcours propriétaire en priorité */
.hb-path--primary { padding: 26px 26px 24px !important; border-radius: 26px; box-shadow: 0 30px 70px rgba(5,18,36,.35); }
.hb-path--primary .hb-path-title { font-size: clamp(1.4rem, 1.9vw, 1.7rem) !important; margin: 8px 0 8px !important; }
.hb-path-text { margin: 0 0 18px !important; font-size: .95rem !important; line-height: 1.5 !important; color: #3E5675 !important; }
.hb-path--primary .hb-path-link a {
  display: inline-flex; padding: 14px 22px; border-radius: 999px;
  background: #A14832; color: #fff !important; box-shadow: 0 12px 26px rgba(161,72,50,.35);
  transition: background .3s ease, box-shadow .4s ease;
}
.hb-path--primary:hover .hb-path-link a { background: #8C3B28; box-shadow: 0 16px 32px rgba(161,72,50,.45); }
.hb-proof { margin: 4px 4px 0 !important; font-size: .86rem !important; color: rgba(255,255,255,.85) !important; }
.hb-proof a { color: #fff !important; text-decoration: underline !important; text-decoration-color: rgba(231,201,128,.7) !important; text-underline-offset: 4px; font-weight: 600; }
.hb-proof a:hover { text-decoration-color: #E7C980 !important; }
.hb-cine-hero .hb-proof { animation: hb-path-in 1.2s cubic-bezier(.16,1,.3,1) 1.75s both; }

/* Transitions éditoriales entre logement et bénéfices */
.hb-bridge { text-align: center; }
.hb-bridge-k { margin: 0 auto 14px !important; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: .72rem !important; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #A14832 !important; }
.hb-bridge-k::before, .hb-bridge-k::after { content: ""; width: 40px; height: 1px; background: #C9A24D; }
.hb-bridge-q { margin: 0 auto !important; max-width: 30ch; font-family: "HB Lora", Georgia, serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.4rem) !important; line-height: 1.3 !important; color: #14325C !important; text-wrap: balance; }
.hb-bridge-q strong { font-weight: 600; color: #A14832; }

/* Prestations assurées : mise en avant */
.hb-svc-head { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 30px; align-items: end; }
.hb-svc-head > .wp-block-group__inner-container { display: contents; }
.hb-svc-head h2 { margin: 14px 0 0 !important; font-size: clamp(2rem, 4vw, 3.3rem) !important; line-height: 1.05 !important; }
.hb-svc-head p.hb-svc-intro { margin: 0 !important; font-size: 1.05rem !important; color: #3E5675; }
.hb-svc { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px !important; margin-top: 40px !important; }
.hb-svc > .wp-block-group__inner-container { display: contents; }
.hb-svc-card {
  position: relative; overflow: hidden; margin: 0 !important;
  display: flex !important; flex-direction: column;
  padding: 30px 28px 26px !important; border-radius: 26px;
  background: #fff; border: 1px solid #EBE2D3;
  box-shadow: 0 16px 40px rgba(20,50,92,.06);
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .55s ease;
}
.hb-svc-card > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.hb-svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(20,50,92,.13); }
.hb-svc-card:first-child { grid-row: span 2; background: linear-gradient(165deg, #14325C 0%, #1D4677 100%); border-color: transparent; color: #fff; padding: 40px 34px 34px !important; }
.hb-svc-card:first-child::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(231,201,128,.35); box-shadow: 0 0 0 30px rgba(231,201,128,0), 0 0 0 31px rgba(231,201,128,.18); pointer-events: none; }
.hb-svc-card p, .hb-svc-card h3 { margin: 0 !important; }
.hb-svc-num { font-family: var(--hb-font-display); font-size: 3.2rem !important; line-height: 1 !important; color: #E9DFCE !important; margin-bottom: 18px !important; transition: color .5s ease; }
.hb-svc-card:hover .hb-svc-num { color: #C9A24D !important; }
.hb-svc-card:first-child .hb-svc-num { font-size: 5rem !important; color: #E7C980 !important; }
.hb-svc-card h3 { font-size: 1.3rem !important; line-height: 1.2 !important; margin-bottom: 10px !important; color: #14325C; }
.hb-svc-card:first-child h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem) !important; color: #fff !important; }
.hb-svc-card .hb-svc-desc { font-size: .97rem !important; line-height: 1.55 !important; color: #3E5675 !important; }
.hb-svc-card:first-child .hb-svc-desc { color: rgba(255,255,255,.85) !important; font-size: 1.05rem !important; }
.hb-svc-card .hb-benefit { margin-top: auto !important; padding-top: 18px !important; border-top: 1px solid #EFE7DA; font-size: .92rem !important; line-height: 1.5 !important; color: #14325C !important; }
.hb-svc-card > .wp-block-group__inner-container > .hb-svc-desc { margin-bottom: 18px !important; }
.hb-svc-card .hb-benefit strong { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #A14832; }
.hb-svc-card:first-child .hb-benefit { border-top-color: rgba(255,255,255,.18); color: #fff !important; font-size: 1rem !important; }
.hb-svc-card:first-child .hb-benefit strong { color: #E7C980; }
.hb-svc-cta { margin-top: 34px !important; display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap; }
.hb-svc-cta > .wp-block-group__inner-container { display: contents; }
.hb-svc-cta p { margin: 0 !important; color: #3E5675; }

/* Conclusion : bouton principal bien visible */
.hb-section--cta .wp-block-button:first-child .wp-block-button__link { background: #A14832 !important; color: #fff !important; border-color: #A14832 !important; border-radius: 999px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.hb-section--cta .wp-block-button:first-child .wp-block-button__link:hover { background: #8C3B28 !important; }

@media (max-width: 1024px) {
  .hb-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-svc-card:first-child { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 781px) {
  .hb-svc-head { grid-template-columns: 1fr; gap: 14px; }
  .hb-stat-grid > div > p:nth-child(even) { transform: none; }
  .hb-stat-grid > div > p { aspect-ratio: auto; padding: 22px 10px !important; }
  .hb-stat-grid::before { display: none; }
  .hb-stat-grid { padding-bottom: 0; }
}
@media (max-width: 600px) {
  .hb-svc { grid-template-columns: 1fr; gap: 12px !important; margin-top: 28px !important; }
  .hb-svc-card { padding: 24px 22px 22px !important; }
  .hb-svc-card:first-child { padding: 30px 24px 26px !important; }
  .hb-svc-card:first-child .hb-svc-num { font-size: 3.6rem !important; }
  .hb-svc-num { font-size: 2.4rem !important; margin-bottom: 10px !important; }
  .hb-path--primary { padding: 20px 18px !important; }
  .hb-path--primary { display: block !important; }
  .hb-path--primary .hb-path-title { font-size: 1.2rem !important; }
  .hb-path--primary .hb-path-link { font-size: .92rem !important; }
  .hb-path--primary .hb-path-link a { width: auto; height: auto; border: 0; padding: 12px 18px; }
  .hb-path-text { font-size: .9rem !important; margin-bottom: 14px !important; }
  .hb-proof { font-size: .82rem !important; }
  .hb-bridge-q { font-size: 1.45rem !important; }
  .hb-section--cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .hb-section--cta .wp-block-button { width: 100%; }
  .hb-section--cta .wp-block-button__link { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-cine-hero .hb-proof { animation: none !important; }
  .hb-svc-card, .hb-svc-num { transition: none !important; }
}
/* 1.8.1 — mobile */
@media (max-width: 600px) {
  .hb-bridge-k { font-size: .62rem !important; letter-spacing: .18em; gap: 8px; }
  .hb-bridge-k::before, .hb-bridge-k::after { width: 18px; flex: 0 0 auto; }
  .hb-svc-section.alignfull, .hb-film-section.alignfull { padding-top: 72px !important; padding-bottom: 72px !important; }
  .hb-svc-section .hb-bridge { margin-bottom: 56px !important; }
  .hb-bridge-section.alignfull { padding-bottom: 72px !important; }
  .hb-svc-cta { margin-top: 24px !important; gap: 10px; }
  .hb-svc-cta .wp-block-buttons, .hb-svc-cta .wp-block-button { width: 100%; }
  .hb-svc-cta .wp-block-button__link { width: 100%; text-align: center; }
  .hb-svc-cta p { font-size: .9rem; text-align: center; width: 100%; }
}

/* 3.9.10 — lien texte « → » identique à celui des pages destinations (.hb-d-link, cf. dest.css) */
.hb-d-link a { font-weight: 600; color: #14325C !important; text-decoration: none; border-bottom: 1px solid rgba(20,50,92,.3); padding-bottom: 2px; transition: border-color .3s ease, color .3s ease; }
.hb-d-link a:hover { color: #2A8FD6 !important; border-color: #2A8FD6; }
