/* En-tete public Douda : barre d'info, barre principale, tiroir mobile */
.sh {
    --sh-blue: #0f4b86;
    --sh-blue-dark: #0a3560;
    --sh-ink: #17324d;
    position: sticky;
    top: -38px; /* la barre d'info (38px) defile puis la barre principale reste collee : aucune variation de hauteur */
    z-index: 40;
    background: #fff;
    border-bottom: 0;
    backdrop-filter: none;
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sh .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre d'info */
.sh-top {
    background: linear-gradient(90deg, #072a4d 0%, #0a3560 45%, #0f4b86 100%);
    color: #cfe0f2;
    font-size: 12.5px;
    height: 38px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sh-top-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-top-contact { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.sh-top-contact li { display: flex; align-items: center; white-space: nowrap; }
.sh-top-contact li + li::before { content: ""; width: 1px; height: 14px; margin: 0 16px; background: rgba(255, 255, 255, .18); }
.sh-top-contact a, .sh-top-contact li > span { display: inline-flex; align-items: center; gap: 8px; color: #dbe9f8; text-decoration: none; transition: color .2s; }
.sh-top-contact a:hover { color: #fff; }
.sh-top-contact i {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(124, 192, 255, .14); color: #8fcbff; font-size: 11px;
}
.sh-top-contact li.is-badge { gap: 6px; color: #b8f0c8; font-weight: 600; }
.sh-top-contact li.is-badge i { width: auto; height: auto; background: none; color: #5bd17d; font-size: 13px; }
.sh-top-right { display: flex; align-items: center; gap: 14px; flex: none; }
.sh-top-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); color: #fff !important;
    font-weight: 600; text-decoration: none !important;
    transition: background .2s;
}
.sh-top-link:hover { background: rgba(255, 255, 255, .2); }
.sh-top-link i { color: #f6c453; }
.sh-top-socials { display: flex; gap: 6px; }
.sh-top-socials a {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; text-decoration: none;
    transition: background .2s;
}
.sh-top-socials a:hover { background: rgba(255, 255, 255, .25); }

/* Barre principale */
.sh-bar { background: #fff; transition: box-shadow .25s ease; }
.sh.is-stuck .sh-bar { box-shadow: 0 8px 24px rgba(10, 53, 96, .1); }
.sh-bar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.sh-brand { flex: none; display: inline-flex; align-items: center; }
.sh-brand img { display: block; height: 52px; width: auto; }

.sh-nav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.sh-nav a {
    position: relative;
    padding: 10px 14px;
    color: var(--sh-ink);
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.sh-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
    border-radius: 3px; background: #2a8dd8;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.sh-nav a:hover { color: var(--sh-blue); background: #f1f7fd; }
.sh-nav a:hover::after, .sh-nav a.is-active::after { transform: scaleX(1); }
.sh-nav a.is-active { color: var(--sh-blue); }
.sh-nav a:focus-visible, .sh-actions a:focus-visible, .sh-burger:focus-visible { outline: 3px solid #2a8dd8; outline-offset: 2px; }

.sh-actions { flex: none; display: flex; align-items: center; gap: 12px; }
.sh-flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(10, 53, 96, .12); display: block; }
.sh-lang { position: relative; }
.sh-lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 12px; border-radius: 999px;
    border: 1px solid #dce7f2; background: #fff; cursor: pointer;
    color: var(--sh-ink); font-size: 13px; font-weight: 700; letter-spacing: .03em;
    transition: border-color .2s, box-shadow .2s;
}
.sh-lang-btn:hover, .sh-lang.is-open .sh-lang-btn { border-color: #9cc7ef; box-shadow: 0 4px 12px rgba(10, 53, 96, .08); }
.sh-lang-btn .fa { color: #7d93a8; transition: transform .2s; }
.sh-lang.is-open .sh-lang-btn .fa { transform: rotate(180deg); }
.sh-lang-btn:focus-visible { outline: 3px solid #2a8dd8; outline-offset: 2px; }
.sh-lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
    min-width: 180px; margin: 0; padding: 6px; list-style: none;
    background: #fff; border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 53, 96, .18), 0 0 0 1px rgba(10, 53, 96, .06);
    animation: sh-pop .16s ease;
}
.sh-lang-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--sh-ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.sh-lang-menu a:hover, .sh-lang-menu a:focus-visible { background: #f1f7fd; outline: none; }
.sh-lang-menu a.is-active { color: var(--sh-blue); }
.sh-lang-menu a .fa { margin-left: auto; color: #2a8dd8; }
@keyframes sh-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sh-cta {
    padding: 11px 20px; border-radius: 999px;
    background: var(--sh-blue); color: #fff !important;
    font-size: 14px; font-weight: 700; text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 75, 134, .25);
    transition: background .2s, transform .2s;
}
.sh-cta:hover, .sh-cta.is-active { background: var(--sh-blue-dark); transform: translateY(-1px); }

.sh-burger {
    display: none;
    width: 46px; height: 46px; padding: 0 12px;
    border: 0; border-radius: 12px; background: #eef4fa; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px;
}
.sh-burger i { display: block; height: 2px; border-radius: 2px; background: var(--sh-ink); }
.sh-burger i:nth-child(3) { width: 70%; }

/* Tiroir mobile */
.sh-drawer { position: fixed; inset: 0; z-index: 1000; }
.sh-drawer[hidden] { display: none; }
.sh-drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 30, 56, .5); opacity: 0; transition: opacity .25s ease; }
.sh-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: #fff;
    display: flex; flex-direction: column; gap: 18px;
    padding: 16px 20px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    box-shadow: -20px 0 50px rgba(6, 30, 56, .25);
}
.sh-drawer.is-open .sh-drawer-backdrop { opacity: 1; }
.sh-drawer.is-open .sh-drawer-panel { transform: none; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.sh-drawer-head img { height: 46px; width: auto; }
.sh-drawer-close {
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: #eef4fa; color: #17324d; font-size: 28px; line-height: 1; cursor: pointer;
}
.sh-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.sh-drawer-nav a {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 14px; border-radius: 14px;
    color: #17324d; font-size: 17px; font-weight: 600; text-decoration: none;
}
.sh-drawer-nav a i { width: 22px; text-align: center; color: #2a8dd8; font-size: 18px; }
.sh-drawer-nav a b { margin-left: auto; color: #9db3c8; font-size: 22px; font-weight: 400; }
.sh-drawer-nav a:hover, .sh-drawer-nav a:focus-visible { background: #f1f7fd; outline: none; }
.sh-drawer-nav a.is-active { background: #0f4b86; color: #fff; }
.sh-drawer-nav a.is-active i, .sh-drawer-nav a.is-active b { color: #fff; }
.sh-drawer-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px; border-radius: 14px;
    background: linear-gradient(120deg, #0f4b86, #2a8dd8);
    color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none !important;
}
.sh-drawer-lang { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #eef4fa; }
.sh-drawer-lang a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 11px; font-weight: 700; color: #557089; text-decoration: none; }
.sh-drawer-lang a.is-active { background: #fff; color: #0f4b86; box-shadow: 0 2px 6px rgba(10, 53, 96, .12); }
.sh-drawer-contact { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid #e3ecf5; }
.sh-drawer-contact a { color: #17324d; font-weight: 600; text-decoration: none; }
.sh-drawer-contact i { width: 22px; color: #2a8dd8; }
.sh-drawer-socials { display: flex; gap: 8px; }
.sh-drawer-socials a {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: #eef4fa; color: #0f4b86; font-size: 17px; text-decoration: none;
}
html.sh-locked, html.sh-locked body { overflow: hidden; }

/* Pastille back office (utilisateur connecte) */
.sh-admin-pill {
    position: fixed; left: 12px; bottom: 12px; z-index: 50;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(10, 53, 96, .85); color: #fff !important;
    font-size: 12px; font-weight: 700; text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(6, 30, 56, .3);
}

/* Responsive */
@media (max-width: 1199.98px) {
    .sh-top-contact li.is-badge { display: none; }
    .sh-nav a { padding: 10px 9px; font-size: 14px; }
    .sh-nav a::after { left: 9px; right: 9px; }
}
@media (max-width: 991.98px) {
    .sh { top: 0; }
    .sh-top, .sh-nav { display: none; }
    .sh-actions { gap: 8px; }
    .sh-lang-btn { height: 46px; padding: 0 10px; border-radius: 12px; }
    .sh-lang-btn span { display: none; }
    .sh-burger { display: inline-flex; }
    .sh-bar-inner { height: 64px; justify-content: space-between; }
    .sh-brand img { height: 44px; }
    .sh.is-stuck .sh-bar, .sh-bar { box-shadow: 0 4px 16px rgba(10, 53, 96, .08); }
    .sh-cta { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 420px) {
    .sh-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sh *, .sh-drawer * { transition: none !important; }
}
