/* ============================================================
   Immo-Hub — Chrome (TopBar, Header, Footer)
   ============================================================ */

/* ── TopBar Geolink réseau (v0.46.0 — pattern marque mère) ──────────────────
   3 zones : brand Geolink + breadcrumb produit / nav cross-hub / utilities
   ────────────────────────────────────────────────────────────────────────── */

.ih-topbar {
  background: var(--ih-ink);
  color: rgba(255, 255, 255, 0.75);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 var(--ih-side-pad);
  gap: 18px;
  font-size: 12.5px;
  position: relative;
  z-index: var(--ih-z-nav);
}

/* ── Zone 1 : Brand Geolink (marque mère) + produit actif ── */
/* v0.50.0 — brand devient un <button> qui toggle le mega-panel Réseau */
.ih-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px 6px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--ih-transition);
}
.ih-topbar__brand:hover {
  opacity: 0.85;
}
.ih-topbar__brand--toggle {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ih-topbar__brand--toggle:focus-visible {
  outline: 2px solid var(--ih-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.ih-topbar__brand-chevron {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 2px;
  transition: transform 200ms ease, color 200ms ease;
}
.ih-topbar__brand--toggle[aria-expanded="true"] .ih-topbar__brand-chevron {
  transform: rotate(180deg);
  color: var(--ih-cyan);
}

.ih-topbar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-cyan);
}

.ih-topbar__brand-name {
  font-family: var(--ih-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
}

.ih-topbar__brand-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  margin: 0 1px;
}

.ih-topbar__brand-product {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ih-cyan);
  letter-spacing: 0.01em;
}

/* ── Zone 2 : Nav cross-hub des autres produits Geolink ── */
.ih-topbar__network {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.ih-topbar__hub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  transition: var(--ih-transition);
  position: relative;
}
.ih-topbar__hub-link::before {
  content: "·";
  position: absolute;
  left: -2px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}
.ih-topbar__hub-link:first-child::before {
  content: none;
}
.ih-topbar__hub-link:hover {
  color: var(--ih-cyan);
  background: rgba(0, 192, 255, 0.08);
}

.ih-topbar__hub-link--soon {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}
.ih-topbar__hub-link--soon:hover {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.ih-topbar__hub-soon {
  font-size: 10px;
  color: var(--ih-cyan);
  margin-left: 2px;
  font-weight: 600;
}

/* ── Spacer entre nav et utilities ── */
.ih-topbar__spacer {
  flex: 1;
}

/* ── Zone 3 : Utilities (contacts, lang, login) ── */
.ih-topbar__utilities {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ih-topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  transition: var(--ih-transition);
}
.ih-topbar__contact:hover {
  color: #fff;
}

.ih-topbar__sep {
  background: rgba(255, 255, 255, 0.14);
  width: 1px;
  height: 18px;
  margin: 0 4px;
}

.ih-topbar__login {
  color: var(--ih-cyan);
  font-weight: 500;
  text-decoration: none;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--ih-transition);
}
.ih-topbar__login:hover {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ih-topbar__contact-text {
    display: none;
  }
}
@media (max-width: 900px) {
  .ih-topbar__network {
    display: none;
  }
  /* v0.50.2 — touch target conforme (44px) sur mobile */
  .ih-topbar__brand--toggle {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 44px;
  }
  .ih-topbar__brand-chevron svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 640px) {
  .ih-topbar {
    gap: 10px;
    padding: 6px var(--ih-side-pad);
  }
  .ih-topbar__brand {
    padding: 4px 10px 4px 0;
  }
  .ih-topbar__brand-name {
    font-size: 11px;
  }
  .ih-topbar__brand-product {
    font-size: 11.5px;
  }
  .ih-topbar__contact {
    display: none;
  }
}

/* Retour Nicolas (mobile) : masquer entièrement la topbar réseau « suite Geolink »
   en mobile — elle portait à confusion (réflexe de cliquer pour revenir à l'accueil).
   Le réseau reste accessible via le footer. */
@media (max-width: 768px) {
  .ih-topbar { display: none; }
  .ih-network-panel { top: 0; }
}

/* ── Mega-panel "Réseau" Geolink (v0.50.0 — M1 v3) ──────────
   Déployé au clic sur le brand GEOLINK dans la topbar.
   Liste les sites du réseau catégorisés (Métier / Corporate / IA).
   ─────────────────────────────────────────────────────────── */

.ih-network-panel {
  position: fixed;
  top: 40px; /* = .ih-topbar min-height (fix v0.50.1) */
  left: 0;
  right: 0;
  z-index: var(--ih-z-modal); /* v0.50.7 — au-dessus du mega-menu (200) et du header (100). Leaflet est confiné via isolation: isolate sur .ih-listing-map__pane */
  background: var(--ih-ink);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 40px); /* v0.50.2 — scroll si déborde */
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms cubic-bezier(.2,.7,.3,1);
}
.ih-network-panel[hidden] {
  display: none !important;
}
.ih-network-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ih-network-panel__inner {
  max-width: var(--ih-max-w);          /* aligné header/contenu/footer (1400px) */
  margin: 0 auto;
  padding: 28px var(--ih-side-pad) 18px;
  position: relative;
  z-index: 2;
}

.ih-network-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ih-network-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--ih-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.ih-network-panel__title-mark {
  display: inline-flex;
  color: var(--ih-cyan);
}
.ih-network-panel__close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ih-transition);
}
.ih-network-panel__close:hover,
.ih-network-panel__close:focus-visible {
  color: #fff;
  border-color: var(--ih-cyan);
  background: rgba(0, 192, 255, 0.08);
  outline: none;
}

/* Grid 3 colonnes (Métier / Corporate / IA) */
.ih-network-panel__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ih-network-panel__col-title {
  margin: 0 0 14px;
  font-family: var(--ih-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ih-network-panel__col-tagline {
  font-family: var(--ih-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.4);
}

.ih-network-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ih-network-panel__col--metier .ih-network-panel__list {
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.ih-network-panel__item {
  margin: 0;
}

.ih-network-panel__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: var(--ih-transition);
  flex-wrap: wrap;
}
.ih-network-panel__link:hover,
.ih-network-panel__link:focus-visible {
  background: rgba(0, 192, 255, 0.08);
  border-color: rgba(0, 192, 255, 0.3);
  color: #fff;
  outline: none;
}
.ih-network-panel__link .ih-network-panel__chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: var(--ih-transition);
}
.ih-network-panel__link:hover .ih-network-panel__chevron,
.ih-network-panel__link:focus-visible .ih-network-panel__chevron {
  color: var(--ih-cyan);
  transform: translate(2px, -2px);
}

.ih-network-panel__site-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.ih-network-panel__site-tagline {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  flex-basis: 100%;
  line-height: 1.2;
  margin-top: -2px;
}

/* Current hub (vous êtes ici) */
.ih-network-panel__item.is-current .ih-network-panel__link {
  background: rgba(0, 192, 255, 0.05);
  border-color: rgba(0, 192, 255, 0.4);
  cursor: default;
}
.ih-network-panel__item.is-current .ih-network-panel__site-name {
  color: var(--ih-cyan);
}

/* Soon (pas encore live) */
.ih-network-panel__item.is-soon .ih-network-panel__link {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}
.ih-network-panel__item.is-soon .ih-network-panel__site-name {
  color: rgba(255, 255, 255, 0.45);
}

/* Badges */
.ih-network-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--ih-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
}
.ih-network-panel__badge--here {
  background: rgba(0, 192, 255, 0.12);
  color: var(--ih-cyan);
  border: 1px solid rgba(0, 192, 255, 0.3);
}
.ih-network-panel__badge--soon {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Featured (Iris) */
.ih-network-panel__col--ia .ih-network-panel__item.is-featured .ih-network-panel__link {
  background: linear-gradient(135deg, rgba(0, 192, 255, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(0, 192, 255, 0.35);
  padding: 14px 14px;
}
.ih-network-panel__col--ia .ih-network-panel__item.is-featured .ih-network-panel__link:hover {
  background: linear-gradient(135deg, rgba(0, 192, 255, 0.18) 0%, rgba(99, 102, 241, 0.14) 100%);
}

/* Footer */
.ih-network-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 8px;
}
.ih-network-panel__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ih-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--ih-transition);
}
.ih-network-panel__footer-link:hover {
  color: #fff;
}
.ih-network-panel__footer-link:hover .ih-network-panel__footer-arrow {
  transform: translateX(3px);
}
.ih-network-panel__footer-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.ih-network-panel__footer-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* Backdrop (clic outside = close) */
.ih-network-panel__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1;
}
.ih-network-panel.is-open .ih-network-panel__backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .ih-network-panel__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ih-network-panel__col--metier .ih-network-panel__list {
    grid-template-columns: 1fr;
  }
  /* v0.50.2 — touch targets conformes sur mobile */
  .ih-network-panel__close {
    width: 44px;
    height: 44px;
  }
  .ih-network-panel__link {
    padding: 14px 14px;
    min-height: 44px;
  }
  .ih-network-panel__col--ia .ih-network-panel__item.is-featured .ih-network-panel__link {
    padding: 16px 14px;
  }
}
@media (max-width: 640px) {
  .ih-network-panel__inner {
    padding: 20px 16px 16px;
  }
  .ih-network-panel__header {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .ih-network-panel__col-title {
    font-size: 10.5px;
  }
  .ih-network-panel__site-name {
    font-size: 14px;
  }
  .ih-network-panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Header principal ────────────────────────────────────── */

.ih-header {
  background: var(--ih-surface);
  border-bottom: 1px solid var(--ih-line);
  position: sticky;
  top: 0;
  z-index: var(--ih-z-nav);
  transition: box-shadow 0.2s;
}
.ih-header.is-scrolled {
  box-shadow: var(--ih-shadow);
}

.ih-header__inner {
  display: flex;
  align-items: center;
  padding: 18px var(--ih-side-pad);
  gap: 28px;
  max-width: var(--ih-max-w);
  margin: 0 auto;
}

/* ── Logo ── */
.ih-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--ih-font-sans);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--ih-ink);
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.ih-logo__hub {
  background: var(--ih-cyan);
  color: var(--ih-ink);
  font-weight: 800;
  padding: 3px 8px 2px;
  border-radius: 4px;
  margin-left: 4px;
  font-size: 22px;
  line-height: 1;
}
.ih-logo--inverse {
  color: #fff;
}
.ih-logo--inverse .ih-logo__hub {
  background: var(--ih-cyan);
  color: var(--ih-ink);
}

/* ── Navigation principale ── */
.ih-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
}

.ih-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ih-ink-soft);
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  text-decoration: none;
  transition: var(--ih-transition);
  border: none;
  background: none;
  font-family: var(--ih-font-sans);
  white-space: nowrap; /* évite le wrap sur 2 lignes avec les nouveaux libellés v0.40 */
}
.ih-nav__item:hover {
  color: var(--ih-ink);
  background: var(--ih-bg);
}
.ih-nav__item.is-active {
  color: var(--ih-ink);
}
.ih-nav__item.is-active::after {
  content: "";
  position: absolute;
  bottom: -18px; /* colle au bord bas du header */
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ih-cyan);
  border-radius: 1px;
}

.ih-nav__chevron {
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ih-nav__item:hover .ih-nav__chevron,
.ih-nav__item.is-open .ih-nav__chevron {
  opacity: 1;
  transform: rotate(180deg);
}

/* ── CTA header ── */
.ih-header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Fil d'Ariane ── */
.ih-crumbs {
  padding: 14px var(--ih-side-pad);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ih-muted);
  border-bottom: 1px solid var(--ih-line-2);
  background: #fafbfc;
}
.ih-crumbs a {
  color: var(--ih-muted);
  text-decoration: none;
}
.ih-crumbs a:hover {
  color: var(--ih-ink);
}
.ih-crumbs__current {
  color: var(--ih-ink);
  font-weight: 500;
}
.ih-crumbs__sep {
  opacity: 0.4;
}

/* ── Footer ──────────────────────────────────────────────── */

.ih-footer-wrap {
  background: var(--ih-cream);
  padding: 56px var(--ih-side-pad) 32px;
}

.ih-footer {
  background: var(--ih-ink);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 56px 48px 32px;
  max-width: var(--ih-max-w);
  margin: 0 auto;
}

.ih-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.ih-footer__brand-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 280px;
}
.ih-footer__brand-cta {
  margin-top: 20px;
}

/* Liste contact dans le footer (tel + email cliquables) */
.ih-footer__contact {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ih-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-family: var(--ih-font-mono);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ih-footer__contact a:hover { color: var(--ih-cyan); }
.ih-footer__contact a svg   { color: var(--ih-cyan); flex-shrink: 0; }

/* v0.66.337 — réseaux sociaux (footer) */
.ih-footer__socials {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.ih-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ih-footer__socials a:hover {
  color: #fff;
  background: var(--ih-cyan-600);
  transform: translateY(-2px);
}

/* Lien téléphone dans le header (à côté du CTA cahier des charges) */
.ih-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ih-ink-soft);
  text-decoration: none;
  font-family: var(--ih-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.ih-header__phone:hover {
  background: var(--ih-cyan-tint);
  color: var(--ih-cyan-700);
}
.ih-header__phone svg { color: var(--ih-cyan-700); flex-shrink: 0; }
@media (max-width: 1100px) {
  /* Sur écran moyen : on cache le numéro mais garde l'icône cliquable */
  .ih-header__phone-number { display: none; }
  .ih-header__phone { padding: 6px 8px; }
}

.ih-footer__col-title {
  font-family: var(--ih-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ih-cyan);
  margin-bottom: 16px;
  display: block;
}

.ih-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ih-footer__links a,
.ih-footer__links span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-footer__links a:hover {
  color: #fff;
}

.ih-footer__sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.ih-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.ih-footer__legal {
  display: flex;
  gap: 20px;
}
.ih-footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* v0.48.0 — Lien cross-site discret invest-hub EN */
.ih-footer__cross {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
}
.ih-footer__cross a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-footer__cross a:hover {
  color: var(--ih-cyan);
}

@media (max-width: 1024px) {
  .ih-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .ih-footer {
    padding: 40px 32px 24px;
  }
}
@media (max-width: 640px) {
  /* v0.2.18 — minmax(0,1fr) : colonnes peuvent rétrécir (évitait un débordement de
     ~36px < 400px car les colonnes gardaient leur largeur min-content) + gap réduit. */
  .ih-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 20px;
  }
  /* A8 (retour Nicolas) — colonne marque en pleine largeur + CTA « cahier des charges »
     full-width, pour éviter le tassement/superposition du bouton et du n° de téléphone. */
  .ih-footer__brand { grid-column: 1 / -1; }
  .ih-footer__brand-cta .ih-btn,
  .ih-footer__brand-cta { display: flex; width: 100%; justify-content: center; text-align: center; }
  /* Retour user — le bas de footer ne doit pas rester en colonne : on le laisse
     circuler en LIGNES (wrap) et on fait wrapper aussi les liens légaux. */
  .ih-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
  }
  .ih-footer__legal { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
}
/* v0.2.18 — petits écrans (≤430px) : footer en 1 colonne (2 colonnes trop serrées). */
@media (max-width: 430px) {
  .ih-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
/* v0.2.26 — `body` héritait d'un `overflow-x: hidden` (Elementor actif) qui CASSE
   position:sticky des descendants (la sidebar de fiche ne suivait plus le scroll).
   On force `overflow-x: visible` (spécificité html body pour battre Elementor sans
   !important). Les débordements horizontaux réels sont corrigés à la source (audit
   responsive). Si un débordement réapparaît → le corriger sur le composant fautif. */
html body { overflow-x: visible; }

/* ============================================================
   Mega-menu — refonte v0.10.0 fidèle au proto React
   (Refonte - Immo-hub/components/mega-menu.jsx, MegaHeader)
   ============================================================
   Logique reproduite :
   - 1 seul état JS : openKey (clé du panel ouvert, ou null)
   - Mouseenter sur un nav item → openKey = key
   - Mouseleave sur LE HEADER ENTIER → openKey = null
   - Le panel actif est rendu via .is-active (display: block).
   - Aucune transition : swap instant, comme React re-render.
   ============================================================ */

/* Overlay (fond gris derrière le panel) — sibling du header en DOM, z-index < nav
   pour ne PAS couvrir le header (sinon bloque hover/clic sur les nav items). */
.ih-mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.35);
  z-index: var(--ih-z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ih-mega-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Container des panels — caché par défaut, visible quand .is-open */
.ih-mega-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--ih-z-mega);
  display: none;
  justify-content: center;
}
.ih-mega-container.is-open {
  display: flex;
}

/* Panel individuel — caché par défaut, .is-active = visible */
.ih-mega-panel {
  display: none;
  background: var(--ih-surface);
  border: 1px solid var(--ih-line);
  border-top: none;
  border-radius: 0 0 var(--ih-radius-lg) var(--ih-radius-lg);
  box-shadow:
    0 24px 60px -20px rgba(10, 13, 18, 0.28),
    0 8px 20px -8px rgba(10, 13, 18, 0.12);
  width: 100%;
  max-width: var(--ih-max-w);
  margin: 0 var(--ih-side-pad);
}
.ih-mega-panel.is-active {
  display: block;
}

.ih-mega-panel__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 280px;
}

/* ── Colonnes ── */
/* --cols-count injecté inline depuis mega-panels.php (= nombre réel de cols).
   Permet aux panels 1/2/3 cols de rendre côte à côte sans wrap. */
.ih-mega-panel__cols {
  display: grid;
  grid-template-columns: repeat(var(--cols-count, 2), minmax(0, 1fr));
  gap: 0 32px;
  padding: 28px 32px;
}

.ih-mega-panel__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ih-mega-panel__col-title {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ih-muted-2);
  margin-bottom: 8px;
  display: block;
}

/* ── Liste de liens ── */
.ih-mega-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ih-mega-panel__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--ih-radius-sm);
  color: var(--ih-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: var(--ih-transition);
}
.ih-mega-panel__link:hover {
  background: var(--ih-bg);
  color: var(--ih-ink);
}
.ih-mega-panel__link.is-strong {
  font-weight: 600;
  color: var(--ih-ink);
}
.ih-mega-panel__link.is-strong:hover {
  background: var(--ih-cyan-tint);
  color: var(--ih-cyan-700);
}

.ih-mega-panel__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--ih-radius-sm);
  background: var(--ih-bg);
  color: var(--ih-muted);
  flex-shrink: 0;
  transition: var(--ih-transition);
}
.ih-mega-panel__link:hover .ih-mega-panel__link-icon {
  background: var(--ih-surface);
  color: var(--ih-ink);
}
.ih-mega-panel__link.is-strong .ih-mega-panel__link-icon {
  background: var(--ih-cyan-tint);
  color: var(--ih-cyan-700);
}

.ih-mega-panel__link-text {
  flex: 1;
}

.ih-mega-panel__link-tag {
  flex-shrink: 0;
}

/* v0.66.171 — compteur d'annonces en badge discret à droite (≠ n° de dept « (75) »
   qui reste, lui, dans le libellé). __link-text est flex:1 → le badge se cale à droite. */
.ih-mega-panel__link-count {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ih-muted);
}
.ih-mega-panel__link:hover .ih-mega-panel__link-count {
  color: var(--ih-cyan-700);
}

/* ── Feature (colonne de droite) ── */
.ih-mega-panel__feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 32px 28px;
  border-left: 1px solid var(--ih-line);
  border-radius: 0 0 var(--ih-radius-lg) 0;
}

.ih-mega-feature__eyebrow {
  font-family: var(--ih-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.ih-mega-feature__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: block;
}

.ih-mega-feature__desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.75;
  margin: 0;
}

.ih-mega-feature__cta {
  align-self: flex-start;
  margin-top: 4px;
}

/* v0.2.52 — Feature « cta » (panneau LinkedIn, fond bleu) : bouton BLANC plein
   pour ressortir sur le dégradé LinkedIn (texte bleu LinkedIn). */
.ih-mega-feature--cta .ih-mega-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0a66c2;
  border: 1px solid #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--ih-transition);
}
.ih-mega-feature--cta .ih-mega-feature__cta:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: #08457f;
}

/* ── Variants feature ── */
.ih-mega-feature--map .ih-mega-feature__eyebrow {
  opacity: 0.6;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ih-mega-feature--map .ih-mega-feature__title {
  color: #fff;
  font-size: 18px;
}
.ih-mega-feature--map .ih-mega-feature__desc {
  display: none; /* place gagnée pour la carte */
}
.ih-mega-feature--map .ih-mega-feature__cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.ih-mega-feature--map .ih-mega-feature__cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
/* v0.2.29 — 2ᵉ CTA « ghost » (lien secondaire sous « Ouvrir la carte », ex. annuaire). */
.ih-mega-feature--map .ih-mega-feature__cta--ghost {
  border-color: transparent;
  opacity: 0.82;
  margin-top: 2px;
}
.ih-mega-feature--map .ih-mega-feature__cta--ghost:hover {
  border-color: transparent;
  background: transparent;
  opacity: 1;
  text-decoration: underline;
}
/* v0.45.8 — fond harmonisé avec les autres panels (var(--ih-ink) hérité de
   l'inline style PHP). Le #0F3747 forcé en v0.44.6 créait une divergence
   visuelle vs les panels Achat/Localisation/Ressources. */
.ih-mega-feature--map {
  padding: 20px 16px 16px;
  gap: 6px;
}

/* ── Carte France SVG interactive (v0.44.0 — v0.44.8 scope mega-feature) ──
   Esthétique fond sombre (--ih-ink) : régions stroke fin clair, fill très
   léger ; hover cyan vivant ; tooltip nom au survol.
   Note : `.ih-france-map` est aussi utilisé dans home.css pour le hero de la
   home — d'où le scope `.ih-mega-feature--map` pour éviter le conflit. */
.ih-mega-feature--map .ih-france-map {
  position: relative;
  width: 100%;
  margin-top: 4px;
  margin-bottom: auto; /* pousse le CTA en bas du feature */
  background: transparent !important; /* écrase home.css */
  padding: 0 !important;
  border-radius: 0 !important;
}
.ih-france-map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px; /* élargi pour accommoder les DROM v0.44.10 */
  filter: drop-shadow(0 4px 20px rgba(0, 200, 224, 0.12));
}
.ih-france-map__regions a {
  cursor: pointer;
  transition: filter 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ih-france-map__region path {
  /* v0.44.7 — fill transparent : seulement les tracés visibles */
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

/* ── DROM-COM en cartouches (v0.44.10) ───────────────────────────── */
.ih-france-map__drom-box {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.ih-france-map__region--drom:hover .ih-france-map__drom-box,
.ih-france-map__region--drom:focus-visible .ih-france-map__drom-box {
  fill: rgba(0, 200, 224, 0.08);
  stroke: rgba(0, 200, 224, 0.6);
  stroke-dasharray: 0;
}
.ih-france-map__drom-label {
  font-family: var(--ih-font-mono, monospace);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: rgba(255, 255, 255, 0.55);
  text-anchor: middle;
  text-transform: uppercase;
  transition: fill 0.2s ease;
  pointer-events: none;
}
.ih-france-map__region--drom:hover .ih-france-map__drom-label {
  fill: var(--ih-cyan);
}
.ih-france-map__region:hover path,
.ih-france-map__region:focus-visible path {
  fill: rgba(0, 200, 224, 0.32);
  stroke: var(--ih-cyan);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 8px rgba(0, 200, 224, 0.6));
}
.ih-france-map__region:active path {
  fill: rgba(0, 200, 224, 0.5);
}

/* Tooltip nom de région au hover */
.ih-france-map__tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ih-cyan);
  color: var(--ih-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, calc(-100% - 6px));
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ih-france-map__tooltip[data-visible="true"] {
  opacity: 1;
}

.ih-mega-feature--editorial .ih-mega-feature__eyebrow {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.6);
}
.ih-mega-feature--editorial .ih-mega-feature__title {
  color: #fff;
}
.ih-mega-feature--editorial .ih-mega-feature__desc {
  color: rgba(255, 255, 255, 0.65);
}
.ih-mega-feature--editorial .ih-mega-feature__cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.ih-mega-feature--editorial .ih-mega-feature__cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ih-mega-panel__inner {
    grid-template-columns: 1fr;
  }
  .ih-mega-panel__feature {
    border-left: none;
    border-top: 1px solid var(--ih-line);
    border-radius: 0 0 var(--ih-radius-lg) var(--ih-radius-lg);
    padding: 24px 28px;
  }
  .ih-mega-panel__cols {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .ih-mega-panel__cols {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .ih-mega-panel__feature {
    padding: 20px;
  }
  .ih-mega-feature__title {
    font-size: 18px;
  }
}

/* ============================================================
   Mobile burger menu — drawer + overlay
   ============================================================ */

/* Burger button — caché par défaut (desktop) */
.ih-header__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ih-ink);
  margin-left: auto;
  flex-shrink: 0;
  transition: var(--ih-transition);
}
.ih-header__burger:hover {
  background: var(--ih-bg);
}

/* Drawer mobile — caché par défaut */
.ih-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--ih-surface);
  z-index: calc(var(--ih-z-modal) + 10);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(10, 13, 18, 0.15);
  overflow-y: auto;
}
.ih-mobile-nav[hidden] {
  display: none;
}
.ih-mobile-nav.is-open {
  transform: translateX(0);
}

.ih-mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: var(--ih-z-modal);
  transition: opacity 0.2s ease;
}
.ih-mobile-nav__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ih-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ih-line);
  flex-shrink: 0;
}
.ih-mobile-nav__title {
  font-size: 12px;
  font-family: var(--ih-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ih-muted);
  font-weight: 600;
}
.ih-mobile-nav__close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ih-ink);
  transition: var(--ih-transition);
}
.ih-mobile-nav__close:hover {
  background: var(--ih-bg);
}

.ih-mobile-nav__body {
  padding: 8px 0;
  flex: 1;
}

.ih-mobile-nav__section {
  border-bottom: 1px solid var(--ih-line-2);
}
.ih-mobile-nav__section[open] {
  background: var(--ih-bg);
}
.ih-mobile-nav__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ih-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ih-mobile-nav__section-title::-webkit-details-marker { display: none; }
/* A5 — « Ressources » en lien direct (mobile) : même look qu'un titre de section. */
.ih-mobile-nav__directlink {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ih-ink);
  text-decoration: none;
}
.ih-mobile-nav__chevron {
  transition: transform 0.2s ease;
  color: var(--ih-muted);
  flex-shrink: 0;
}
.ih-mobile-nav__section[open] .ih-mobile-nav__chevron {
  transform: rotate(180deg);
}
.ih-mobile-nav__list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}
.ih-mobile-nav__link {
  display: block;
  padding: 9px 32px;
  font-size: 14px;
  color: var(--ih-ink-soft);
  text-decoration: none;
  transition: var(--ih-transition);
}
.ih-mobile-nav__link:hover,
.ih-mobile-nav__link:active {
  background: var(--ih-line-2);
  color: var(--ih-ink);
}
.ih-mobile-nav__link.is-strong {
  color: var(--ih-cyan-700);
  font-weight: 500;
}
.ih-mobile-nav__cta {
  padding: 18px 20px;
  border-top: 1px solid var(--ih-line);
}

/* ── Bascule responsive : à partir de 1024px on cache desktop, on montre burger ── */
@media (max-width: 1024px) {
  .ih-nav {
    display: none;
  }
  .ih-header__burger {
    display: inline-flex;
  }
  .ih-header__cta {
    display: none; /* Les CTAs sont dans le drawer mobile */
  }
  .ih-mega-overlay,
  .ih-mega-container {
    display: none !important;
  }
}

/* Empêche le scroll du body quand le drawer est ouvert */
body.ih-no-scroll {
  overflow: hidden;
}

/* ── Bandeau sticky contact (mobile uniquement) ─────────────────────── */
.ih-sticky-contact {
  display: none;
}
@media (max-width: 768px) {
  .ih-sticky-contact {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--ih-z-nav);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--ih-line);
    padding: 8px 12px;
    gap: 8px;
    box-shadow: 0 -8px 24px -10px rgba(10, 13, 18, 0.18);
  }
  .ih-sticky-contact__btn {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 6px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 11px;
    font-family: var(--ih-font-mono);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .ih-sticky-contact__btn--cyan {
    background: var(--ih-cyan);
    color: var(--ih-ink);
  }
  .ih-sticky-contact__btn--cyan:hover {
    background: var(--ih-cyan-600);
  }
  .ih-sticky-contact__btn--ghost {
    background: transparent;
    color: var(--ih-ink);
    border: 1px solid var(--ih-line);
  }
  .ih-sticky-contact__btn--ghost:hover {
    background: var(--ih-bg);
  }
  /* Décale le bottom du body pour que le bandeau ne masque pas la fin du contenu */
  body { padding-bottom: 70px; }
  /* Sauf quand le drawer mobile est ouvert (le drawer prend tout l'écran de toute façon) */
  body.ih-no-scroll { padding-bottom: 0; }
}

/* ── Bandeau cookies Moove — 1er niveau (v0.2.65, exigences DPO) ────────────
   Le bandeau porte l'information complète de 1er niveau : responsable du
   dépôt, finalités, destinataires, description des cookies, durées.
   Contrainte : ça doit rester utilisable sur un téléphone.
     - structure « 4 faits courts » (ul.ih-gdpr-facts) plutôt que des pavés ;
     - tableau détaillé replié dans un <details> ;
     - c'est le TEXTE qui scrolle (.moove-gdpr-cookie-notice), pas le bandeau :
       les 3 boutons de choix restent toujours visibles à l'écran ;
     - sur mobile le tableau s'EMPILE en fiches (voir plus bas) : un tableau à
       5 colonnes ne tient pas sur un téléphone, et un `min-width` dessus
       faisait déborder tout le bandeau (mesuré : conteneur à 597 px pour un
       écran de 390 → texte rogné à droite).
   ────────────────────────────────────────────────────────────────────────── */

/* Garde-fous anti-débordement : aucun descendant ne doit pouvoir élargir le
   bandeau. `min-width: 0` est indispensable — sans lui, un enfant flex/grid
   refuse de se réduire sous la largeur de son contenu (blowout classique). */
#moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content,
#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Le conteneur ne scrolle pas : sinon les boutons de choix partent sous la
   ligne de flottaison sur mobile. */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container {
  max-height: none;
}

/* C'est cette zone-là qui scrolle. */
#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice {
  font-size: 13px;
  line-height: 1.45;
  max-height: 40vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice a {
  text-decoration: underline;
}

/* Accroche. Moove cible les <p> du bandeau en `#id .class .class p`, donc une
   règle `#id .ma-classe` serait écrasée (texte forcé en 14px/700).
   D'où la spécificité longue ci-dessous — ne pas la raccourcir. */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p.ih-gdpr-lead {
  margin: 0 0 5px;
  font-weight: 400;
  font-size: 13px;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p.ih-gdpr-lead strong {
  font-weight: 700;
}

/* Les 4 faits : Qui / Pourquoi / Pour qui / Combien de temps. */
#moove_gdpr_cookie_info_bar .ih-gdpr-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  min-width: 0;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-facts > li {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
  overflow-wrap: anywhere; /* les longues adresses e-mail ne débordent pas */
}
#moove_gdpr_cookie_info_bar .ih-gdpr-facts > li strong {
  font-weight: 700;
  opacity: 1;
}

/* Liens de bas de bandeau (même piège de spécificité que l'accroche). */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p.ih-gdpr-links {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
}

/* Bloc dépliable « Description détaillée des cookies ». */
#moove_gdpr_cookie_info_bar .ih-gdpr-details {
  margin: 6px 0 0;
  min-width: 0;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  list-style: none;
  padding: 4px 0; /* cible tactile confortable */
}
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary::-webkit-details-marker {
  display: none;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary::before {
  content: "\25B8\00A0";
}
#moove_gdpr_cookie_info_bar .ih-gdpr-details[open] > summary::before {
  content: "\25BE\00A0";
}

/* Le <summary> est devenu l'affordance principale du bandeau compact :
   on lui donne une allure de ligne cliquable plutôt que de simple lien. */
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
  text-decoration: none;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary:hover,
#moove_gdpr_cookie_info_bar .ih-gdpr-details > summary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

/* La feuille : contenu détaillé, scrollable, séparé de l'accroche. */
#moove_gdpr_cookie_info_bar .ih-gdpr-sheet {
  margin: 7px 0 0;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 0;
}

/* Tableau des cookies — rendu desktop. */
#moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0 0;
  -webkit-overflow-scrolling: touch;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap th,
#moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}
#moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap th {
  font-weight: 600;
}

/* Le bandeau gère sa propre hauteur : pas de padding-bottom sticky en plus. */
body.moove-gdpr-infobar-visible-true {
  padding-bottom: 0;
}

/* ── Mobile : c'est ici que le bandeau devient vite envahissant ──────────── */
@media (max-width: 768px) {
  /* Colonne flex : les boutons de choix réservent leur place, le texte prend
     ce qui reste et scrolle. Une simple `max-height` en vh sur le texte ne
     suffit PAS — elle ignore la hauteur des boutons, qui se retrouvent poussés
     hors de l'écran (mesuré : boutons à 874/910 px sur un écran de 844, une
     fois le dépliant ouvert). On plafonne donc la BARRE, et la hauteur se
     répartit ensuite en flex.

     ⚠️ Deux obstacles côté Moove (gdpr-main.css), d'où l'id doublé :
       - la barre est plafonnée à `max-height: 400px` ;
       - ses règles de layout sont en
         `#id.gdpr_infobar_postion_*:not(.gdpr-full-screen-infobar) .cont .content`,
         soit une spécificité que `#id .classe` ne bat pas (notre `display:flex`
         était ignoré, le calculé restait `block`).
     Doubler l'id porte la spécificité à (2,x,0) et passe devant, sans
     `!important`. Ne pas « simplifier » ces sélecteurs. */
  /* La barre laisse faire (son `max-height: 400px` d'origine tronquait tout) ;
     c'est le conteneur flex qui porte le plafond. Surtout PAS de chaîne de
     `height: 100%` : un pourcentage résolu contre un parent en `max-height`
     et hauteur auto ne contraint rien, et les boutons ressortaient sous la
     barre (mesuré : barre à 844, boutons à 908 et 944). */
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar {
    max-height: none;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container {
    display: block;
  }
  /* Deux états, pattern « bottom sheet » :
       - au repos, le bandeau est COMPACT (accroche + liens + boutons) ;
       - une fois la feuille dépliée, il monte pour laisser lire le détail.
     `:has()` porte le changement d'état sans JS. Si le navigateur ne le
     supporte pas (très ancien), on reste au plafond compact et la feuille
     scrolle à l'intérieur : dégradé acceptable, jamais cassé. */
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 42vh;
    box-sizing: border-box;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content:has(details[open]) {
    max-height: 88vh;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-button-holder {
    flex: 0 0 auto;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice {
    font-size: 12px;
    flex: 1 1 auto;
    min-height: 0; /* sans ça, l'enfant flex refuse de se réduire et déborde */
    max-height: none;
    overflow-y: auto;
  }
  #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p.ih-gdpr-lead {
    font-size: 12px;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-facts > li,
  #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p.ih-gdpr-links,
  #moove_gdpr_cookie_info_bar .ih-gdpr-details > summary {
    font-size: 11.5px;
  }

  /* Le tableau s'EMPILE en fiches : une ligne = un bloc, chaque cellule sur sa
     propre ligne précédée de son intitulé de colonne. Plus de scroll
     horizontal, plus de débordement, et c'est lisible au pouce.
     Les intitulés viennent de nth-child : pas d'attribut data-* à ajouter au
     markup (qui passe par wp_kses_post). Si l'ordre des colonnes du bandeau
     change, mettre ces 5 libellés à jour. */
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap {
    overflow-x: visible;
    max-height: 26vh;
    overflow-y: auto;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap table,
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap tbody,
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap tr,
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td {
    display: block;
    width: auto;
    max-width: 100%;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap thead {
    display: none; /* les intitulés sont réinjectés par cellule ci-dessous */
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap tr {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 5px 7px;
    margin: 0 0 5px;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td {
    border: 0;
    padding: 1px 0;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td::before {
    font-weight: 600;
    opacity: 0.75;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td:nth-child(1)::before { content: "Cookie : "; }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td:nth-child(2)::before { content: "Déposé par : "; }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td:nth-child(3)::before { content: "Finalité : "; }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td:nth-child(4)::before { content: "Consentement : "; }
  #moove_gdpr_cookie_info_bar .ih-gdpr-table-wrap td:nth-child(5)::before { content: "Durée : "; }
}

/* Écrans très courts (paysage, petits téléphones) : on resserre encore. */
@media (max-height: 560px) {
  /* Même principe que sur mobile (id doublé pour passer devant Moove) : on
     plafonne la BARRE, jamais le texte, pour que les boutons restent
     atteignables. En paysage on peut monter plus haut : l'écran est court. */
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar {
    max-height: none;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container {
    display: block;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 88vh;
    box-sizing: border-box;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-button-holder {
    flex: 0 0 auto;
  }
  #moove_gdpr_cookie_info_bar#moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
  #moove_gdpr_cookie_info_bar .ih-gdpr-facts > li {
    font-size: 11px;
    line-height: 1.35;
  }
}

/* ── Bandeau cookies : desktop aligné sur le mobile (v0.2.72) ───────────────
   Historique : la v0.2.71 dépliait tout le détail sur grand écran (masquage du
   <summary> + `.ih-gdpr-sheet` forcée visible), pour afficher les 5 mentions
   « dès le premier niveau ». Résultat : un pavé de texte + le tableau complet
   des cookies en pleine page, jugé beaucoup trop lourd.

   Arbitrage 2026-09-10 : on garde partout le format compact « accroche +
   feuille dépliante ». Le desktop suit donc les règles de base plus haut, sans
   surcharge — il n'y a volontairement plus de bloc `@media (min-width: 769px)`
   ici. Le détail reste à un clic, et intégralement présent dans la politique
   de cookies.

   ⚠️ À signaler à la DPO : les destinataires et la description des cookies ne
   sont plus au premier niveau au sens strict, sur aucun support. */


/* 2026-11-03 — En-tête sur petit ordinateur : le bouton de contact sortait de l'écran
   sous 1 340 px. Le numéro cède sa place d'abord, puis on resserre jusqu'au burger (1 024 px). */
@media (max-width: 1360px) {
  .ih-header__phone-number { display: none; }
  .ih-header__phone { padding: 6px 8px; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .ih-header__inner { padding-left: 20px; padding-right: 20px; gap: 16px; }
  .ih-nav__item { padding: 10px 6px; }
  .ih-nav__chevron { display: none; }
}
