/* Éléments propres au site bilingue (v3) : sélecteur de langue FR/EN de l'en-tête, libellé de menu sans lien, pages d'erreur. */

.nav .nav-label { padding: calc(8 * var(--px)) 0; cursor: default; }

/* Sélecteur de langue : deux petites pastilles texte, discret (pas de drapeau). */
.nav .lang { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 0 calc(4 * var(--px)); padding: 3px; list-style: none; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; font: 600 max(11.5px, calc(13 * var(--px))) / 1 var(--body); letter-spacing: .04em; }
.nav .lang li { display: block; }
.nav .lang a:not(.btn) { display: block; padding: 7px 10px; border-radius: 999px; text-decoration: none; color: rgb(255 255 255 / .78); transition: background-color .2s, color .2s; }
.nav .lang a:not(.btn):hover { color: #fff; background: rgb(255 255 255 / .12); }
.nav .lang a[aria-current="true"] { background: #fff; color: var(--lb-ink, #10272f); }
.nav .lang a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 820px) {
  .nav .lang { margin: 18px 0 0; }
  .nav .lang a:not(.btn) { width: auto; padding: 9px 16px; border-bottom: 0; }
}

/* Fiche de l'article (cas d'usage) : trois faits en deux colonnes débordaient sur un téléphone (mots longs type « bathymétrique ») : une colonne sous 480 px. */
@media (max-width: 480px) { .gb-refs.gb-refs--one { grid-template-columns: 1fr; } }
.gb-refs dd, .gb-facts dd { overflow-wrap: break-word; }

/* Carte d'industrie sans page dans la langue courante (div au lieu de a) : pas d'effet de survol. */
div.in-card:hover { border-color: #c4cfcf; background: #fff; }
div.in-card:hover .n { color: var(--mute); }
div.in-card:hover .in-ic { color: var(--accent); }
div.in-card:hover h3 { color: inherit; }

/* Bandeau de consentement cookies (Google Analytics 4, seulement si GA4_MEASUREMENT_ID est renseigné). Fond clair, deux boutons de même poids. */
.hx-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid #c4cfcf; border-radius: 14px; background: #fff; color: var(--lb-ink, #10272f); box-shadow: 0 10px 40px rgb(16 39 47 / .22); font-size: 14px; line-height: 1.5; max-height: 80vh; overflow-y: auto; }
.hx-consent[hidden] { display: none; }
.hx-consent h2 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.hx-consent p { margin: 0; color: var(--lb-mute, #3f565e); }
.hx-consent a { color: var(--lb-deep, #1c4f5e); text-decoration: underline; }
.hx-consent-actions { display: flex; gap: 10px; }
.hx-consent button { flex: 1; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--lb-ink, #10272f); background: #fff; color: var(--lb-ink, #10272f); font: inherit; font-weight: 600; cursor: pointer; }
.hx-consent button:hover { background: var(--lb-ink, #10272f); color: #fff; }
.hx-consent a:focus-visible, .hx-consent button:focus-visible, .foot-cookies:focus-visible { outline: 3px solid var(--lb-accent, #ff6a3d); outline-offset: 2px; }
@media (min-width: 1024px) {
  .hx-consent { left: 0; right: 0; bottom: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 14px max(24px, calc((100vw - 1272px) / 2)); border-radius: 0; border-width: 1px 0 0; }
  .hx-consent-actions { flex: 0 0 auto; }
  .hx-consent button { flex: 0 0 auto; min-width: 130px; }
}
/* « Gérer les cookies » du pied de page : bouton qui a l'allure d'un lien. */
.foot-cookies { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.foot-cookies:hover { opacity: .8; }
