/* Horizon Bleu — cartes « Nos services » de l'accueil, version moderne (2.5.0) */
.hb-sc-on .hb-sc {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(20,50,92,.08) !important;
  border-radius: 28px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,255,255,.78)) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 6px rgba(20,50,92,.04), 0 24px 48px -30px rgba(20,50,92,.35) !important;
  padding: clamp(26px, 3vw, 36px) !important;
}
/* halo lumineux qui suit la souris */
.hb-sc-on .hb-sc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(42,143,214,.10), rgba(201,162,74,.07) 40%, transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
/* contour dégradé qui s'allume */
.hb-sc-on .hb-sc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), #C9A24A, rgba(42,143,214,.55) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease;
}
.hb-sc-on .hb-sc:hover::before, .hb-sc-on .hb-sc:hover::after { opacity: 1; }

/* grand numéro en filigrane */
.hb-sc-on .hb-sc .hb-sc-num {
  position: absolute; top: 10px; right: 20px; margin: 0 !important; z-index: -1;
  font-family: "HB Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.04em !important;
  font-size: clamp(4.2rem, 6vw, 5.6rem) !important; line-height: 1;
  color: transparent !important; -webkit-text-stroke: 1.2px rgba(20,50,92,.13);
  transition: transform .6s cubic-bezier(.22,1.2,.36,1), -webkit-text-stroke-color .4s ease;
}
.hb-sc-on .hb-sc:hover .hb-sc-num { transform: translate(-6px, 4px); -webkit-text-stroke-color: rgba(201,162,74,.55); }

/* pastille icône */
.hb-sc-on .hb-sc-ico {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 0 22px;
  border-radius: 17px; color: #fff;
  background: linear-gradient(145deg, #2A8FD6, #14325C);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 24px -12px rgba(20,50,92,.8);
  transition: transform .5s cubic-bezier(.22,1.4,.36,1), box-shadow .4s ease;
}
.hb-sc-on .hb-sc-ico svg { width: 25px; height: 25px; }
.hb-sc-on .hb-sc:nth-child(3n+2) .hb-sc-ico { background: linear-gradient(145deg, #E08A5F, #B5583A); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 24px -12px rgba(181,88,58,.8); }
.hb-sc-on .hb-sc:nth-child(3n) .hb-sc-ico { background: linear-gradient(145deg, #E2C477, #B08A2E); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 24px -12px rgba(176,138,46,.8); }
.hb-sc-on .hb-sc:hover .hb-sc-ico { transform: translateY(-4px) rotate(-6deg) scale(1.05); }

.hb-sc-on .hb-sc h3 { margin-top: 0 !important; letter-spacing: -.01em; }
.hb-sc-on .hb-sc h3 + p { color: #55627A !important; }

/* trait d'accent qui s'étire en bas */
.hb-sc-on .hb-sc .wp-block-group__inner-container::after {
  content: ""; display: block; height: 2px; width: 28px; margin-top: 22px; border-radius: 2px;
  background: linear-gradient(90deg, #C9A24A, #2A8FD6);
  transition: width .6s cubic-bezier(.22,1.2,.36,1);
}
.hb-sc-on .hb-sc:hover .wp-block-group__inner-container::after { width: 96px; }

@media (max-width: 767px) {
  .hb-sc-on .hb-sc { border-radius: 22px !important; padding: 24px !important; }
  .hb-sc-on .hb-sc-ico { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 16px; }
  .hb-sc-on .hb-sc .hb-sc-num { font-size: 3.8rem !important; top: 8px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-sc-on .hb-sc-ico, .hb-sc-on .hb-sc .hb-sc-num, .hb-sc-on .hb-sc .wp-block-group__inner-container::after { transition: none !important; }
}

/* Carte « 13 » : diaporama Marseille & Cassis (2.9.1) */
.hb-slides img.hb-slide { opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s ease-out; }
.hb-slides img.hb-slide.is-on { opacity: 1; transform: scale(1); }
.hb-slides .hb-slides-ui { position: absolute; left: 18px; top: 18px; z-index: 3; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.hb-slides .hb-slides-cap { padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: #fff;
  background: rgba(14,38,71,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.hb-slides .hb-slides-cap.in { animation: hbCapIn .6s ease both; }
@keyframes hbCapIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hb-slides .hb-slides-dots { display: flex; gap: 5px; padding-left: 4px; }
.hb-slides .hb-slides-dots i { width: 6px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.5); transition: width .4s ease, background .4s ease; }
.hb-slides .hb-slides-dots i.on { width: 18px; background: #E2C477; }
@media (prefers-reduced-motion: reduce) { .hb-slides img.hb-slide { transition: none; transform: none; } }

/* « Où nous intervenons » : version large et immersive (2.9.2) — active uniquement avec .hb-sectors-wide */
.hb-home .hb-section--sectors.hb-sectors-wide { padding-left: clamp(16px, 2.6vw, 40px) !important; padding-right: clamp(16px, 2.6vw, 40px) !important; }
.hb-home .hb-sectors-wide > .wp-block-group__inner-container > *,
.hb-home .hb-sectors-wide.is-layout-constrained > * { max-width: 1400px !important; margin-left: auto !important; margin-right: auto !important; }
.hb-home .hb-sectors-wide .wp-block-columns { gap: clamp(14px, 1.6vw, 24px) !important; padding-block: 8px !important; margin-top: 28px !important; align-items: stretch !important; }
.hb-home .hb-sectors-wide .wp-block-column { display: flex; flex-direction: column; }

/* Cartes : cadre fin, alignées, sans inclinaison */
.hb-home .hb-sectors-wide .hb-postcard,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard--left,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard--right {
  flex: 1 1 auto; padding: 5px !important; border-radius: 20px !important; background: #fff;
  box-shadow: 0 1px 0 rgba(20,50,92,.06), 0 28px 60px -34px rgba(20,50,92,.55) !important;
  transform: none;
}
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal .hb-postcard--left,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal .hb-postcard--right,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal .hb-postcard { transform: translateY(40px); }
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard { transform: none; }
.hb-home .hb-sectors-wide .hb-postcard:hover,
.hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard:hover { transform: translateY(-6px) !important; }
.hb-home .hb-sectors-wide .hb-postcard .wp-block-cover {
  height: 100%; min-height: clamp(440px, 36vw, 540px) !important; border-radius: 16px !important; padding: clamp(26px, 2.4vw, 38px) !important;
}
/* Lisibilité des textes sur photo */
.hb-home .hb-sectors-wide .wp-block-cover h3 { font-size: clamp(1.45rem, 1.9vw, 1.85rem) !important; line-height: 1.12 !important; text-shadow: 0 2px 14px rgba(8,24,46,.45); }
.hb-home .hb-sectors-wide .wp-block-cover p { text-shadow: 0 1px 10px rgba(8,24,46,.5); max-width: 34ch; }
.hb-home .hb-sectors-wide .wp-block-cover .wp-block-cover__background { opacity: 1 !important; }
/* Tampon plus discret */
.hb-home .hb-sectors-wide .hb-stamp { top: -12px; right: 16px; width: 78px; height: 78px; transform: rotate(10deg); }
.hb-home .hb-sectors-wide .hb-stamp b { font-size: 1.5rem; }

@media (max-width: 781px) {
  .hb-home .hb-sectors-wide .wp-block-columns { gap: 18px !important; }
  .hb-home .hb-sectors-wide .hb-postcard,
  .hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard--left,
  .hb-motion-ready .hb-home .hb-section--sectors.hb-sectors-wide.hb-reveal.is-visible .hb-postcard--right { transform: none !important; }
  .hb-home .hb-sectors-wide .hb-postcard .wp-block-cover { min-height: 380px !important; padding: 24px !important; }
  .hb-home .hb-sectors-wide .hb-stamp { width: 68px; height: 68px; top: -10px; right: 12px; }
}

/* « Où nous intervenons » v2 (3.1.0) — actif uniquement avec .hb-zones-v2 */
.hb-home .hb-zones-v2 { --z-navy: #14325C; --z-ink: #0E2647; --z-azur: #2A8FD6; --z-gold: #B08A3A; --z-ivory: #FBF8F2;
  padding-left: clamp(16px, 3vw, 40px) !important; padding-right: clamp(16px, 3vw, 40px) !important; }
.hb-home .hb-zones-v2 > .wp-block-group__inner-container > * { max-width: 1320px !important; margin-left: auto !important; margin-right: auto !important; }
.hb-home .hb-zones-v2 .hbz-intro { max-width: 760px !important; margin-left: max(0px, calc((100% - 1320px) / 2)) !important; font-size: 1.06rem; line-height: 1.7; color: #44546B; }

/* Carte animée */
.hbz-map { position: relative; max-width: 1320px; margin: 34px auto 6px !important; aspect-ratio: 1000 / 150; width: 100%; }
.hbz-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hbz-coast { fill: none; stroke: rgba(42,143,214,.28); stroke-width: 2; stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1); }
.hbz-route { fill: none; stroke: var(--z-gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; opacity: 0; transition: opacity .8s ease .9s; }
.hbz-traveler { fill: var(--z-gold); opacity: 0; transition: opacity .6s ease 1.6s; }
.hbz-dot { fill: var(--z-navy); stroke: #fff; stroke-width: 3; }
.hbz-pin--remote .hbz-dot { fill: #fff; stroke: var(--z-navy); stroke-width: 2.5; }
.hbz-pulse { fill: rgba(42,143,214,.35); transform-origin: center; animation: hbzPulse 2.4s ease-out infinite; }
@keyframes hbzPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.hbz-pin { opacity: 0; transition: opacity .6s ease; }
.hbz-pin--remote { transition-delay: 1.2s; }
.hbz-in .hbz-coast { stroke-dashoffset: 0; }
.hbz-in .hbz-route, .hbz-in .hbz-traveler, .hbz-in .hbz-pin { opacity: 1; }
.hbz-label { position: absolute; bottom: -4px; white-space: nowrap; font-size: .78rem; line-height: 1.35; color: #5B6A80; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; }
.hbz-label b { display: block; font-size: .92rem; color: var(--z-navy); font-weight: 700; }
.hbz-label--home { left: 15%; transform: translate(-50%, 8px); text-align: center; transition-delay: .4s; bottom: -46px; }
.hbz-label--remote { left: 85%; transform: translate(-50%, 8px); text-align: center; transition-delay: 1.4s; bottom: -46px; }
.hbz-label--mid { left: 50%; top: 2px; bottom: auto; transform: translate(-50%, 8px); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--z-gold); transition-delay: 1.1s; }
.hbz-in .hbz-label { opacity: 1; transform: translate(-50%, 0); }

/* Deux grandes cartes photo */
.hb-home .hbz-cards { margin-top: 74px !important; }
.hb-home .hbz-cards > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 26px); }
.hb-home .hbz-card.wp-block-cover { position: relative; margin: 0 !important; min-height: clamp(460px, 38vw, 560px) !important; border-radius: 26px !important; overflow: hidden;
  padding: clamp(28px, 3vw, 44px) !important; align-items: flex-end; box-shadow: 0 40px 80px -48px rgba(14,38,71,.75);
  clip-path: inset(0 0 0 0 round 26px); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1), transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s ease; }
.hb-motion-ready .hb-home .hb-zones-v2:not(.hbz-in) .hbz-card { clip-path: inset(12% 6% 12% 6% round 26px); }
.hb-home .hbz-card--remote { transition-delay: .15s; }
.hb-home .hbz-card .wp-block-cover__image-background { transform: scale(1.1) translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px)); transition: transform 1.6s cubic-bezier(.22,1,.36,1); }
.hb-home .hbz-in .hbz-card .wp-block-cover__image-background { transform: scale(1.03) translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px)); }
.hb-home .hbz-card:hover { transform: translateY(-6px); box-shadow: 0 50px 90px -46px rgba(14,38,71,.8); }
.hb-home .hbz-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,38,71,0) 30%, rgba(14,38,71,.55) 62%, rgba(14,38,71,.92) 100%); }
.hb-home .hbz-card .wp-block-cover__inner-container { position: relative; z-index: 2; color: #fff; }
.hb-home .hbz-card .hbz-kicker { display: inline-block; margin: 0 0 14px !important; padding: 6px 12px; border-radius: 999px; font-size: .7rem !important; font-weight: 700 !important;
  letter-spacing: .16em; text-transform: uppercase; color: #fff !important; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.hb-home .hbz-card--home .hbz-kicker { background: rgba(176,138,58,.85); box-shadow: none; }
.hb-home .hbz-card h3 { font-size: clamp(1.7rem, 2.5vw, 2.4rem) !important; line-height: 1.08 !important; margin: 0 0 12px !important; color: #fff !important; text-shadow: 0 2px 18px rgba(8,24,46,.4); }
.hb-home .hbz-card p:not(.hbz-kicker):not(.hbz-link) { max-width: 40ch; color: rgba(255,255,255,.9) !important; line-height: 1.6; margin: 0 0 20px !important; }
.hb-home .hbz-card .hbz-link { margin: 0 !important; }
.hb-home .hbz-card .hbz-link a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--z-navy) !important;
  font-weight: 700; font-size: .92rem; text-decoration: none; transition: gap .35s ease, background .35s ease; }
.hb-home .hbz-card .hbz-link a::after { content: "→"; transition: transform .35s ease; }
.hb-home .hbz-card:hover .hbz-link a::after { transform: translateX(4px); }
/* Carte Côte Bleue sans photo (en attendant la photo) */
.hb-home .hbz-card--home:not(:has(.wp-block-cover__image-background)) { background: radial-gradient(120% 90% at 85% 10%, rgba(42,143,214,.55), transparent 55%), linear-gradient(160deg, #1D4F86, #0E2647) !important; }

/* Bloc sobre : ailleurs */
.hb-home .hbz-else { margin-top: clamp(16px, 1.8vw, 26px) !important; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px) !important; border-radius: 22px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(20,50,92,.1); }
.hb-home .hbz-else > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 40px; }
.hb-home .hbz-else h3 { grid-column: 1; margin: 0 !important; font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important; color: var(--z-navy) !important; }
.hb-home .hbz-else p { grid-column: 1; margin: 0 !important; color: #44546B; max-width: 70ch; }
.hb-home .hbz-else .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; }
.hb-home .hbz-else .wp-block-button__link { border-radius: 999px !important; padding: 14px 26px !important; background: var(--z-navy) !important; color: #fff !important; font-weight: 600; transition: background .3s ease, transform .3s ease; }
.hb-home .hbz-else .wp-block-button__link:hover { background: var(--z-azur) !important; transform: translateY(-2px); }

@media (max-width: 900px) {
  .hb-home .hbz-cards > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .hb-home .hbz-card.wp-block-cover { min-height: 420px !important; }
  .hb-home .hbz-else > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .hb-home .hbz-else .wp-block-buttons { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .hbz-label--mid { display: none; }
  .hbz-label { font-size: .68rem; } .hbz-label b { font-size: .78rem; }
  .hbz-label { white-space: normal; width: 44%; }
  .hbz-label--home { left: 24%; } .hbz-label--remote { left: 76%; }
  .hbz-label--home, .hbz-label--remote { bottom: -52px; }
  .hb-home .hb-zones-v2 { padding-left: 16px !important; padding-right: 16px !important; }
  .hb-home .hb-zones-v2 > .wp-block-group__inner-container { margin: 0 !important; max-width: none !important; }
  .hb-home .hbz-card.wp-block-cover { padding: 24px !important; border-radius: 22px !important; }
  .hb-home .hbz-card .hbz-link a { font-size: .86rem; padding: 11px 16px; }
  .hb-home .hbz-cards { margin-top: 78px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hbz-coast { stroke-dashoffset: 0; transition: none; } .hbz-route, .hbz-traveler, .hbz-pin, .hbz-label { opacity: 1; transition: none; }
  .hbz-pulse { animation: none; } .hb-home .hbz-card { clip-path: none !important; transition: none; }
}

/* Boussole du bloc « ailleurs » (3.1.5) */
.hb-home .hbz-else h3 { display: flex; align-items: center; gap: 12px; }
.hbz-compass { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--z-gold, #B08A3A); background: rgba(176,138,58,.12); }
.hbz-compass svg { width: 24px; height: 24px; }
.hbz-needle { transform-origin: 12px 12px; transform: rotate(-150deg); transition: transform 1.8s cubic-bezier(.3,1.6,.4,1) .2s; }
.hbz-else.is-on .hbz-needle { transform: rotate(35deg); }
.hb-home .hbz-else .wp-block-button__link::after { content: "→"; display: inline-block; width: 0; opacity: 0; margin-left: 0; transition: width .35s ease, opacity .35s ease, margin .35s ease; }
.hb-home .hbz-else .wp-block-button__link:hover::after { width: 1em; opacity: 1; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .hbz-needle { transition: none; transform: rotate(35deg); } }
