/* Horizon Bleu — corrections de finition (2.0.0), en aperçu tant que HB_FIXES_PUBLIC est false */

/* Sélecteur de langue flottant (mobile) : pastille lisible au lieu d'un texte posé sur le contenu */
@media (max-width: 1024px) {
  /* La pastille est portée par le lien : le conteneur ne doit avoir ni filtre ni fond,
     sinon la fenêtre des langues (en position fixe) reste coincée dans la pastille. */
  .gt_switcher_wrapper { left: 12px !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
  .gt_switcher_wrapper > a.gt_switcher-popup {
    display: inline-flex !important; align-items: center; gap: 6px;
    padding: 6px 12px 6px 8px; border-radius: 999px;
    background: #FBF8F2; border: 1px solid #E3D6BE; box-shadow: 0 8px 22px rgba(20,50,92,.18);
    color: #14325C !important; font-size: 13px !important; font-weight: 600; text-decoration: none !important;
  }
  .gt_switcher_wrapper > a.gt_switcher-popup img { border-radius: 3px; }
  /* le bas du pied de page n'est jamais caché par la pastille */
  #colophon .site-footer-wrap, .site-footer .site-bottom-footer-wrap { padding-bottom: 64px; }
  /* masqué quand le menu mobile est ouvert */
  body.showing-popup-drawer-from-right .gt_switcher_wrapper,
  body.showing-popup-drawer-from-left .gt_switcher_wrapper { opacity: 0; pointer-events: none; }
}
/* jamais par-dessus la visionneuse photo */
html.hb-lb-lock .gt_switcher_wrapper { display: none !important; }

/* Lien discret vers la réalisation (accueil et pages propriétaires) */
.hb-proof-link { margin-top: 18px !important; font-size: .98rem !important; }
.hb-proof-link a { display: inline-flex; align-items: center; gap: 8px; color: #14325C !important; font-weight: 700; text-decoration: none !important; border-bottom: 1px solid #C9A24D; padding-bottom: 2px; transition: color .25s ease, gap .3s ease; }
.hb-proof-link a:hover, .hb-proof-link a:focus-visible { color: #A14832 !important; gap: 12px; }
.hb-proof-link a:focus-visible { outline: 2px solid #C9A24D; outline-offset: 3px; }
.hb-proof-card {
  display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px !important; border-radius: 20px;
  background: #FBF8F2; border: 1px solid #EADFCB;
}
.hb-proof-card > * { margin: 0 !important; }
.hb-proof-card .hb-proof-k { font-size: .68rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #A14832 !important; }
.hb-proof-card .hb-proof-t { flex: 1 1 260px; color: #14325C !important; font-size: 1rem !important; }

/* Accueil : les titres de section s'alignent sur le texte (ils étaient décalés de 180 px sur grand écran) */
.hb-home .hb-section:not(.hb-section--cta) :is(.is-layout-constrained, .wp-block-group__inner-container) > h2,
.hb-home .hb-section.is-layout-constrained:not(.hb-section--cta) > h2 {
  margin-left: max(0px, calc((100% - 1180px) / 2)) !important;
  margin-right: auto !important;
}

/* Accessibilité — contrastes (WCAG AA) sans changer l'identité */
/* petits titres dorés sur fond clair : or plus profond (4,9:1 au lieu de 2,3:1) */
p.has-text-color[style*="color:#C9A24D"]:not(:where(.wp-block-cover, .hb-section--cta, [style*="#14325C"], [style*="#0E2442"]) *) { color: #8A6A1E !important; }
/* bouton du formulaire de contact : terracotta (6,6:1) au lieu de bleu clair (3,5:1) */
.kb-forms-submit.button, .kb-forms-submit { background: #A14832 !important; border-color: #A14832 !important; color: #fff !important; }
.kb-forms-submit:hover, .kb-forms-submit:focus-visible { background: #8C3B28 !important; border-color: #8C3B28 !important; }
/* page T3 : libellés des chiffres et indication de la galerie un peu plus foncés */
.hb-stat-grid .hb-fact-label, .hb-keyfacts .hb-fact-label { color: #6F6249 !important; }
.hb-film-hint { color: #6F6249 !important; }

/* Accueil — « Une conciergerie à vos côtés » : 6 cartes en 2 rangées de 3 (au lieu de 4 + 2) */
@media (min-width: 1025px) {
  .hb-home .hb-section--services .wp-block-group.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Fenêtre des langues : toujours plein écran, centrée, fermable (fond cliquable + bouton) */
.gt_switcher_wrapper .gt_black_overlay { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; z-index: 1000000 !important; }
.gt_switcher_wrapper .gt_white_content { position: fixed !important; z-index: 1000001 !important; }
@media (max-width: 767px) {
  .gt_switcher_wrapper .gt_white_content {
    left: 16px !important; right: 16px !important; top: 72px !important; bottom: 24px !important;
    width: auto !important; height: auto !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; transform: none !important; border-radius: 16px; overflow: auto;
  }
}
.hb-gt-close {
  position: sticky; top: 0; float: right; z-index: 2; margin: 8px 8px 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #E3D6BE !important;
  background: #FBF8F2 !important; color: #14325C !important; font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
}

/* APERÇU administrateur (body.logged-in) — tout le site :
   barre des destinations mobile sur 2 lignes + sélecteur de langue en pastille ronde.
   À la mise en ligne, retirer « body.logged-in » de ces sélecteurs. */
@media (max-width: 1024px) {
  body.hb-zb-pinned .site-mobile-header-wrap { margin-bottom: 70px; }
  body .hb-zb-mstrip { height: auto; min-height: 48px; overflow: visible; }
  body .hb-zb-mstrip ul { flex-wrap: wrap; min-width: 0; row-gap: 0; padding: 4px 14px 6px; }
  body .hb-zb-mstrip li:first-child { flex: 0 0 100%; justify-content: center; }
  body .hb-zb-mstrip li:nth-child(2)::before { display: none; }
  body .hb-zb-mstrip a { min-height: 30px; }
}
@media (max-width: 767px) {
  body .gt_switcher_wrapper > a.gt_switcher-popup {
    width: 38px; height: 38px; padding: 0 !important; gap: 0; justify-content: center; border-radius: 50%;
    background: rgba(251,248,242,.92); box-shadow: 0 6px 16px rgba(20,50,92,.16);
  }
  body .gt_switcher_wrapper > a.gt_switcher-popup span { display: none !important; }
  body .gt_switcher_wrapper > a.gt_switcher-popup img { width: 20px !important; height: auto !important; margin: 0 !important; border-radius: 3px; }
}

/* 3.9.7 — Fenêtre des langues (6 langues) : liste lisible, ordre logique, croix qui ne chevauche rien */
.gt_switcher_wrapper .gt_white_content, .gt_white_content { width: 300px !important; max-width: calc(100vw - 32px) !important; height: auto !important; padding: 18px 18px 12px !important; border-radius: 18px !important; box-shadow: 0 30px 70px -30px rgba(14,38,71,.55) !important; }
.gt_white_content::before { content: "Choisir une langue"; display: block; padding: 10px 52px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #B08A3A; border-bottom: 1px solid #EFE6D6; }
.gt_white_content .hb-gt-close { position: absolute !important; top: 12px; right: 12px; float: none !important; margin: 0 !important; width: 36px; height: 36px; }
.gt_white_content .gt_languages { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; }
.gt_white_content .gt_languages a.glink { display: flex !important; align-items: center; gap: 12px; width: 100% !important; padding: 12px 6px !important; border-bottom: 1px solid #F3ECDF !important; font-size: 1rem !important; color: #14325C !important; white-space: nowrap; }
.gt_white_content .gt_languages a[data-gt-lang="nl"] { border-bottom: 0 !important; }
.gt_white_content .gt_languages a.glink:hover { background: #FBF8F2 !important; }
.gt_white_content .gt_languages a.glink.gt-current-lang { font-weight: 700; }
.gt_white_content .gt_languages a[data-gt-lang="fr"] { order: 1; }
.gt_white_content .gt_languages a[data-gt-lang="en"] { order: 2; }
.gt_white_content .gt_languages a[data-gt-lang="de"] { order: 3; }
.gt_white_content .gt_languages a[data-gt-lang="it"] { order: 4; }
.gt_white_content .gt_languages a[data-gt-lang="es"] { order: 5; }
.gt_white_content .gt_languages a[data-gt-lang="nl"] { order: 6; }
.gt_switcher_wrapper .gt_white_content, .gt_white_content { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; margin: 0 !important; transform: translate(-50%, -50%) !important; overflow: visible !important; }
