/* Accueil — carnet de voyage sur la Riviera */

.hb-home .hb-hero {
  min-height: clamp(640px, calc(100svh - 116px), 920px) !important;
  padding: clamp(56px, 9vh, 110px) clamp(24px, 7.2vw, 112px) !important;
  border-radius: 0 0 var(--hb-radius-hero) var(--hb-radius-hero);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(10, 34, 62, .16);
}
.hb-home .hb-hero .wp-block-cover__image-background {
  transform: scale(1.055);
  transform-origin: 54% 52%;
}
.hb-home .hb-hero .wp-block-cover__background { opacity: .76; }
.hb-home .hb-hero .wp-block-cover__inner-container { width: 100%; max-width: 1280px; }
.hb-home .hb-hero .wp-block-cover__inner-container > .wp-block-group {
  max-width: min(1050px, 100%) !important;
  min-width: 0;
  gap: clamp(18px, 2.3vh, 28px) !important;
}
.hb-home .hb-hero .hb-eyebrow {
  margin-bottom: 2px;
  padding: .72rem 1rem;
  border-color: rgba(255, 255, 255, .68);
  background: rgba(20, 50, 92, .38);
  color: #fff !important;
  backdrop-filter: blur(8px);
}
.hb-home .hb-hero h1 {
  color: #fff !important;
  max-width: 1050px;
  margin-block: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif !important;
  font-size: clamp(3.15rem, 5.65vw, 5.7rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.045em;
  line-height: .98 !important;
  text-shadow: 0 4px 36px rgba(7, 28, 49, .34);
  text-wrap: balance;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.hb-home .hb-hero p:not(.hb-eyebrow) {
  max-width: 760px;
  margin-block: 0;
  color: #f8fbff !important;
  font-size: clamp(1.03rem, 1.45vw, 1.25rem) !important;
  text-shadow: 0 2px 18px rgba(7, 28, 49, .38);
}
.hb-home .hb-hero .wp-block-buttons { gap: 12px; margin-top: 2px; }
.hb-home .hb-hero .wp-block-button__link { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.hb-home .hb-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,.8) !important;
  background: rgba(20,50,92,.22) !important;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.hb-home .hb-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.16) !important;
}
.hb-home .hb-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .62rem .9rem;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 999px;
  background: rgba(243, 235, 221, .96);
  color: var(--hb-ink) !important;
  font-size: .72rem !important;
  font-weight: 750 !important;
  letter-spacing: .16em !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
}
.hb-home .hb-hero .wp-block-button__link { min-width: 190px; }
.hb-home .hb-hero::after {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 34px;
  z-index: 2;
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), rgba(255,255,255,0));
  content: "";
  transform-origin: top;
  animation: hb-scroll-cue 2.2s ease-in-out infinite;
}
.hb-home .hb-hero::before {
  position: absolute;
  right: clamp(16px, 4.3vw, 63px);
  bottom: 35px;
  z-index: 2;
  color: rgba(255,255,255,.86);
  content: "DÉFILER POUR EXPLORER";
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-align: right;
  transform: translateX(-16px) rotate(-90deg);
  transform-origin: right bottom;
}
.hb-home .hb-section {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px) !important;
  scroll-margin-top: 7rem;
}
.hb-home .hb-section > .wp-block-group__inner-container,
.hb-home .hb-section > .wp-block-columns,
.hb-home .hb-section > .wp-block-group {
  max-width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hb-home .hb-section h2 { max-width: 820px; }
.hb-home .hb-section--trust {
  z-index: 1;
  margin-top: -36px !important;
  padding-block: 0 !important;
  background: transparent !important;
}
.hb-home .hb-section--trust .wp-block-column {
  min-height: 132px;
  padding: 24px 25px;
  border: 1px solid var(--hb-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 44px rgba(20, 50, 92, .12);
}
.hb-home .hb-section--trust h3 { color: var(--hb-action) !important; }
.hb-home .hb-section--services {
  background-color: var(--hb-cream) !important;
}
.hb-home .hb-section--services .hb-card {
  height: 100%;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 26px;
  background-image: linear-gradient(150deg, #fff 45%, #FBF8F2 100%);
}

.hb-home .hb-section--owner-path {
  background-color: var(--hb-ink) !important;
  background-image: radial-gradient(ellipse at 90% 0%, rgba(42, 143, 214, .22), transparent 42%);
}
.hb-home .hb-section--owner-path h2,
.hb-home .hb-section--owner-path h3,
.hb-home .hb-section--owner-path p,
.hb-home .hb-section--owner-path li { color: #fff !important; }
.hb-home .hb-section--owner-path .wp-block-column {
  border: 1px solid rgba(255, 255, 255, .26) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .07) !important;
  backdrop-filter: blur(8px);
}
.hb-home .hb-section--route { background: var(--hb-cream) !important; }
.hb-home .hb-route .wp-block-columns {
  position: relative;
  gap: clamp(16px, 2vw, 28px) !important;
  counter-reset: hb-step;
}
.hb-home .hb-route .wp-block-columns::before {
  position: absolute;
  z-index: 0;
  top: 34px;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--hb-sea), var(--hb-action));
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
}
.hb-home .hb-route.is-visible .wp-block-columns::before {
  animation: hb-route-draw 1.1s .15s ease-out forwards;
}
.hb-home .hb-route .wp-block-column {
  position: relative;
  z-index: 1;
  counter-increment: hb-step;
  padding: 22px 20px;
  border: 1px solid var(--hb-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 50, 92, .07);
}
.hb-home .hb-route .wp-block-column::before {
  display: grid;
  width: 48px;
  height: 48px;
  margin: -45px auto 20px;
  place-items: center;
  border: 5px solid var(--hb-cream);
  border-radius: 50%;
  background: var(--hb-ink);
  color: #fff;
  content: counter(hb-step, decimal-leading-zero);
  font-size: .8rem;
  font-weight: 750;
}
.hb-home .hb-section--sectors {
  background: linear-gradient(135deg, #F3EBDD 0%, #FBF8F2 68%, #E8F2F5 100%) !important;
}
.hb-home .hb-section--sectors .hb-card {
  min-height: 240px;
  padding: clamp(24px, 3vw, 38px) !important;
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
}
.hb-home .hb-section--sectors .hb-card:hover,
.hb-home .hb-section--sectors .hb-card:focus-within { transform: translateY(-6px); }
.hb-home .hb-section--showcase { background: var(--hb-cream) !important; }
.hb-home .hb-step-number { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border: 5px solid var(--hb-cream); border-radius: 50%; background: var(--hb-ink); color: #fff; font-size: .8rem; font-weight: 750; }
.hb-home .hb-postmark { width: fit-content; padding: .4rem .65rem; border: 1px solid var(--hb-action); border-radius: 4px; color: var(--hb-action); font-size: .65rem; font-weight: 750; letter-spacing: .16em; transform: rotate(-4deg); }
.hb-home .hb-section--showcase .wp-block-image img,
.hb-home .hb-section--showcase .wp-block-gallery img {
  border-radius: 48% 48% 18px 18px !important;
  box-shadow: 0 20px 48px rgba(20, 50, 92, .14);
}
.hb-home .hb-section--faq { background: #fff !important; }
.hb-home .hb-section--faq details[open] summary { color: var(--hb-action); }
.hb-home .hb-section--faq details[open] { border-color: rgba(161, 72, 50, .42); }
.hb-home .entry-content .hb-section--cta.wp-block-group, .hb-home .hb-section--cta {
  background-color: var(--hb-ink) !important;
  background-image: radial-gradient(ellipse at 85% 20%, rgba(42, 143, 214, .24), transparent 44%);
}
.hb-home .hb-section--cta h2,
.hb-home .hb-section--cta h3,
.hb-home .hb-section--cta p { color: #fff !important; }
.hb-home .hb-section--cta a:not(.wp-block-button__link) { color: #D9EFFD; }
.hb-motion-ready .hb-home .hb-reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1); }
.hb-motion-ready .hb-home .hb-reveal.is-visible { opacity: 1; transform: none; }
.hb-motion-ready .hb-home .hb-hero .wp-block-group > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.72,.18,1);
}
.hb-motion-ready .hb-home .hb-hero.is-visible .wp-block-group > * { opacity: 1; transform: none; }
.hb-motion-ready .hb-home .hb-hero.is-visible .wp-block-group > :nth-child(1) { transition-delay: .08s; }
.hb-motion-ready .hb-home .hb-hero.is-visible .wp-block-group > :nth-child(2) { transition-delay: .2s; }
.hb-motion-ready .hb-home .hb-hero.is-visible .wp-block-group > :nth-child(3) { transition-delay: .34s; }
.hb-motion-ready .hb-home .hb-hero.is-visible .wp-block-group > :nth-child(4) { transition-delay: .48s; }
@keyframes hb-scroll-cue {
  0%, 100% { opacity: .6; transform: scaleY(.65); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes hb-route-draw { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  .hb-home .hb-hero .wp-block-cover__image-background {
    animation: hb-hero-scroll linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 78vh;
    will-change: transform;
  }
  @keyframes hb-hero-scroll {
    from { transform: scale(1.055) translate3d(0, 0, 0); }
    to { transform: scale(1.2) translate3d(0, 3.5%, 0); }
  }
}
@media (max-width: 767px) {

  .hb-home .hb-hero {
    min-height: clamp(650px, calc(100svh - 76px), 820px) !important;
    padding: 60px 24px 88px !important;
    border-radius: 0 0 28px 28px;
  }
  .hb-home .hb-hero .wp-block-cover__image-background { object-position: 58% center !important; }
  .hb-home .hb-hero .wp-block-cover__background { opacity: .81; }
  .hb-home .hb-hero .wp-block-cover__inner-container { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .hb-home .hb-hero .wp-block-group { width: calc(100% - 40px); max-width: 100% !important; min-width: 0; margin-inline: auto; box-sizing: border-box; gap: 19px !important; }
  .hb-home .hb-hero h1 { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; font-size: clamp(2.15rem, 9vw, 3.25rem) !important; line-height: 1.02 !important; }
  .hb-home .hb-hero p:not(.hb-eyebrow) { width: 100%; max-width: 100% !important; min-width: 0; box-sizing: border-box; font-size: 1rem !important; line-height: 1.58 !important; white-space: normal !important; overflow-wrap: anywhere; }
  .hb-home .hb-hero .wp-block-buttons { align-items: stretch; flex-direction: column; width: min(100%, 380px); max-width: 100%; min-width: 0; box-sizing: border-box; }
  .hb-home .hb-hero .wp-block-button, .hb-home .hb-hero .wp-block-button__link { width: 100%; }
  .hb-home .hb-hero .wp-block-button__link { min-width: 0; min-height: 54px; box-sizing: border-box; }
  .hb-home .hb-hero::before { content: "DÉFILER"; right: 16px; bottom: 28px; font-size: .55rem; }
  .hb-home .hb-hero::after { right: 33px; bottom: 27px; height: 44px; }
  .hb-home .hb-hero .hb-eyebrow { letter-spacing: .08em !important; }
  .hb-home .hb-hero .wp-block-cover__image-background { transform-origin: 62% 50%; }
  .hb-home .hb-eyebrow { font-size: .62rem !important; }
  .hb-home .hb-section { padding-block: 60px !important; }
  .hb-home .hb-section--trust { margin-top: -22px !important; padding-block: 0 !important; }
  .hb-home .hb-section--trust .wp-block-column { min-height: auto; padding: 19px 18px; }
  .hb-home .hb-route .wp-block-columns::before { display: none; }
  .hb-home .hb-route .wp-block-column::before { margin: 0 0 14px; border-color: var(--hb-cream); }
  .hb-home .hb-section--sectors .hb-card { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-home .hb-hero .wp-block-cover__image-background { animation: none !important; transform: none !important; will-change: auto; }
  .hb-home .hb-hero::after { animation: none !important; }
  .hb-home .hb-route .wp-block-columns::before { animation: none !important; transform: none; }
  .hb-motion-ready .hb-home .hb-reveal,
  .hb-motion-ready .hb-home .hb-hero .wp-block-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   SCÈNE 01 — « Fenêtre sur la Riviera » (ajout Claude, 18/11)
   Activée uniquement par home.js (classe .hb-hero-motion sur <html>).
   Sauvegarde de la version précédente : backup-claude/home.css.avant-claude
   ===================================================================== */
@font-face {
  font-family: "HB Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HB Lora";
  src: url("../fonts/lora-italic-latin.woff") format("woff");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
:root {
  --hb-serif: "HB Fraunces", "Iowan Old Style", Georgia, serif;
  --hb-italic: "HB Lora", Georgia, serif;
  --hb-sand-bg: #F3ECE0;
  --hb-ease-out: cubic-bezier(.16, 1, .3, 1);
}
.hb-home .hb-hero h1,
.hb-home .entry-content h2 { font-family: var(--hb-serif) !important; font-weight: 600 !important; letter-spacing: -.02em; }
.hb-home .hb-hero h1 { font-size: clamp(2.3rem, 4.1vw, 4.3rem) !important; line-height: 1.04 !important; max-width: 920px !important; }
.hb-hero-motion .hb-home .hb-hero .wp-block-cover__inner-container { padding-top: 24px; }

/* Épinglage */
.hb-hero-motion .hb-home .hb-hero-pin { position: relative; height: 230vh; height: 230svh; }
.hb-hero-motion .hb-home .hb-hero-pin > .hb-hero {
  position: sticky !important;
  top: 0;
  height: 100vh; height: 100svh;
  min-height: 560px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: var(--hb-sand-bg);
}
.admin-bar.hb-home .hb-hero-pin > .hb-hero { top: 32px; height: calc(100svh - 32px); }

/* Image : dézoom d'entrée (propriété scale) + zoom lié au défilement (transform) */
.hb-hero-motion .hb-home .hb-hero .wp-block-cover__image-background,
.hb-home .hb-hero-video {
  animation: none !important;
  transform: scale(var(--hb-scroll-scale, 1)) !important;
  scale: 1.16;
  transition: scale 2.6s var(--hb-ease-out);
  will-change: transform;
}
.hb-hero-in .hb-home .hb-hero .wp-block-cover__image-background,
.hb-hero-in .hb-home .hb-hero-video { scale: 1.02; }
.hb-home .hb-hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease, scale 2.6s var(--hb-ease-out);
}
.hb-home .hb-hero-video.is-playing { opacity: 1; }
.hb-home .hb-hero-media .wp-block-cover__background { z-index: 1; }
.hb-home .hb-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; will-change: clip-path; }
.hb-hero-motion .hb-home .hb-hero .wp-block-cover__background { will-change: opacity; }
.hb-hero-motion .hb-home .hb-hero::before,
.hb-hero-motion .hb-home .hb-hero::after { opacity: calc(1 - var(--hb-progress, 0) * 4); }

/* Titre mot par mot */
.hb-home .hb-hero h1 .hb-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hb-home .hb-hero h1 .hb-word > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--hb-ease-out);
}
.hb-hero-in .hb-home .hb-hero h1 .hb-word > span { transform: none; }

/* Surtitre, texte et boutons après le titre */
.hb-hero-motion .hb-home .hb-hero .hb-follow {
  opacity: 0 !important;
  transform: translate3d(0, 22px, 0) !important;
  transition: opacity .9s ease, transform 1s var(--hb-ease-out) !important;
}
.hb-hero-in .hb-home .hb-hero .hb-follow { opacity: 1 !important; transform: none !important; }
.hb-hero-motion .hb-home .hb-hero .wp-block-cover__inner-container { will-change: opacity, transform; }

/* Signature sous l'arche */
.hb-home .hb-arch-signature {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  z-index: 3;
  width: min(92vw, 760px);
  opacity: 0;
  transform: translate3d(-50%, 24px, 0);
  text-align: center;
  pointer-events: none;
}
.hb-home .hb-arch-kicker {
  display: block;
  margin-bottom: .6rem;
  color: #A9563B;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hb-home .hb-arch-line {
  display: block;
  color: #14325C;
  font-family: var(--hb-serif);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hb-home .hb-arch-line em { font-family: var(--hb-italic); font-weight: 500; color: #2A8FD6; }

@media (max-width: 767px) {
  .hb-hero-motion .hb-home .hb-hero-pin { height: 190vh; height: 190svh; }
  .hb-home .hb-arch-signature { bottom: 8vh; }
  .hb-home .hb-arch-line { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hb-home .hb-hero h1 .hb-word > span { transform: none !important; transition: none !important; }
}


/* =====================================================================
   SCÈNES 02 à 06 (ajout Claude)
   ===================================================================== */

/* Cartes services : cascade + inclinaison 3D */
.hb-home .hb-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--hb-ease-out), box-shadow .4s ease !important;
  will-change: transform;
}
.hb-home .hb-tilt:hover { box-shadow: 0 22px 48px rgba(20, 50, 92, .14) !important; }
.hb-motion-ready .hb-home .hb-card.hb-reveal { transform: translate3d(0, 34px, 0) scale(.98); }
.hb-motion-ready .hb-home .hb-card.hb-reveal.is-visible { transform: none; }

/* Zones en cartes postales */
.hb-home .hb-section--sectors .wp-block-columns { gap: clamp(28px, 4vw, 64px) !important; padding-block: 18px; }
.hb-home .hb-postcard {
  position: relative;
  padding: 12px 12px 46px;
  background: #fffdf8;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(20, 50, 92, .06), 0 24px 54px rgba(20, 50, 92, .16);
  transition: transform .7s var(--hb-ease-out), box-shadow .5s ease;
}
.hb-home .hb-postcard--left { transform: rotate(-2.4deg); }
.hb-home .hb-postcard--right { transform: rotate(1.8deg) translateY(18px); }
.hb-home .hb-postcard:hover,
.hb-home .hb-postcard:focus-within { transform: rotate(0deg) translateY(-10px) scale(1.015); box-shadow: 0 4px 8px rgba(20,50,92,.08), 0 34px 70px rgba(20,50,92,.22); z-index: 2; }
.hb-home .hb-postcard .wp-block-cover { border-radius: 3px !important; min-height: 420px; overflow: hidden; }
.hb-home .hb-postcard .wp-block-cover__image-background { transition: transform 1.2s var(--hb-ease-out); }
.hb-home .hb-postcard:hover .wp-block-cover__image-background { transform: scale(1.06); }
.hb-home .hb-stamp {
  position: absolute;
  top: -18px; right: 18px;
  display: grid; place-items: center;
  width: 92px; height: 92px;
  border: 2px dashed rgba(169, 86, 59, .75);
  border-radius: 50%;
  background: rgba(255, 253, 248, .94);
  color: #A9563B;
  transform: rotate(12deg);
  text-align: center;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(20,50,92,.12);
}
.hb-home .hb-stamp b { display: block; font-family: var(--hb-serif); font-size: 1.8rem; font-weight: 600; }
.hb-home .hb-stamp { align-content: center; gap: 0; }
.hb-home .hb-stamp small { display: block; margin-top: 2px; font-size: .48rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal .hb-postcard--left { opacity: 0; transform: translate3d(-80px, 40px, 0) rotate(-9deg); }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal .hb-postcard--right { opacity: 0; transform: translate3d(80px, 60px, 0) rotate(8deg); }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard { opacity: 1; transition: transform 1.2s var(--hb-ease-out), opacity .9s ease, box-shadow .5s ease; }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard--left { transform: rotate(-2.4deg); }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard--right { transform: rotate(1.8deg) translateY(18px); transition-delay: .15s; }
.hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard:hover { transform: rotate(0deg) translateY(-10px) scale(1.015); transition-delay: 0s; }

/* Vitrine : galerie horizontale */
.hb-home .hb-vitrine .hb-track { flex-wrap: nowrap !important; gap: clamp(16px, 2vw, 28px) !important; }
.hb-home .hb-vitrine .hb-track > figure { overflow: hidden; border-radius: 18px; }
.hb-home .hb-vitrine-pin { position: relative; }
.hb-home .hb-vitrine.is-pinned {
  position: sticky !important; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px !important;
}
.admin-bar.hb-home .hb-vitrine.is-pinned { top: 32px; height: calc(100svh - 32px); }
.hb-home .hb-vitrine.is-pinned .hb-track {
  width: max-content !important;
  max-width: none !important;
  will-change: transform;
}
.hb-home .hb-vitrine.is-pinned .hb-track > figure {
  flex: 0 0 auto !important;
  width: min(38vw, 560px) !important;
  height: min(48vh, 480px) !important;
  margin: 0 !important;
}
.hb-home .hb-vitrine.is-pinned .hb-track > figure:first-child { margin-left: 0 !important; }
.hb-home .hb-vitrine.is-pinned .hb-track img { width: 100% !important; height: 100% !important; object-fit: cover; will-change: transform; }
@media (max-width: 1023px) {
  .hb-home .hb-vitrine .hb-track {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; scrollbar-width: none;
  }
  .hb-home .hb-vitrine .hb-track::-webkit-scrollbar { display: none; }
  .hb-home .hb-vitrine .hb-track > figure { flex: 0 0 78% !important; width: 78% !important; scroll-snap-align: center; }
  .hb-home .hb-vitrine .hb-track img { aspect-ratio: 4 / 5; object-fit: cover; height: auto !important; }
}

/* Titres de fin mot par mot */
.hb-home h2.hb-split .hb-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hb-home h2.hb-split .hb-word > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1s var(--hb-ease-out); }
.hb-home h2.hb-split.is-in .hb-word > span { transform: none; }

@media (max-width: 767px) {
  .hb-home .hb-postcard--left, .hb-home .hb-postcard--right,
  .hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard--left,
  .hb-motion-ready .hb-home .hb-section--sectors.hb-reveal.is-visible .hb-postcard--right { transform: rotate(-1deg); }
  .hb-home .hb-stamp { width: 74px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-home .hb-tilt, .hb-home .hb-postcard { transform: none !important; transition: none !important; }
  .hb-home h2.hb-split .hb-word > span { transform: none !important; }
}

/* Ajustements mobiles de l'ouverture */
.hb-home .hb-hero h1 .hb-word,
.hb-home .hb-hero h1 .hb-word > span { max-width: 100%; }
.hb-home .hb-hero h1, .hb-home .hb-hero h1 .hb-word > span { overflow-wrap: normal !important; hyphens: manual; }
@media (max-width: 767px) {
  .hb-home .hb-hero h1 { font-size: clamp(1.75rem, 8.2vw, 2.3rem) !important; line-height: 1.08 !important; }
  .hb-home .hb-hero p:not(.hb-eyebrow) { font-size: .93rem !important; line-height: 1.5 !important; }
  .hb-hero-motion .hb-home .hb-hero { padding-top: 28px !important; padding-bottom: 72px !important; align-items: flex-start; }
  .hb-hero-motion .hb-home .hb-hero .wp-block-cover__inner-container { padding-top: 8px; }
  .hb-home .hb-hero .wp-block-group { gap: 14px !important; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hb-home .hb-hero p:not(.hb-eyebrow) strong { display: none; }
}

/* 1.1.4 — ouverture plus légère : titre plus petit, texte d'introduction court */
.hb-home .hb-hero h1 { font-size: clamp(2rem, 3.3vw, 3.4rem) !important; max-width: 760px !important; }
.hb-home .hb-hero p:not(.hb-eyebrow) { font-size: clamp(1rem, 1.25vw, 1.2rem) !important; max-width: 560px; }
@media (max-width: 767px) {
  .hb-home .hb-hero h1 { font-size: clamp(1.6rem, 7.2vw, 2rem) !important; }
}

/* 1.1.5 — ouverture aérée */
.hb-home .hb-hero .hb-eyebrow { margin-bottom: 26px !important; }
.hb-home .hb-hero h1 { margin-bottom: 26px !important; line-height: 1.1 !important; }
.hb-home .hb-hero p:not(.hb-eyebrow) {
  margin-top: 0 !important;
  margin-bottom: 42px !important;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem) !important;
  font-family: var(--hb-italic) !important;
  font-style: italic;
  letter-spacing: .01em;
  color: #F3ECE0 !important;
}
.hb-home .hb-hero .wp-block-buttons { gap: 16px !important; }
@media (max-width: 767px) {
  .hb-home .hb-hero .hb-eyebrow { margin-bottom: 18px !important; }
  .hb-home .hb-hero h1 { margin-bottom: 18px !important; }
  .hb-home .hb-hero p:not(.hb-eyebrow) { margin-bottom: 28px !important; }
}

/* =====================================================================
   1.2.0 — VERSION MOBILE REPENSÉE (≤ 767 px)
   ===================================================================== */
@media (max-width: 767px) {
  /* Respiration générale */
  .hb-home .entry-content > .wp-block-group.alignfull,
  .hb-home .hb-section { padding-left: 20px !important; padding-right: 20px !important; padding-top: 56px !important; padding-bottom: 56px !important; }
  .hb-home .entry-content p,
  .hb-home .entry-content li { font-size: 1.02rem !important; line-height: 1.6 !important; }
  .hb-home .entry-content h2 { font-size: clamp(1.7rem, 7.4vw, 2.1rem) !important; line-height: 1.12 !important; }
  .hb-home .entry-content .wp-block-group__inner-container > * { max-width: 100% !important; }

  /* Logo plus présent */
  .site-header img.custom-logo { width: 150px !important; max-width: 150px !important; height: auto !important; }

  /* Ouverture plein écran, texte en bas */
  .hb-home .hb-hero {
    min-height: calc(100svh - 64px) !important;
    padding: 0 20px 30px !important;
    align-items: flex-end !important;
    border-radius: 0 0 26px 26px !important;
  }
  .hb-home .hb-hero::before, .hb-home .hb-hero::after { display: none !important; }
  .hb-home .hb-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(20,50,92,.02) 0%, rgba(20,50,92,.12) 38%, rgba(14,36,66,.9) 100%) !important;
    opacity: 1 !important;
  }
  .hb-home .hb-hero .wp-block-cover__inner-container,
  .hb-home .hb-hero .wp-block-cover__inner-container > .wp-block-group,
  .hb-home .hb-hero .wp-block-group__inner-container { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
  .hb-home .hb-hero .hb-eyebrow { font-size: .58rem !important; padding: .5rem .8rem !important; margin-bottom: 14px !important; }
  .hb-home .hb-hero h1 { font-size: clamp(1.75rem, 7.8vw, 2.15rem) !important; line-height: 1.1 !important; margin-bottom: 12px !important; }
  .hb-home .hb-hero p:not(.hb-eyebrow) { font-size: 1.08rem !important; margin-bottom: 22px !important; }
  .hb-home .hb-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px !important; margin-top: 0 !important; }
  .hb-home .hb-hero .wp-block-button { width: 100% !important; }
  .hb-home .hb-hero .wp-block-button__link { width: 100%; text-align: center; padding: 15px 18px !important; }

  /* Rangées à faire glisser */
  .hb-home .hb-swipe {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    margin: 18px -20px 0 !important;
    padding: 6px 20px 16px !important;
    scrollbar-width: none;
  }
  .hb-home .hb-swipe::-webkit-scrollbar { display: none; }
  .hb-home .hb-swipe > * {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    width: 82% !important;
    margin: 0 !important;
    scroll-snap-align: center;
    opacity: 1 !important;
    transform: none !important;
  }
  .hb-home .hb-section--owner-path .hb-swipe > * { flex-basis: 88% !important; max-width: 88% !important; width: 88% !important; }
  .hb-home .hb-swipe-count {
    display: flex; align-items: center; gap: 12px;
    margin-top: 4px;
    font-size: .74rem; font-weight: 700; letter-spacing: .12em;
    color: currentColor; opacity: .8;
  }
  .hb-home .hb-swipe-dots { display: flex; gap: 6px; flex: 1; }
  .hb-home .hb-swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; transition: opacity .3s, width .3s; }
  .hb-home .hb-swipe-dots i.on { width: 18px; border-radius: 4px; opacity: .9; }
  .hb-home .hb-swipe-hint { font-weight: 600; letter-spacing: .06em; text-transform: none; transition: opacity .4s; }
  .hb-home .hb-swipe-count.is-used .hb-swipe-hint { opacity: 0; }

  /* Atouts en pastilles compactes */
  .hb-home .hb-section--trust { padding-top: 28px !important; padding-bottom: 20px !important; }
  .hb-home .hb-pills > * { flex-basis: 74% !important; max-width: 74% !important; width: 74% !important; padding: 16px 18px !important; border-radius: 16px !important; }
  .hb-home .hb-pills h3 { font-size: 1rem !important; margin-bottom: 4px !important; }
  .hb-home .hb-pills p { font-size: .9rem !important; line-height: 1.45 !important; }

  /* Étapes : itinéraire vertical */
  .hb-home .hb-section--route .is-layout-grid { display: block !important; position: relative; padding-left: 38px; margin-top: 24px !important; }
  .hb-home .hb-section--route .is-layout-grid::before {
    content: ""; position: absolute; left: 12px; top: 10px; bottom: 26px; width: 2px;
    background: linear-gradient(#2A8FD6, #C9A24D); border-radius: 2px;
  }
  .hb-home .hb-section--route .hb-card {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; padding: 0 0 26px !important; position: relative; overflow: visible !important;
    opacity: 1 !important; transform: none !important;
  }
  .hb-home .hb-section--route .hb-card .wp-block-group__inner-container > p:first-child {
    position: absolute; left: -38px; top: 0;
    width: 26px; height: 26px; margin: 0 !important;
    display: grid; place-items: center;
    border-radius: 50%; background: #fff; border: 2px solid #2A8FD6;
    font-size: .62rem !important; line-height: 1 !important; font-weight: 700; color: #14325C !important;
  }
  .hb-home .hb-section--route .hb-card h3 { font-size: 1.15rem !important; margin: 0 0 4px !important; }
  .hb-home .hb-section--route .hb-card p { margin: 0 !important; }
}

/* 1.2.1 — rangées à faire glisser : pleine largeur d'écran, cartes plus larges */
@media (max-width: 767px) {
  .hb-home .entry-content .wp-block-group__inner-container > .hb-swipe,
  .hb-home .entry-content .hb-swipe {
    max-width: none !important;
    width: calc(100% + 40px) !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }
  .hb-home .hb-swipe > * { flex: 0 0 80vw !important; max-width: 80vw !important; width: 80vw !important; }
  .hb-home .hb-section--owner-path .hb-swipe > * { flex-basis: 86vw !important; max-width: 86vw !important; width: 86vw !important; }
  .hb-home .hb-pills > * { flex-basis: 70vw !important; max-width: 70vw !important; width: 70vw !important; }
}

/* 2.2.0 — vidéo mer turquoise : voile éclairci pour garder le turquoise, texte toujours lisible */
.hb-home .hb-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(14,36,66,.78) 0%, rgba(14,36,66,.50) 38%, rgba(14,36,66,.12) 70%, rgba(14,36,66,0) 100%),
              linear-gradient(0deg, rgba(14,36,66,.35) 0%, rgba(14,36,66,0) 35%) !important;
  opacity: 1 !important;
}
.hb-home .hb-hero h1, .hb-home .hb-hero .wp-block-cover__inner-container p { text-shadow: 0 2px 18px rgba(8,24,46,.45); }
.hb-home .hb-hero-video { filter: saturate(1.08) contrast(1.03); }
@media (max-width: 767px) {
  .hb-home .hb-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(14,36,66,.25) 0%, rgba(14,36,66,.45) 45%, rgba(14,36,66,.78) 100%) !important;
  }
}
