/*
Theme Name: HEBERGENEVE
Theme URI: https://hebergeneve.com
Author: HEBERGENEVE SAS (Loïc)
Author URI: https://hebergeneve.com
Description: Thème WordPress custom HEBERGENEVE — conciergerie et location courte durée au Pays de Gex. Charte Vert Jura / Bleu Léman. Bilingue FR/EN (Polylang). Intégration widget Smoobu.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
License: Propriétaire - HEBERGENEVE SAS
Text Domain: hebergeneve
Tags: custom, bilingual, booking, smoobu, pays-de-gex
*/

/* =========================================================================
   HEBERGENEVE — Design tokens
   ========================================================================= */

:root {
  /* Couleurs marque — Brand Bible v1.0 */
  --hg-vert-jura: #2D5F3F;
  --hg-vert-jura-dark: #1F4A30;
  --hg-vert-jura-light: #4A7A5C;
  --hg-bleu-leman: #1B4F72;
  --hg-bleu-leman-dark: #123A55;
  --hg-bleu-leman-light: #3D6F92;

  /* Dégradé signature */
  --hg-gradient: linear-gradient(90deg, var(--hg-vert-jura) 0%, var(--hg-bleu-leman) 100%);
  --hg-gradient-soft: linear-gradient(135deg, rgba(45,95,63,.08) 0%, rgba(27,79,114,.08) 100%);

  /* Neutres */
  --hg-white: #FFFFFF;
  --hg-cream: #F5F5F0;      /* Blanc cassé chaleureux */
  --hg-black: #000000;
  --hg-anthracite: #333333; /* Corps de texte */
  --hg-grey-600: #4A4A4A;
  --hg-grey-400: #9A9A9A;
  --hg-grey-200: #E5E5E0;
  --hg-grey-100: #F0F0EC;

  /* Feedback */
  --hg-success: #2D5F3F;
  --hg-error: #A43030;
  --hg-info: #1B4F72;

  /* Typographie */
  --hg-font-heading: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --hg-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Échelle typographique (mobile-first, fluide) */
  --hg-text-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --hg-text-sm: clamp(.875rem, .85rem + .15vw, .9375rem);
  --hg-text-base: clamp(1rem, .97rem + .2vw, 1.0625rem);
  --hg-text-lg: clamp(1.125rem, 1.08rem + .3vw, 1.25rem);
  --hg-text-xl: clamp(1.25rem, 1.18rem + .4vw, 1.5rem);
  --hg-text-2xl: clamp(1.5rem, 1.35rem + .8vw, 2rem);
  --hg-text-3xl: clamp(1.875rem, 1.65rem + 1.2vw, 2.5rem);
  --hg-text-4xl: clamp(2.25rem, 1.9rem + 1.9vw, 3.25rem);
  --hg-text-5xl: clamp(2.75rem, 2.3rem + 2.5vw, 4.25rem);

  /* Line-heights */
  --hg-lh-tight: 1.15;
  --hg-lh-snug: 1.3;
  --hg-lh-normal: 1.55;
  --hg-lh-relaxed: 1.7;

  /* Espacement (base 8px, fluide sur les grandes valeurs) */
  --hg-space-1: .25rem;
  --hg-space-2: .5rem;
  --hg-space-3: .75rem;
  --hg-space-4: 1rem;
  --hg-space-5: 1.5rem;
  --hg-space-6: 2rem;
  --hg-space-8: 3rem;
  --hg-space-10: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  --hg-space-12: clamp(4rem, 3.2rem + 3vw, 6rem);
  --hg-space-16: clamp(5rem, 4rem + 4vw, 8rem);

  /* Rayons */
  --hg-radius-sm: 4px;
  --hg-radius-md: 8px;
  --hg-radius-lg: 16px;
  --hg-radius-xl: 24px;
  --hg-radius-pill: 999px;

  /* Ombres (discrètes, élégantes) */
  --hg-shadow-xs: 0 1px 2px rgba(17, 34, 48, .06);
  --hg-shadow-sm: 0 2px 8px rgba(17, 34, 48, .08);
  --hg-shadow-md: 0 6px 20px rgba(17, 34, 48, .10);
  --hg-shadow-lg: 0 14px 40px rgba(17, 34, 48, .14);

  /* Conteneurs */
  --hg-container-sm: 640px;
  --hg-container-md: 820px;
  --hg-container-lg: 1120px;
  --hg-container-xl: 1280px;

  /* Transitions */
  --hg-transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --hg-transition-base: 250ms cubic-bezier(.4, 0, .2, 1);
  --hg-transition-slow: 400ms cubic-bezier(.4, 0, .2, 1);

  /* Header */
  --hg-header-height: 80px;
  --hg-header-height-mobile: 64px;

  /* Z-index */
  --hg-z-dropdown: 100;
  --hg-z-sticky: 200;
  --hg-z-fixed: 300;
  --hg-z-modal: 400;
  --hg-z-popover: 500;
  --hg-z-toast: 600;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-base);
  line-height: var(--hg-lh-normal);
  color: var(--hg-anthracite);
  background: var(--hg-white);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

a {
  color: var(--hg-bleu-leman);
  text-decoration: none;
  transition: color var(--hg-transition-fast);
}
a:hover, a:focus-visible { color: var(--hg-vert-jura); }
a:focus-visible { outline: 2px solid var(--hg-bleu-leman); outline-offset: 3px; border-radius: 2px; }

/* =========================================================================
   Typographie
   ========================================================================= */

h1, h2, h3, h4, h5, h6, .hg-heading {
  font-family: var(--hg-font-heading);
  font-weight: 400;
  line-height: var(--hg-lh-tight);
  color: var(--hg-anthracite);
  margin: 0 0 var(--hg-space-4);
  letter-spacing: -.01em;
}

h1, .hg-h1 { font-size: var(--hg-text-5xl); font-weight: 300; }
h2, .hg-h2 { font-size: var(--hg-text-4xl); font-weight: 300; }
h3, .hg-h3 { font-size: var(--hg-text-3xl); font-weight: 400; }
h4, .hg-h4 { font-size: var(--hg-text-2xl); font-weight: 500; }
h5, .hg-h5 { font-size: var(--hg-text-xl); font-weight: 500; }
h6, .hg-h6 { font-size: var(--hg-text-lg); font-weight: 600; }

p { margin: 0 0 var(--hg-space-4); }
p.hg-lead { font-size: var(--hg-text-lg); line-height: var(--hg-lh-relaxed); color: var(--hg-grey-600); }

.hg-eyebrow {
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-sm);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hg-vert-jura);
  margin: 0 0 var(--hg-space-3);
}

.hg-gradient-text {
  background: var(--hg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================================
   Layout
   ========================================================================= */

.hg-container {
  width: 100%;
  max-width: var(--hg-container-xl);
  margin-inline: auto;
  padding-inline: clamp(1rem, 1rem + 2vw, 2.5rem);
}
.hg-container--lg { max-width: var(--hg-container-lg); }
.hg-container--md { max-width: var(--hg-container-md); }
.hg-container--sm { max-width: var(--hg-container-sm); }

.hg-section { padding-block: var(--hg-space-12); }
.hg-section--sm { padding-block: var(--hg-space-8); }
.hg-section--lg { padding-block: var(--hg-space-16); }
.hg-section--cream { background: var(--hg-cream); }
.hg-section--dark { background: var(--hg-anthracite); color: var(--hg-cream); }
.hg-section--dark h1, .hg-section--dark h2, .hg-section--dark h3 { color: var(--hg-white); }

.hg-grid { display: grid; gap: var(--hg-space-6); }
.hg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 720px) {
  .hg-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hg-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .hg-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.hg-stack { display: flex; flex-direction: column; gap: var(--hg-space-4); }
.hg-cluster { display: flex; flex-wrap: wrap; gap: var(--hg-space-3); align-items: center; }

/* =========================================================================
   Boutons
   ========================================================================= */

.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hg-space-2);
  padding: .875rem 1.75rem;
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: var(--hg-radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--hg-transition-base);
  text-decoration: none;
  line-height: 1;
}

.hg-btn--primary {
  background: var(--hg-gradient);
  color: var(--hg-white);
  box-shadow: var(--hg-shadow-sm);
}
.hg-btn--primary:hover {
  color: var(--hg-white);
  box-shadow: var(--hg-shadow-md);
  transform: translateY(-1px);
}

.hg-btn--outline {
  background: transparent;
  color: var(--hg-vert-jura);
  border-color: var(--hg-vert-jura);
}
.hg-btn--outline:hover {
  background: var(--hg-vert-jura);
  color: var(--hg-white);
}

.hg-btn--ghost {
  background: transparent;
  color: var(--hg-anthracite);
  padding-inline: .75rem;
}
.hg-btn--ghost:hover { color: var(--hg-vert-jura); }

.hg-btn--lg { padding: 1.125rem 2.25rem; font-size: var(--hg-text-base); }

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.hg-header {
  position: sticky;
  top: 0;
  z-index: var(--hg-z-sticky);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hg-grey-200);
  height: var(--hg-header-height-mobile);
  display: flex;
  align-items: center;
}
@media (min-width: 900px) { .hg-header { height: var(--hg-header-height); } }

.hg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hg-space-6);
  width: 100%;
}

/* Logo container — works with both fallback <img> and the_custom_logo() nested .custom-logo-link */
.hg-logo,
.hg-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  max-height: 44px;
  width: auto;
  padding: 0;
  margin: 0;
}
.hg-logo img,
.hg-logo .custom-logo {
  height: 100%;
  width: auto;
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
@media (min-width: 900px) {
  .hg-logo,
  .hg-logo .custom-logo-link {
    height: 56px;
    max-height: 56px;
  }
  .hg-logo img,
  .hg-logo .custom-logo {
    max-height: 56px;
    max-width: 240px;
  }
}

.hg-nav { display: none; }
@media (min-width: 900px) {
  .hg-nav { display: flex; align-items: center; gap: var(--hg-space-6); }
}
.hg-nav a {
  color: var(--hg-anthracite);
  font-size: var(--hg-text-sm);
  font-weight: 500;
  padding: .5rem 0;
  position: relative;
}
.hg-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--hg-gradient);
  transition: right var(--hg-transition-base);
}
.hg-nav a:hover::after, .hg-nav a.current-menu-item::after { right: 0; }

.hg-header__cta { display: none; }
@media (min-width: 900px) { .hg-header__cta { display: inline-flex; } }

.hg-lang-switcher {
  display: flex;
  gap: var(--hg-space-1);
  font-size: var(--hg-text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hg-lang-switcher a {
  padding: .25rem .5rem;
  color: var(--hg-grey-400);
  border-radius: var(--hg-radius-sm);
}
.hg-lang-switcher .current-lang, .hg-lang-switcher a:hover {
  color: var(--hg-anthracite);
  background: var(--hg-grey-100);
}

.hg-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: .75rem;
}
@media (min-width: 900px) { .hg-burger { display: none; } }
.hg-burger span { width: 22px; height: 2px; background: var(--hg-anthracite); transition: var(--hg-transition-base); }

.hg-mobile-nav {
  position: fixed;
  inset: var(--hg-header-height-mobile) 0 0 0;
  background: var(--hg-white);
  z-index: var(--hg-z-fixed);
  padding: var(--hg-space-6);
  transform: translateX(100%);
  transition: transform var(--hg-transition-slow);
  overflow-y: auto;
}
.hg-mobile-nav.is-open { transform: translateX(0); }
.hg-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.hg-mobile-nav li + li { border-top: 1px solid var(--hg-grey-200); }
.hg-mobile-nav a {
  display: block;
  padding: var(--hg-space-4) 0;
  font-family: var(--hg-font-heading);
  font-size: var(--hg-text-xl);
  color: var(--hg-anthracite);
}

/* =========================================================================
   Footer
   ========================================================================= */

.hg-footer {
  background: var(--hg-anthracite);
  color: var(--hg-cream);
  padding-block: var(--hg-space-10) var(--hg-space-6);
  font-size: var(--hg-text-sm);
  line-height: var(--hg-lh-relaxed);
}
.hg-footer__top {
  display: grid;
  gap: var(--hg-space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hg-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.hg-footer h4 {
  color: var(--hg-white);
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-sm);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--hg-space-4);
}
.hg-footer ul { list-style: none; margin: 0; padding: 0; }
.hg-footer li { margin-bottom: var(--hg-space-2); }
.hg-footer a { color: var(--hg-cream); opacity: .85; }
.hg-footer a:hover { opacity: 1; color: var(--hg-white); }
.hg-footer__bottom {
  margin-top: var(--hg-space-8);
  padding-top: var(--hg-space-5);
  border-top: 1px solid rgba(245, 245, 240, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--hg-space-3);
  font-size: var(--hg-text-xs);
  opacity: .7;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hg-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-block: var(--hg-space-12);
  overflow: hidden;
  background: var(--hg-gradient-soft);
}
.hg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #FBFAF6 0%, #F0EFE8 100%);
}
.hg-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Variante watermark : logo HEBERGENEVE centré, opacity contrôlée */
.hg-hero__bg img.hg-hero__brand {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  opacity: 0.25;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hg-hero__bg img.hg-hero__brand {
    width: 75%;
  }
}
.hg-hero__bg::after {
  /* Voile blanc désactivé quand on utilise le logo en watermark sur fond crème */
  content: none;
}
.hg-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.hg-hero h1 {
  font-size: var(--hg-text-5xl);
  font-weight: 300;
  line-height: var(--hg-lh-tight);
  margin-bottom: var(--hg-space-5);
  text-wrap: balance;
}
.hg-hero p.hg-lead {
  font-size: var(--hg-text-xl);
  color: var(--hg-grey-600);
  margin: 0 auto var(--hg-space-6);
  max-width: 62ch;
  text-wrap: pretty;
}
.hg-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hg-space-3);
  justify-content: center;
}

/* -------------------------------------------------------------------------
   Hero variante "page" (Contact, FAQ, pages secondaires)
   Cadre compact : juste padding au-dessus/en-dessous du texte.
   ------------------------------------------------------------------------- */
.hg-hero--page {
  min-height: 0;
  padding-block: var(--hg-space-8);
  background: var(--hg-cream);
}
.hg-hero--page .hg-hero__title {
  font-family: var(--hg-font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 var(--hg-space-3);
}
.hg-hero--page .hg-hero__subtitle {
  font-size: var(--hg-text-lg);
  color: var(--hg-grey-600);
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}
.hg-hero__overlay--center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--hg-space-4);
}

/* -------------------------------------------------------------------------
   Hero variante "landing" (Confier mon bien, pages services)
   Texte au-dessus, photo en-dessous, tous deux pleine largeur.
   ------------------------------------------------------------------------- */
.hg-hero--landing {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--hg-space-6);
  margin: 0 auto var(--hg-space-8);
  max-width: 1100px;
  padding: var(--hg-space-6) var(--hg-space-4);
  min-height: 0;
  background: transparent;
  align-items: stretch;
}
.hg-hero--landing .hg-hero__media {
  margin: 0;
  width: 100%;
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  box-shadow: var(--hg-shadow-lg);
}
.hg-hero--landing .hg-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}
.hg-hero--landing .hg-hero__overlay {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--hg-space-6);
}
.hg-hero--landing .hg-hero__title {
  font-family: var(--hg-font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 var(--hg-space-4);
}
.hg-hero--landing .hg-hero__subtitle {
  font-size: var(--hg-text-lg);
  color: var(--hg-grey-600);
  margin: 0 0 var(--hg-space-6);
  line-height: 1.5;
}
.hg-hero--landing .hg-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hg-space-3);
  justify-content: center;
}

/* =========================================================================
   Cards (Biens)
   ========================================================================= */

.hg-bien-card {
  display: flex;
  flex-direction: column;
  background: var(--hg-white);
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
  box-shadow: var(--hg-shadow-xs);
  transition: all var(--hg-transition-base);
  text-decoration: none;
  color: inherit;
}
.hg-bien-card:hover {
  color: inherit;
  box-shadow: var(--hg-shadow-lg);
  transform: translateY(-4px);
}
.hg-bien-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hg-grey-100);
}
.hg-bien-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--hg-transition-slow);
}
.hg-bien-card:hover .hg-bien-card__media img { transform: scale(1.04); }

.hg-bien-card__body { padding: var(--hg-space-5); display: flex; flex-direction: column; gap: var(--hg-space-3); flex: 1; }
.hg-bien-card__location {
  font-size: var(--hg-text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hg-vert-jura);
}
.hg-bien-card__title {
  font-family: var(--hg-font-heading);
  font-size: var(--hg-text-xl);
  font-weight: 500;
  color: var(--hg-anthracite);
  margin: 0;
  line-height: var(--hg-lh-snug);
}
.hg-bien-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hg-space-3);
  font-size: var(--hg-text-sm);
  color: var(--hg-grey-600);
  margin-top: auto;
}
.hg-bien-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.hg-bien-card__price {
  margin-top: var(--hg-space-3);
  padding-top: var(--hg-space-3);
  border-top: 1px solid var(--hg-grey-200);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hg-bien-card__price strong {
  font-family: var(--hg-font-heading);
  font-size: var(--hg-text-xl);
  color: var(--hg-bleu-leman);
  font-weight: 500;
}
.hg-bien-card__price span { font-size: var(--hg-text-xs); color: var(--hg-grey-400); }

/* =========================================================================
   Fiche bien single
   ========================================================================= */

.hg-bien-gallery {
  display: grid;
  gap: var(--hg-space-2);
  grid-template-columns: 1fr;
  margin-bottom: var(--hg-space-8);
  border-radius: var(--hg-radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hg-bien-gallery {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16/9;
  }
  .hg-bien-gallery > :first-child { grid-row: 1 / span 2; }
}
.hg-bien-gallery img { width: 100%; height: 100%; object-fit: cover; }

.hg-bien-layout {
  display: grid;
  gap: var(--hg-space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hg-bien-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.hg-bien-booking {
  position: sticky;
  top: calc(var(--hg-header-height) + var(--hg-space-4));
  background: var(--hg-white);
  border: 1px solid var(--hg-grey-200);
  border-radius: var(--hg-radius-lg);
  padding: var(--hg-space-5);
  box-shadow: var(--hg-shadow-sm);
}

.hg-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--hg-space-3);
  padding: 0;
  list-style: none;
  margin: 0;
}
.hg-equipment-grid li {
  padding: var(--hg-space-3);
  background: var(--hg-cream);
  border-radius: var(--hg-radius-md);
  font-size: var(--hg-text-sm);
  display: flex;
  align-items: center;
  gap: var(--hg-space-2);
}

/* =========================================================================
   Témoignages
   ========================================================================= */

.hg-testimonial {
  background: var(--hg-white);
  border-left: 3px solid var(--hg-bleu-leman);
  padding: var(--hg-space-5) var(--hg-space-6);
  border-radius: 0 var(--hg-radius-md) var(--hg-radius-md) 0;
  box-shadow: var(--hg-shadow-xs);
}
.hg-testimonial blockquote {
  margin: 0 0 var(--hg-space-4);
  font-family: var(--hg-font-heading);
  font-size: var(--hg-text-lg);
  font-style: italic;
  color: var(--hg-anthracite);
  line-height: var(--hg-lh-snug);
}
.hg-testimonial footer { font-size: var(--hg-text-sm); color: var(--hg-grey-600); }
.hg-testimonial footer strong { color: var(--hg-vert-jura); font-weight: 600; }

/* =========================================================================
   Formulaires
   ========================================================================= */

.hg-form { display: flex; flex-direction: column; gap: var(--hg-space-4); }
.hg-field { display: flex; flex-direction: column; gap: var(--hg-space-2); }
.hg-field label {
  font-size: var(--hg-text-sm);
  font-weight: 600;
  color: var(--hg-anthracite);
}
.hg-field input, .hg-field textarea, .hg-field select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--hg-grey-200);
  border-radius: var(--hg-radius-md);
  background: var(--hg-white);
  font-size: var(--hg-text-base);
  transition: border-color var(--hg-transition-fast);
  font-family: inherit;
}
.hg-field input:focus, .hg-field textarea:focus, .hg-field select:focus {
  outline: none;
  border-color: var(--hg-bleu-leman);
  box-shadow: 0 0 0 3px rgba(27, 79, 114, .1);
}
.hg-field textarea { min-height: 140px; resize: vertical; }

/* =========================================================================
   Utilitaires
   ========================================================================= */

.hg-text-center { text-align: center; }
.hg-mt-0 { margin-top: 0; }
.hg-mb-0 { margin-bottom: 0; }
.hg-mt-auto { margin-top: auto; }
.hg-max-prose { max-width: 68ch; }
.hg-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Smoobu widget container (iframe-friendly)
   ========================================================================= */

.hg-smoobu-widget {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-radius: var(--hg-radius-md);
  overflow: hidden;
  background: var(--hg-cream);
}

/* =========================================================================
   Typographie de contenu — pages & biens (lisibilité paragraphes)
   ========================================================================= */

/* Headings : équilibre des lignes pour éviter les veuves/orphelines */
h1, h2, h3, .hg-h1, .hg-h2, .hg-h3 { text-wrap: balance; }

/* Paragraphes du contenu WordPress (the_content) — limite ~70ch pour confort de lecture */
.hg-bien-layout > div > section p,
.hg-bien-layout > div > section ul,
.hg-bien-layout > div > section ol {
  max-width: 70ch;
  line-height: var(--hg-lh-relaxed);
  text-wrap: pretty;
}
.hg-bien-layout > div > section h2 {
  margin-top: var(--hg-space-8);
  margin-bottom: var(--hg-space-4);
}
.hg-bien-layout > div > section h2:first-child {
  margin-top: 0;
}
.hg-bien-layout > div > section ul,
.hg-bien-layout > div > section ol {
  padding-left: 1.25rem;
}
.hg-bien-layout > div > section li + li {
  margin-top: var(--hg-space-2);
}
.hg-bien-layout > div > section p + p {
  margin-top: var(--hg-space-4);
}

/* Pages génériques (.hg-max-prose) : assurer line-height confortable + équilibre */
.hg-max-prose p,
.hg-max-prose ul,
.hg-max-prose ol {
  text-wrap: pretty;
}
.hg-max-prose p + p {
  margin-top: var(--hg-space-4);
}

/* =========================================================================
   Motion reduced
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
