/* Sélecteur partagé par la présentation et l'application. */
.language-trigger { border: 0; background: transparent; font: inherit; cursor: pointer; }
.menu-panel .language-trigger { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; text-align: left; color: var(--ink); font-size: 1.05rem; }
.menu-panel .language-trigger:hover { background: #efe9df; }
.language-dialog { box-sizing: border-box; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 1px solid #e3dcd2; border-radius: 24px; background: #fffcf8; color: #1c1915; font-family: 'Fira Sans Condensed', system-ui, sans-serif; box-shadow: 0 24px 80px rgba(28, 25, 21, .24); }
.language-dialog::backdrop { background: rgba(28, 25, 21, .45); backdrop-filter: blur(8px); }
.language-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.language-eyebrow { margin: 0 0 6px; color: #6f685f; font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.language-head h2 { margin: 0; font-size: 1.9rem; font-weight: 500; line-height: 1.15; }
.language-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e3dcd2; border-radius: 50%; background: transparent; color: #1e3f3a; font: 400 1.8rem/1 system-ui, sans-serif; cursor: pointer; }
.language-close:hover { background: #ece5da; }
.language-description { margin: 14px 0 20px; color: #6f685f; font-size: 1rem; line-height: 1.45; }
.language-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.language-option { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 4px 10px; min-height: 88px; height: 100%; padding: 10px 14px; border: 1px solid #e3dcd2; border-radius: 15px; color: #1c1915; background: #f7f4ee; text-decoration: none; }
.language-option:hover { border-color: #1e3f3a; background: #eeeae1; }
.language-option[aria-current='page'] { border-color: #1e3f3a; box-shadow: inset 0 0 0 1px #1e3f3a; }
.language-flag { font-size: 1.5rem; }
.language-label { display: grid; gap: 1px; min-width: 0; }
.language-label strong { font-weight: 500; font-size: 1.15rem; }
.language-detail { font-size: .86rem; color: #6f685f; }
.language-status { grid-column: 2; justify-self: start; font-size: .75rem; line-height: 1.4; padding: 2px 8px; border-radius: 20px; background: #ece5da; color: #625747; }
.language-status.available { color: #215b40; background: #e0eae1; }
.language-dialog :focus-visible { outline: 3px solid #1e3f3a; outline-offset: 3px; }
.language-preview { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px; padding: 12px 20px; background: #ece5da; color: #403a32; font-size: .95rem; text-align: center; }
.language-preview a { color: #1e3f3a; font-weight: 500; }
@media (max-width: 480px) {
  .language-dialog { padding: 20px; }
  .language-head h2 { font-size: 1.6rem; }
  .language-list { grid-template-columns: 1fr; }
  .language-option { min-height: 74px; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px; }
  .language-status { grid-column: 3; grid-row: 1; }
}

/* Bandeau hors connexion : en bas d'écran, au-dessus du contenu, sans le masquer au défilement. */
.offline-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1000; margin: 0 auto; max-width: 720px; padding: 12px 18px; border-radius: 12px; background: #403a32; color: #f7f4ee; font-size: .95rem; line-height: 1.45; text-align: center; box-shadow: 0 8px 24px rgba(28, 25, 21, .25); }
