/* Hero plein cadre : nature morte en fond, texte posé à gauche sur le mur. Variantes Accueil et Fonctionnalités (même grammaire que Science et recherche). */
.hx { position: relative; display: flex; align-items: center; min-height: max(760px, 100vh); min-height: max(760px, 100svh); padding: 160px 0 120px; overflow: hidden; color: var(--ink-soft); }
.hx--celadon { background: #c9d6cc; }
.hx--rose { background: #d8b9b1; }
.hx-bg { position: absolute; inset: 0; z-index: 0; }
.hx-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 60%; }
.hx::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hx--celadon::after { background: linear-gradient(90deg, rgba(235, 242, 236, .72) 0%, rgba(235, 242, 236, .4) 38%, rgba(235, 242, 236, 0) 58%); }
.hx--rose::after { background: linear-gradient(90deg, rgba(246, 234, 230, .74) 0%, rgba(246, 234, 230, .42) 38%, rgba(246, 234, 230, 0) 58%); }
.hx-wrap { position: relative; z-index: 2; width: 100%; max-width: var(--max-w, 1240px); margin: 0 auto; padding: 0 var(--sp-5, 24px); }
.hx-inner { max-width: 600px; }
.hx-kicker { display: inline-flex; align-items: center; margin: 0 0 18px; padding-left: 40px; position: relative; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green, #0d5b3f); background: linear-gradient(currentColor, currentColor) no-repeat 4px 50% / 28px 1px; }
.hx-kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; }
.hx-h1 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(2.8rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.hx-lede { margin: 28px 0 0; max-width: 40ch; font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.hx-lede span { display: block; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hx-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: color-mix(in srgb, #ffffff 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9); color: var(--ink); font-size: var(--fs-small, 15px); font-weight: 600; text-decoration: none; }
.hx-ghost svg { width: 14px; height: 14px; }
.hx-ghost:hover { background: #ffffff; }
.hx-ghost:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.hx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 0; padding: 0; }
.hx-tags li { position: relative; padding: 9px 16px 9px 30px; border-radius: 999px; background: color-mix(in srgb, #ffffff 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hx-tags li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--green, #0d5b3f); }

/* Captures posées sur l'image (sur le mur, au-dessus des objets) */
.hx-float { position: absolute; z-index: 2; margin: 0; border-radius: 16px; overflow: hidden; background: #ffffff; box-shadow: 0 40px 80px -36px rgba(13, 26, 20, .55), 0 0 0 1px rgba(255, 255, 255, .7); }
.hx-float img, .hx-float video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-float figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, #ffffff 92%, transparent); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.hx-float--phone { width: 210px; aspect-ratio: 780 / 1688; right: 30%; top: 17%; border-radius: 28px; border: 6px solid #1c1d1f; }
.hx-float--a { width: 300px; aspect-ratio: 4 / 3; right: 25%; top: 18%; }
.hx-float--b { width: 200px; aspect-ratio: 4 / 5; right: 8%; top: 26%; }
.hx-float--a img { object-position: 0 0; }
.hx-float--a figcaption { left: auto; right: 10px; top: 10px; bottom: auto; }

@media (max-width: 1024px) {
  .hx-float--phone { right: 6%; top: auto; bottom: 18%; width: 160px; }
  .hx-float--a { right: 28%; top: auto; bottom: 24%; width: 220px; }
  .hx-float--b { right: 4%; top: auto; bottom: 16%; width: 150px; }
}
@media (max-width: 760px) {
  .hx { flex-direction: column; align-items: stretch; min-height: 0; padding: 128px 0 0; }
  .hx::after { display: none; }
  .hx-wrap { padding: 0 16px; }
  .hx-bg { position: relative; inset: auto; order: 2; margin-top: 40px; }
  .hx-bg img { height: 300px; object-position: 82% 60%; }
  .hx-lede { font-size: 18.5px; }
  .hx-lede span { display: inline; }
  .hx-float--phone { width: 120px; right: auto; left: 16px; bottom: 40px; border-width: 4px; border-radius: 20px; }
  .hx-float--a { width: 170px; right: auto; left: 16px; bottom: 40px; }
  .hx-float--b { width: 104px; right: auto; left: 200px; bottom: 56px; }
  .hx-float figcaption { font-size: 11px; padding: 4px 8px; left: 6px; bottom: 6px; }
}

/* Variante verte de l'accueil : mur sauge, texte clair, écrans incrustés dans l'image */
.hx--vert { background: #5a675d; color: #ffffff; align-items: flex-start; padding-top: clamp(150px, 19vh, 200px); }
.hx--vert .hx-bg img { object-position: 72% 50%; }
.hx--vert::after { background: linear-gradient(90deg, rgba(40, 54, 45, .42) 0%, rgba(40, 54, 45, .22) 40%, rgba(40, 54, 45, 0) 60%); }
.hx--vert .hx-kicker { color: #e4ece6; }
.hx--vert .hx-h1 { color: #ffffff; }
.hx--vert .hx-lede { color: rgba(255, 255, 255, .92); max-width: 36ch; }
.hx--vert .hx-cta .btn-primary { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.hx--vert .hx-cta .btn-primary:hover { background: #eef3ef; }
.hx--vert .hx-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #ffffff; }
.hx--vert .hx-ghost:hover { background: rgba(255, 255, 255, .24); }
.hx--vert .hx-tags { margin-top: 36px; }
.hx--vert .hx-tags li { background: rgba(255, 255, 255, .16); color: #ffffff; border: 1px solid rgba(255, 255, 255, .28); }
.hx--vert .hx-tags li::before { background: #cfe3d6; }
@media (max-width: 760px) {
  .hx--vert { padding-top: 120px; }
  .hx--vert .hx-bg img { height: 260px; object-position: 76% 60%; }
}
.hx--vert .hx-tags li { background: rgba(30, 44, 35, .6); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx--vert .hx-ghost { background: rgba(30, 44, 35, .45); }
