/* MF-47 : barre du haut unique (modèle de la page d'accueil) : logo du site, pays (drapeau rectangulaire), langue, Connexion / Inscription. */
.ai24-sh { position: relative; z-index: 60; background: #15181c; color: #fff; border-bottom: 4px solid #e10600; font-family: Arial, Helvetica, sans-serif; }
.ai24-sh *, .ai24-sh *::before, .ai24-sh *::after { box-sizing: border-box; }
.ai24-sh__inner { width: min(calc(100% - 32px), 1375px); min-height: 68px; margin: 0 auto; padding-block: 8px; display: flex; align-items: center; gap: 16px; }
.ai24-sh__logo { display: block; flex: 0 0 auto; height: 56px; color: #fff; text-decoration: none; }
.ai24-sh__logo .ai24-picture, .ai24-sh__logo picture, .ai24-sh__logo img { display: block !important; width: auto !important; height: 56px !important; max-width: 220px; aspect-ratio: auto !important; overflow: visible !important; object-fit: contain; }
.ai24-site-logo-text { font-size: 22px; font-weight: 700; }
.ai24-sh__controls { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ai24-sh__ctx, .ai24-sh__acct { display: flex; align-items: center; gap: 14px; }
.ai24-sh a, .ai24-sh summary { color: #fff; }
.ai24-sh__link { padding: 6px 2px; text-decoration: none; }
.ai24-sh__link:hover, .ai24-sh__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ai24-sh__menu { position: relative; }
.ai24-sh__menu > summary { display: flex; min-height: 32px; align-items: center; gap: 6px; padding: 3px 5px; list-style: none; cursor: pointer; }
.ai24-sh__menu > summary::-webkit-details-marker { display: none; }
.ai24-sh__menu > summary .ai24-icon:last-child { transform: rotate(90deg); }
.ai24-sh__menu[open] > summary .ai24-icon:last-child { transform: rotate(-90deg); }
.ai24-sh .ai24-flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ai24-sh__menu > ul, .ai24-sh__panel { position: absolute; z-index: 90; inset-block-start: calc(100% + 4px); inset-inline-end: 0; min-width: 220px; max-height: 70vh; margin: 0; padding: 6px; overflow: auto; list-style: none; color: #172033; background: #fff; border: 1px solid #d5d5d5; border-radius: 3px; box-shadow: 0 4px 14px rgb(0 0 0 / 22%); font-weight: 400; }
.ai24-sh__panel { width: min(320px, 90vw); padding: 0; }
.ai24-sh__panel ul { margin: 0; padding: 6px; list-style: none; max-height: 50vh; overflow: auto; }
.ai24-sh__tools { padding: 10px; background: #fff; color: #172033; }
.ai24-sh__tools label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.ai24-sh__tools input, .ai24-sh__tools select { display: block; width: 100%; margin-top: 3px; padding: 7px; font-size: 14px; }
.ai24-sh__menu li a, .ai24-sh__menu li button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px; color: #0b57d0; font: inherit; text-align: start; text-decoration: none; background: none; border: 0; cursor: pointer; }
.ai24-sh__menu li a:hover, .ai24-sh__menu li a:focus-visible, .ai24-sh__menu li button:hover, .ai24-sh__menu li a[aria-current="true"] { background: #eaf1fd; }
.ai24-sh__menu li form { margin: 0; }
.ai24-sh li[hidden] { display: none; }
.ai24-sh a:focus-visible, .ai24-sh summary:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
@media (max-width: 640px) {
    .ai24-sh__inner { flex-wrap: wrap; gap: 4px 12px; }
    .ai24-sh__logo, .ai24-sh__logo .ai24-picture, .ai24-sh__logo picture, .ai24-sh__logo img { height: 44px !important; max-width: 170px; }
    .ai24-sh__controls { display: contents; font-size: 13px; }
    .ai24-sh__acct { order: 2; margin-inline-start: auto; gap: 12px; }
    .ai24-sh__ctx { order: 3; flex: 1 0 100%; justify-content: space-between; }
    .ai24-sh__menu > summary span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ai24-sh__menu > ul { position: fixed; inset-inline: 10px; inset-block-start: auto; min-width: 0; }
    .ai24-sh__panel { position: fixed; inset-inline: 10px; inset-block-start: auto; width: auto; max-height: 75vh; }
}
/* MF-69 : commandes de l'en-tête au doigt (44 px) sur tablette et mobile ; ordinateur inchangé. */
@media (max-width: 1023px) {
    .ai24-sh__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
    .ai24-sh__menu > summary { min-height: 44px; padding: 0 8px; }
    .ai24-sh__menu a, .ai24-sh__panel a { display: flex; align-items: center; min-height: 44px; }
    .ai24-sh__tools input, .ai24-sh__tools select { min-height: 44px; font-size: 16px; }
}
