/* Consistor Kredit 1.9.3 — espace client, suivi, application, fenêtres, focus */
/* Espace client : la barre du site (devise + langue) ne se superpose plus à l'en-tête du suivi */
html.af-portal body>.top,html.af-portal[data-ckr-theme] body:not(.af-x):not(.af-y):not(.af-z)>.top{display:none!important}
html.af-portal body>header:not(.na-header){display:none!important}
/* Un seul sélecteur de langue : GTranslate dans l'en-tête de l'espace, le sélecteur du plugin est masqué */
html.af-has-gt .r22-menu-group[data-r22=lang],html.af-has-gt.af-portal [data-r14-lang],html.af-has-gt.af-portal :is(.rc60-lang,.r16-app-lang,.na-header .r14-lang,.na-header .rc61-fallback){display:none!important}
#af-gt{position:fixed;z-index:2147482900;display:flex;align-items:center;visibility:hidden}
#af-gt.af-float{top:auto!important;left:12px!important;bottom:12px;visibility:visible!important}
.af-gt-slot{display:inline-block;flex:none;height:32px}
#af-gt .gtranslate_wrapper{position:relative!important;display:inline-flex!important;align-items:center;margin:0!important;inset:auto!important}
#af-gt :is(.gt_switcher_wrapper,.gt_float_switcher){position:relative!important;inset:auto!important;transform:none!important;margin:0!important}
#af-gt .gtranslate_wrapper[data-code] :is(.gt-current-lang .gt-lang-code,.gt_selected a){font-size:0!important}
#af-gt .gtranslate_wrapper[data-code] :is(.gt-current-lang,.gt_selected a)::after{content:attr(data-code);font-size:12.5px;font-weight:700;letter-spacing:.02em;color:var(--mq-head,#0E2D69)}
#af-gt .gtranslate_wrapper[data-code] .gt_selected a{min-width:0!important;padding:5px 26px 5px 8px!important}
#af-gt .gtranslate_wrapper[data-code] .gt-current-lang{padding:5px 10px!important}
#af-gt .gtranslate_wrapper .gt_switcher{min-width:0!important}
#af-gt .gt-current-lang .gt_float_switcher-arrow{display:none}
#af-gt .gt_float_switcher .gt_options{top:calc(100% + 8px)!important;bottom:auto!important}
#af-gt select.gt_selector{height:32px!important;max-width:96px;font-size:12.5px!important}
@media(max-width:600px){#af-gt .gt_float_switcher .gt_options,#af-gt .gt_switcher .gt_option{position:fixed!important;top:64px!important;left:12px!important;right:12px!important;width:auto!important}}
/* En-tête de l'espace client sur mobile : une ligne nette, logo aux couleurs du thème */
html[data-ckr-theme^=maquette] .na-header{position:sticky;top:0;z-index:40;background:var(--mq-sf,#fff);border-bottom:1px solid var(--mq-bd,#D9E4F4)}
html[data-ckr-theme^=maquette] .na-header .na-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
html[data-ckr-theme^=maquette] .na-brand img{border-radius:10px}
html[data-ckr-theme^=maquette] .cx-avatar-svg{background:var(--mq-pri,#0B5BC4)!important;color:#fff!important}
@media(max-width:600px){
 html[data-ckr-theme^=maquette] .na-header{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px!important;min-height:58px;flex-wrap:nowrap!important}
 html[data-ckr-theme^=maquette] .na-header .na-brand{min-width:0;flex:1 1 auto;gap:8px}
 html[data-ckr-theme^=maquette] .na-header .na-brand img{width:34px!important;height:34px!important}
 html[data-ckr-theme^=maquette] .na-header .na-brand strong{font-size:14.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html[data-ckr-theme^=maquette] .na-header .na-brand small{font-size:11px!important}
 html[data-ckr-theme^=maquette] .na-header:has(.r21-site) .na-site{display:none!important}
 html[data-ckr-theme^=maquette] .na-header .na-site span{display:none!important}
 html[data-ckr-theme^=maquette] .na-header .na-site{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--mq-bd,#D9E4F4);border-radius:999px;padding:0!important}
 html[data-ckr-theme^=maquette] .na-header .na-header-actions{gap:6px}
}
/* Fenêtre « Installer l'application » : logo et titre à taille raisonnable */
.n17-install>img{width:52px!important;height:52px!important;margin:0 auto 6px;display:block}
.n17-install h2{font-size:clamp(19px,5vw,23px)!important;line-height:1.25!important;margin:4px 0 8px!important}
.n17-install p{font-size:14px}
@media(max-width:600px){dialog#modal{max-height:calc(100dvh - 24px);overflow:auto}}
/* Boutons : le libellé reste lisible au survol, au toucher et au focus */
html[data-ckr-theme^=maquette] :is(a,button).button.outline:is(:hover,:focus,:focus-visible,:active){background:var(--mq-soft,#E8F0FC)!important;color:var(--mq-pri,#0B5BC4)!important;border-color:var(--mq-pri,#0B5BC4)!important}
html[data-ckr-theme^=maquette] :is(a,button).button:not(.outline):not(.light):not(.ghost):not(.link):not(.text):not(.close):is(:hover,:focus,:active){color:#fff!important}
html[data-ckr-theme^=maquette] :is(a,button,summary,select,input,textarea,[tabindex]):focus-visible{outline:2px solid color-mix(in srgb,var(--mq-pri,#0B5BC4) 55%,transparent)!important;outline-offset:2px!important}
html[data-ckr-theme^=maquette] button.button.small.outline{color:var(--mq-pri,#0B5BC4);background:var(--mq-sf,#fff);border:1px solid var(--mq-pri,#0B5BC4)}
/* Boutons ronds homogènes dans l'en-tête de l'espace (cloche, compte) */
html[data-ckr-theme^=maquette] .na-header :is(.na-icon-button,.na-account>summary){width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border-radius:999px!important;border:1px solid var(--mq-bd,#D9E4F4)!important;background:var(--mq-sf,#fff)!important;display:inline-grid!important;place-items:center;color:var(--mq-head,#0E2D69)}
html[data-ckr-theme^=maquette] .na-header .na-account>summary{border:0!important;background:transparent!important}
html[data-ckr-theme^=maquette] .na-header .cx-avatar-svg{width:34px!important;height:34px!important;border-radius:999px!important;display:inline-grid!important;place-items:center}
/* Bannière « Mon récapitulatif » : titre lisible sur le fond bleu */
html[data-ckr-theme^=maquette] .na-hero :is(h1,h2){color:inherit!important}
html[data-ckr-theme^=maquette] .na-header .na-site{border-radius:999px!important;min-height:38px;padding:0 14px;border:1px solid var(--mq-bd,#D9E4F4);display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--mq-pri,#0B5BC4);background:var(--mq-sf,#fff);text-decoration:none}
@media(min-width:900px){html[data-ckr-theme^=maquette] .na-shell :is(.na-sidebar,.na-side,aside) nav a{font-size:14px!important}}
html[data-ckr-theme^=maquette] dialog#modal::backdrop{background:rgba(11,35,80,.55)!important;backdrop-filter:blur(3px)}
/* GTranslate dans l'en-tête : drapeau + code, sans la flèche d'origine */
#af-gt .gtranslate_wrapper[data-code] .gt_selected a{display:flex!important;align-items:center;gap:6px;border:1px solid var(--mq-bd,#D9E4F4)!important;border-radius:999px!important;background:var(--mq-sf,#fff)!important;padding:5px 12px 5px 8px!important;width:auto!important;min-width:0!important}
#af-gt .gtranslate_wrapper[data-code] .gt_selected a::after{content:attr(data-code)!important;position:static!important;background:none!important;width:auto!important;height:auto!important;transform:none!important;opacity:1!important}
#af-gt .gt_switcher .gt_option{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 6px)!important;width:220px!important;max-height:min(60vh,420px);overflow:auto;background:var(--mq-sf,#fff)!important;border:1px solid var(--mq-bd,#D9E4F4)!important;border-radius:12px!important;box-shadow:0 14px 34px rgba(14,45,105,.16)!important;padding:6px!important}
#af-gt .gt_switcher .gt_option a{display:flex!important;align-items:center;gap:9px;padding:7px 10px!important;border-radius:8px;color:var(--mq-head,#0E2D69)!important;font-size:13px!important}
#af-gt .gt_switcher .gt_option a:hover,#af-gt .gt_switcher .gt_option a.gt_current{background:var(--mq-soft,#E8F0FC)!important}
#af-gt .gt_switcher a img{width:18px!important;height:18px!important;border-radius:50%;object-fit:cover}
/* Bouton du chat : icône toujours blanche sur le fond bleu */
html body a.chat-link,html body a.chat-link:is(:hover,:focus,:focus-visible,:active,:visited){color:#fff!important}
html body a.chat-link svg{color:#fff!important;stroke:currentColor}
/* Chat aussi dans l'espace de suivi et l'application client */
html.af-portal.ckc-on body.na-client-mode>a.chat-link,html.af-portal.ckc-on body:not(.admin-mode):not(.app-admin-app)>a.chat-link{display:grid!important;place-items:center;position:fixed!important;right:24px!important;bottom:24px!important;width:56px!important;height:56px!important;padding:0!important;border-radius:50%!important;background:var(--mq-pri,#0B5BC4)!important;border:3px solid #fff!important;box-shadow:0 8px 24px rgba(14,45,105,.25)!important;z-index:2147482950!important;opacity:1!important;visibility:visible!important}
html.af-portal.ckc-open body>a.chat-link{display:none!important}
@media(max-width:999px){html.af-portal.ckc-on body:not(.admin-mode):not(.app-admin-app)>a.chat-link,html.af-portal.ckc-on body.na-client-mode:not(.admin-mode)>a.chat-link{bottom:calc(84px + env(safe-area-inset-bottom))!important;right:18px!important;width:52px!important;height:52px!important}html.af-portal.ckc-on body:not(.admin-mode) .ckc-wafab{bottom:calc(146px + env(safe-area-inset-bottom))!important;right:20px!important}}
