/* Caisse Pages : barre de navigation commune (design du site) */
.sa-hd, .sa-hd *, .sa-hd *::before, .sa-hd *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sa-hd {
  --hd-ink: var(--ink, #0F172A); --hd-text: var(--text, #334155); --hd-muted: var(--muted, #64748B);
  --hd-line: var(--line, #E2E8F0); --hd-bg: var(--bg, #F4F5F7); --hd-pri: var(--primary, #0F766E);
  --hd-pri-d: var(--primary-dark, #115E59); --hd-soft: var(--primary-soft, #E7F3F1); --hd-rb: var(--r-btn, 8px);
  --h: 70px;
  position: sticky; top: var(--sa-ab, 0px); z-index: 9990;
  font-family: var(--font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--hd-ink); -webkit-font-smoothing: antialiased;
  transition: transform .3s ease;
}
body.admin-bar .sa-hd { top: var(--sa-ab, 32px); }
@media (max-width: 782px) { body.admin-bar .sa-hd { top: var(--sa-ab, 46px); } }
.sa-hd a { color: inherit; text-decoration: none; }
.sa-hd button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sa-hd svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sa-hd :focus-visible { outline: 2px solid var(--hd-pri); outline-offset: 2px; border-radius: 6px; }

/* Bandeau du haut : il défile avec la page, la barre de navigation reste collée en haut. */
.sa-top { box-sizing: border-box; background: var(--ink, #0F172A); color: #CBD5E1; font: 400 13px/1.4 var(--font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); text-align: center; padding: 8px 16px; -webkit-font-smoothing: antialiased; }
.sa-top strong { color: #fff; font-weight: 700; }
.sa-top a { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Barre */
.sa-bar { position: relative; background: #fff; border-bottom: 1px solid var(--hd-line); }
.sa-hd.bg-page .sa-bar { background: var(--hd-bg); }
.sa-hd.is-hidden { transform: translateY(calc(-100% - var(--sa-ab, 0px) - 4px)); }
body.admin-bar .sa-hd.is-hidden { transform: translateY(calc(-100% - var(--sa-ab, 32px) - 4px)); }
.sa-in { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 0 24px; height: var(--h); display: flex; align-items: center; gap: 22px; }

/* Logo */
.sa-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.sa-logo-ic { width: 36px; height: 36px; border-radius: var(--hd-rb); background: var(--hd-pri); color: #fff; display: grid; place-items: center; }
.sa-logo-ic svg { width: 20px; height: 20px; }
.sa-logo b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--hd-ink); }
.sa-logo small { display: block; font-size: 11.5px; color: var(--hd-muted); line-height: 1.3; font-weight: 500; }
.sa-hd img.sa-logo-img { height: var(--sa-logo-h, 40px); width: auto; max-width: 440px; display: block; object-fit: contain; object-position: left center; }

/* Navigation */
.sa-nav { margin: 0 auto; display: flex; align-items: center; gap: 2px; }
.sa-link { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: var(--hd-rb); font-size: 14.5px; font-weight: 600; color: var(--hd-text); white-space: nowrap; transition: color .15s, background .15s; }
.sa-hd button.sa-link { font-size: 14.5px; font-weight: 600; }
.sa-link:hover, .sa-drop.is-open > .sa-link { color: var(--hd-ink); background: var(--hd-bg); }
.sa-link.is-active { color: var(--hd-pri); }
.sa-link .sa-chev { width: 15px; height: 15px; color: var(--hd-muted); transition: transform .2s; }
.sa-drop.is-open > .sa-link .sa-chev { transform: rotate(180deg); }
.sa-new { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--hd-soft); color: var(--hd-pri-d); }

/* Menus déroulants */
.sa-drop { position: relative; }
.sa-mega { position: absolute; top: calc(100% + 10px); left: 50%; width: 600px; padding: 8px; background: #fff; border: 1px solid var(--hd-line); border-radius: 12px; box-shadow: 0 18px 40px -24px rgba(15,23,42,.3); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sa-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sa-drop.is-open .sa-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sa-mega.is-simple { width: 340px; }
.sa-mega.cols-3 { width: 840px; }
.sa-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sa-mega.cols-3 .sa-mega-grid { grid-template-columns: 1fr 1fr 1fr; }
.sa-mega.cols-1 .sa-mega-grid { grid-template-columns: 1fr; }
.sa-mega-col { padding: 4px; }
.sa-mega-h { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hd-muted); padding: 6px 10px 8px; }
.sa-zone { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; transition: background .15s; }
.sa-zone:hover { background: var(--hd-bg); }
.sa-flag, .sa-hd img.sa-flag { width: 36px; height: 36px; max-width: none; border-radius: 8px; flex: none; background: var(--hd-bg); border: 1px solid var(--hd-line); display: grid; place-items: center; color: var(--hd-pri); object-fit: contain; }
.sa-flag img { width: 20px; height: 20px; display: block; }
.sa-flag.is-ic svg { width: 18px; height: 18px; }
.sa-zone b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--hd-ink); }
.sa-zone small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--hd-muted); line-height: 1.4; }
.sa-dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.sa-dot.soon { background: #D97706; }
.sa-zone .sa-go { margin-left: auto; width: 16px; height: 16px; color: var(--hd-muted); opacity: 0; transition: opacity .15s; }
.sa-zone:hover .sa-go { opacity: 1; }
.sa-zone.is-feature { background: var(--hd-soft); }
.sa-mega-foot { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 12px 14px; border-radius: 8px; background: var(--hd-bg); }
.sa-mega-foot .sa-mf-ic { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--hd-line); color: var(--hd-pri); display: grid; place-items: center; flex: none; }
.sa-mega-foot b { display: block; font-size: 14px; font-weight: 700; }
.sa-mega-foot small { display: block; font-size: 12.5px; color: var(--hd-muted); }
.sa-mega-foot .sa-btn { margin-left: auto; }

/* Actions */
.sa-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sa-icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--hd-rb); border: 1px solid var(--hd-line); background: #fff; display: grid; place-items: center; }
.sa-icon-btn .sa-live { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--hd-rb); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.sa-btn-dark { background: var(--hd-pri); color: #fff !important; }
.sa-btn-dark:hover { background: var(--hd-pri-d); }
.sa-btn-light { background: #fff; border: 1px solid var(--hd-line); color: var(--hd-ink) !important; height: 36px; padding: 0 14px; font-size: 13px; }
.sa-btn-line { border: 1px solid var(--hd-line); background: #fff; color: var(--hd-ink) !important; }
.sa-btn .sa-arrow { width: 16px; height: 16px; }

/* Hamburger */
.sa-burger { display: none; width: 42px; height: 42px; border-radius: var(--hd-rb); border: 1px solid var(--hd-line) !important; background: #fff !important; place-items: center; }
.sa-burger span { position: relative; display: block; width: 18px; height: 12px; }
.sa-burger i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.sa-burger i:nth-child(1) { top: 0; }
.sa-burger i:nth-child(2) { top: 5px; }
.sa-burger i:nth-child(3) { top: 10px; }
.sa-hd.is-menu .sa-burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.sa-hd.is-menu .sa-burger i:nth-child(2) { opacity: 0; }
.sa-hd.is-menu .sa-burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Panneau mobile */
.sa-panel { position: fixed; left: 0; right: 0; top: var(--sa-top, 70px); bottom: 0; background: var(--hd-bg); overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; display: none; }
.sa-hd.is-menu .sa-panel { opacity: 1; visibility: visible; }
.sa-plinks { display: flex; flex-direction: column; }
.sa-plink { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; border-bottom: 1px solid var(--hd-line); font-size: 16px; font-weight: 700; text-align: left; }
.sa-hd button.sa-plink { font-size: 16px; font-weight: 700; }
.sa-plink .sa-pic { width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--hd-line); color: var(--hd-pri); display: grid; place-items: center; flex: none; }
.sa-plink .sa-pend { margin-left: auto; color: var(--hd-muted); transition: transform .2s; }
.sa-plink[aria-expanded="true"] .sa-pend { transform: rotate(180deg); }
.sa-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.sa-acc > div { overflow: hidden; }
.sa-acc.is-open { grid-template-rows: 1fr; }
.sa-acc-in { padding: 8px 0 12px; display: grid; gap: 6px; }
.sa-acc-in .sa-zone { background: #fff; border: 1px solid var(--hd-line); }
.sa-pcta { display: grid; gap: 10px; margin-top: 20px; }
.sa-pcta .sa-btn { height: 50px; font-size: 15px; width: 100%; }
.sa-pinfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; font-size: 13px; color: var(--hd-muted); }
.sa-pinfo span { display: inline-flex; align-items: center; gap: 6px; }
.sa-pinfo svg { width: 15px; height: 15px; }

@media (max-width: 1180px) { .sa-link { padding: 0 9px; } }
@media (max-width: 1060px) {
  .sa-hd { --h: 64px; }
  .sa-nav, .sa-actions .sa-btn { display: none; }
  .sa-burger { display: grid; }
  .sa-panel { display: block; }
  .sa-actions { margin-left: auto; }
  .sa-hd img.sa-logo-img { height: var(--sa-logo-hm, 34px); max-width: 52vw; }
}
@media (max-width: 520px) { .sa-in { padding: 0 16px; gap: 12px; } .sa-logo small { display: none; } .sa-top { font-size: 12px; } }
body.sa-menu-open .sa-top { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sa-hd, .sa-hd * { transition: none !important; } }
.sa-hd.is-menu { position: fixed; left: 0; right: 0; transform: none !important; }
.sa-hd-spacer { display: block; height: 0; }
.sa-hd.pos-static { position: relative; }
.sa-hd.pos-absolute { position: absolute; left: 0; right: 0; }
.sa-hd.pos-absolute:not(.is-menu):not(.is-scrolled) .sa-bar { background: transparent; border-bottom-color: transparent; }
.sa-hd.sep-none:not(.is-scrolled) .sa-bar { border-bottom-color: transparent; }
.sa-hd.sep-soft .sa-bar { border-bottom-color: transparent; }
.sa-hd.sep-shadow.is-scrolled .sa-bar, .sa-hd.sep-soft.is-scrolled .sa-bar { box-shadow: 0 6px 18px -14px rgba(15,23,42,.35); }
