/* =====================================================================
   DZign Store — header.css (v25) : en-tête premium
   Carte blanche flottante, icônes au-dessus des libellés, séparateurs fins,
   page active en bleu électrique, recherche, sélecteur FR | EN, boutons premium.
   Chargée APRÈS site.css. Ne concerne que l'en-tête (#topbar) et la recherche.
   ===================================================================== */
:root{
  --hd-navy:#0B2464; --hd-navy-2:#081B4D; --hd-ink:#0E1E45; --hd-blue:#1D5BFF; --hd-blue-2:#3B82FF;
  --hd-line:#E4EAF5; --hd-soft:#EEF3FF; --hd-top:12px; --hd-h:92px; --hh:calc(var(--hd-h) + var(--hd-top) + 10px)
}

/* ---------- La carte ---------- */
header#topbar.site-header{
  top:var(--hd-top)!important;left:clamp(10px,1.3vw,24px)!important;right:clamp(10px,1.3vw,24px)!important;width:auto!important;
  height:var(--hd-h)!important;padding:0 14px 0 clamp(16px,1.6vw,28px)!important;gap:0!important;
  background:#fff!important;border:1px solid var(--hd-line)!important;border-radius:22px!important;
  box-shadow:0 22px 48px -18px rgba(14,40,110,.22),0 3px 10px rgba(14,40,110,.05)!important;
  transition:top .3s ease,box-shadow .3s ease!important
}
header#topbar.site-header:before{content:"";position:absolute;left:22px;right:22px;bottom:-1px;height:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,rgba(29,91,255,0),rgba(29,91,255,.85) 12%,var(--hd-blue-2) 50%,rgba(29,91,255,.85) 88%,rgba(29,91,255,0))}
header#topbar.site-header.scrolled{top:8px!important;background:rgba(255,255,255,.97)!important;
  box-shadow:0 26px 54px -18px rgba(14,40,110,.30),0 3px 10px rgba(14,40,110,.07)!important}
@supports (backdrop-filter:blur(8px)){header#topbar.site-header.scrolled{background:rgba(255,255,255,.9)!important;backdrop-filter:saturate(1.4) blur(12px)}}

/* ---------- Logo + séparateur ---------- */
header#topbar.site-header .sh-brand{align-self:stretch;padding:0 clamp(16px,1.6vw,28px) 0 0!important;margin:0 4px 0 0!important;
  background:linear-gradient(var(--hd-line),var(--hd-line)) right center/1px 58px no-repeat}
header#topbar.site-header .sh-brand img{height:52px!important}

/* ---------- Menu : icône au-dessus du libellé ---------- */
header#topbar.site-header nav{align-self:stretch;align-items:stretch!important;gap:0!important;margin:0 auto 0 0!important;font-size:15px!important}
header#topbar.site-header nav:after{content:"";align-self:center;width:1px;height:46px;background:var(--hd-line);margin-left:2px}
header#topbar.site-header nav > a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:0 clamp(12px,1.15vw,22px)!important;color:var(--hd-ink)!important;font:600 15px/1.1 'Poppins',system-ui,sans-serif!important;
  letter-spacing:-.005em;white-space:nowrap;border:0!important;border-radius:0!important;
  background:linear-gradient(var(--hd-line),var(--hd-line)) left center/1px 46px no-repeat;transition:color .2s ease!important}
header#topbar.site-header nav > a:first-child{background:none}
header#topbar.site-header nav > a:before{content:"";display:block;width:27px;height:27px;flex:0 0 auto;background:var(--hd-navy);
  -webkit-mask:var(--hd-ico) center/contain no-repeat;mask:var(--hd-ico) center/contain no-repeat;transition:transform .25s cubic-bezier(.2,.8,.2,1),background .2s}
/* soulignement bleu électrique */
header#topbar.site-header nav > a:after{content:""!important;position:absolute!important;left:22%!important;right:22%!important;top:auto!important;bottom:9px!important;
  height:4px!important;border-radius:4px!important;background:var(--hd-blue)!important;transform:scaleX(0)!important;transform-origin:center!important;
  opacity:1!important;transition:transform .28s cubic-bezier(.2,.8,.2,1)!important;box-shadow:0 2px 8px rgba(29,91,255,.35)}
header#topbar.site-header nav > a:hover,header#topbar.site-header nav > a:focus-visible{color:var(--hd-blue)!important}
header#topbar.site-header nav > a:hover:before,header#topbar.site-header nav > a:focus-visible:before{background:var(--hd-blue);transform:translateY(-2px)}
header#topbar.site-header nav > a:hover:after{transform:scaleX(.45)!important}
header#topbar.site-header nav > a[aria-current="page"]{color:var(--hd-blue)!important}
header#topbar.site-header nav > a[aria-current="page"]:before{background:var(--hd-blue)}
header#topbar.site-header nav > a[aria-current="page"]:after{transform:scaleX(1)!important}
header#topbar.site-header nav > a.sh-sup{color:var(--hd-ink)!important}
header#topbar.site-header :focus-visible{outline:2px solid var(--hd-blue)!important;outline-offset:-4px!important;border-radius:12px!important}
header#topbar.site-header nav > a[href$="index.html"],
header#topbar.site-header nav > a[href="/"],
header#topbar.site-header nav > a[href="/en/"],
header#topbar.site-header nav > a[href="./"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.6 12 3.2l9 7.4'/%3E%3Cpath d='M5.2 9.1V20.4h13.6V9.1'/%3E%3Cpath d='M10 20.4v-5.6h4v5.6'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="prestations.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="realisations.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 7.6 12 3 3.5 7.6v8.8L12 21l8.5-4.6z'/%3E%3Cpath d='M3.8 7.8 12 12.3l8.2-4.5'/%3E%3Cpath d='M12 12.3V21'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="boutique.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9.2' cy='19.8' r='1.4'/%3E%3Ccircle cx='17.6' cy='19.8' r='1.4'/%3E%3Cpath d='M2.6 3.6h2.5l2.4 11.1a1.8 1.8 0 0 0 1.8 1.4h8.4a1.8 1.8 0 0 0 1.7-1.3l1.8-7.4H6'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="evenements.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='4.6' width='17.6' height='16' rx='2.6'/%3E%3Cpath d='M8 2.8v3.6M16 2.8v3.6M3.2 9.6h17.6'/%3E%3Cpath d='M7.6 13.4h.01M12 13.4h.01M16.4 13.4h.01M7.6 17.2h.01M12 17.2h.01M16.4 17.2h.01' stroke-width='2.4'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="a-propos.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.6' r='3.1'/%3E%3Cpath d='M6.4 20v-1.4a4.4 4.4 0 0 1 4.4-4.4h2.4a4.4 4.4 0 0 1 4.4 4.4V20'/%3E%3Ccircle cx='5' cy='9.6' r='2.2'/%3E%3Ccircle cx='19' cy='9.6' r='2.2'/%3E%3Cpath d='M1.9 18v-.6A3.1 3.1 0 0 1 5 14.3h.9M22.1 18v-.6a3.1 3.1 0 0 0-3.1-3.1h-.9'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="fournisseurs.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17 2 2a1 1 0 1 0 3-3'/%3E%3Cpath d='m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4'/%3E%3Cpath d='m21 3 1 11h-2'/%3E%3Cpath d='M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3'/%3E%3Cpath d='M3 4h8'/%3E%3C/svg%3E")}
header#topbar.site-header nav > a[href*="contact.html"]{--hd-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.6' y='5' width='18.8' height='14' rx='2.6'/%3E%3Cpath d='m3.6 6.6 8.4 6.3 8.4-6.3'/%3E%3C/svg%3E")}

/* ---------- Outils : recherche, langue, espace client, devis ---------- */
.sh-search{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 16px 0 18px;padding:0;
  border:0;border-radius:50%;background:var(--hd-soft);color:var(--hd-navy);cursor:pointer;transition:background .2s,color .2s,transform .2s,box-shadow .2s}
.sh-search svg{width:23px;height:23px}
.sh-search:hover{background:var(--hd-blue);color:#fff;transform:translateY(-1px);box-shadow:0 10px 22px -8px rgba(29,91,255,.6)}
header#topbar.site-header .sh-lang{border:1px solid var(--hd-line)!important;background:#F7F9FE!important;padding:3px;gap:2px;margin:0 12px 0 0!important;border-radius:999px!important}
header#topbar.site-header .sh-lang a{border-radius:999px;padding:8px 11px!important;color:var(--hd-ink)!important;font:700 12.5px/1 'Poppins',sans-serif!important}
header#topbar.site-header .sh-lang a[aria-current="true"]{background:var(--hd-navy)!important;color:#fff!important;box-shadow:0 4px 10px -3px rgba(11,36,100,.5)}
header#topbar.site-header .sh-lang a:not([aria-current="true"]):hover{background:#fff!important;color:var(--hd-blue)!important}
header#topbar.site-header .sh-account{flex:0 0 auto!important;height:56px!important;min-width:0!important;padding:0 20px!important;gap:12px!important;margin:0 12px 0 0!important;border-radius:14px!important;
  border:1.5px solid var(--hd-navy)!important;background:#fff!important;color:var(--hd-navy)!important;font:600 16px/1 'Poppins',sans-serif!important;box-shadow:none!important;
  transition:background .2s,color .2s,transform .2s,box-shadow .2s!important}
header#topbar.site-header .sh-account svg{width:24px!important;height:24px!important;stroke-width:1.7}
header#topbar.site-header .sh-account:hover,header#topbar.site-header .sh-account:focus-visible{background:var(--hd-soft)!important;color:var(--hd-navy)!important;transform:translateY(-1px)}
header#topbar.site-header .sh-cta{height:58px!important;padding:0 24px 0 26px!important;gap:14px!important;border-radius:14px!important;
  background:linear-gradient(180deg,#123083 0%,var(--hd-navy) 55%,var(--hd-navy-2) 100%)!important;color:#fff!important;font:600 16px/1 'Poppins',sans-serif!important;
  box-shadow:0 14px 26px -12px rgba(11,36,100,.75),inset 0 1px 0 rgba(255,255,255,.14)!important;transition:transform .2s,box-shadow .2s,background .25s!important}
header#topbar.site-header .sh-cta svg{width:20px!important;height:20px!important;transition:transform .25s}
header#topbar.site-header .sh-cta:hover{background:linear-gradient(180deg,var(--hd-blue-2),var(--hd-blue))!important;transform:translateY(-2px);box-shadow:0 18px 30px -12px rgba(29,91,255,.8)!important}
header#topbar.site-header .sh-cta:hover svg{transform:translateX(3px)}
.site-header .sh-burger{width:50px!important;height:50px!important;border-radius:14px!important;border:1.5px solid var(--hd-line)!important;background:#fff!important;color:var(--hd-navy)!important;margin-left:10px}
.sh-lang-m{display:none!important}

/* ---------- Logo centré verticalement (style.css le passait en bloc) ---------- */
header#topbar.site-header .sh-brand{display:flex!important;align-items:center!important;height:auto!important;flex:0 1 auto!important;min-width:0}
header#topbar.site-header .sh-brand img{margin:auto 0!important;vertical-align:middle;width:auto!important;max-width:none!important;object-position:left center!important}
header#topbar.site-header>.sh-search,header#topbar.site-header>.sh-lang,header#topbar.site-header>.sh-account,header#topbar.site-header>.sh-cta,header#topbar.site-header>.sh-burger{flex-shrink:0!important}

/* ---------- Écrans moyens : tout tient sur une ligne ---------- */
@media (min-width:1301px){
  header#topbar.site-header nav{position:static!important;flex-direction:row!important;opacity:1!important;pointer-events:auto!important;transform:none!important;
    background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
  .site-header .sh-burger{display:none!important}
}

/* ---------- Tablette et mobile : menu déroulant en carte ---------- */
@media (max-width:1300px){
  :root{--hd-h:76px}
  header#topbar.site-header{padding:0 10px 0 18px!important}
  header#topbar.site-header .sh-brand{background:none;padding-right:8px!important;margin-right:auto!important}
  header#topbar.site-header .sh-brand img{height:44px!important}
  header#topbar.site-header nav{position:fixed!important;top:calc(var(--hd-top) + var(--hd-h) + 10px)!important;left:clamp(10px,1.3vw,24px)!important;right:clamp(10px,1.3vw,24px)!important;
    flex-direction:column!important;align-items:stretch!important;align-self:auto;max-height:calc(100vh - var(--hh) - 20px);overflow:auto;
    margin:0!important;padding:10px!important;border:1px solid var(--hd-line)!important;border-radius:20px!important;background:#fff!important;
    box-shadow:0 26px 54px -18px rgba(14,40,110,.30)!important}
  header#topbar.site-header nav:after{display:none}
  header#topbar.site-header nav > a{flex-direction:row;justify-content:flex-start;gap:14px;padding:14px 14px!important;font-size:16px!important;
    border-radius:14px!important;background:none;border-bottom:0!important}
  header#topbar.site-header nav > a + a{margin-top:2px}
  header#topbar.site-header nav > a:before{width:24px;height:24px}
  header#topbar.site-header nav > a:after{display:block!important;left:0!important;right:auto!important;top:12px!important;bottom:12px!important;width:4px!important;height:auto!important;transform:scaleY(0)!important}
  header#topbar.site-header nav > a[aria-current="page"]{background:var(--hd-soft)!important}
  header#topbar.site-header nav > a[aria-current="page"]:after{transform:scaleY(1)!important}
  header#topbar.site-header nav > a:hover{background:#F6F8FD!important}
  .sh-search{width:46px;height:46px;margin:0 8px 0 0}
  header#topbar.site-header .sh-account{height:48px!important;padding:0 16px!important;font-size:15px!important;margin-right:8px!important}
  header#topbar.site-header .sh-cta{height:50px!important;padding:0 18px!important;font-size:15px!important;margin-left:0!important}
}
/* tablette / mobile : bouton client en icône, « Devis » court */
@media (max-width:960px){
  header#topbar.site-header .sh-account{width:46px!important;height:46px!important;padding:0!important;justify-content:center}
  header#topbar.site-header .sh-account span{display:none!important}
}
@media (max-width:760px){
  header#topbar.site-header .sh-cta .long{display:none!important}header#topbar.site-header .sh-cta .short{display:inline!important}
  header#topbar.site-header .sh-cta{padding:0 16px!important;gap:8px!important}
}
@media (max-width:760px){
  header#topbar.site-header > .sh-lang{display:none!important}
  .sh-lang-m{display:flex!important;justify-content:center;margin:6px 4px 10px!important;align-self:center}
  header#topbar.site-header .sh-account{width:46px!important;height:46px!important;padding:0!important;justify-content:center;border-radius:13px!important}
  header#topbar.site-header .sh-account span{display:none!important}
}
@media (max-width:520px){
  :root{--hd-h:66px;--hd-top:8px}
  header#topbar.site-header{padding:0 8px 0 12px!important;border-radius:18px!important;left:8px!important;right:8px!important}
  header#topbar.site-header .sh-brand img{height:36px!important}
  .sh-search{width:40px;height:40px;margin-right:6px}.sh-search svg{width:19px;height:19px}
  header#topbar.site-header .sh-account{width:40px!important;height:40px!important;margin-right:6px!important;border-radius:11px!important}
  header#topbar.site-header .sh-account svg{width:20px!important;height:20px!important}
  header#topbar.site-header .sh-cta{height:40px!important;padding:0 12px!important;font-size:13px!important;border-radius:11px!important}
  .site-header .sh-burger{width:40px!important;height:40px!important;border-radius:11px!important;margin-left:6px}
  header#topbar.site-header nav{left:8px!important;right:8px!important}
}
@media (max-width:360px){header#topbar.site-header .sh-cta{display:none!important}}

/* ---------- Fenêtre de recherche ---------- */
.dz-sr{position:fixed;inset:0;z-index:2000;display:flex;justify-content:center;align-items:flex-start;padding:calc(var(--hh) + 6px) 14px 20px;
  background:rgba(8,22,58,.38);backdrop-filter:blur(4px);opacity:0;transition:opacity .2s}
.dz-sr.on{opacity:1}
.dz-sr-box{width:min(680px,100%);background:#fff;border-radius:22px;border:1px solid var(--hd-line);box-shadow:0 30px 70px -20px rgba(8,22,58,.45);overflow:hidden;
  transform:translateY(-8px);transition:transform .25s cubic-bezier(.2,.8,.2,1);font-family:'Poppins',system-ui,sans-serif}
.dz-sr.on .dz-sr-box{transform:none}
.dz-sr-f{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--hd-line)}
.dz-sr-f svg{width:22px;height:22px;color:var(--hd-blue);flex:0 0 auto}
.dz-sr-f input{flex:1;min-width:0;border:0;outline:0;font:500 17px/1.3 'Poppins',sans-serif;color:var(--hd-ink);background:transparent}
.dz-sr-f button{border:1px solid var(--hd-line);background:#F7F9FE;border-radius:9px;padding:6px 9px;font:600 12px/1 'Poppins',sans-serif;color:#5A6B8F;cursor:pointer}
.dz-sr-l{list-style:none;margin:0;padding:8px;max-height:min(60vh,460px);overflow:auto}
.dz-sr-l a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;color:var(--hd-ink);text-decoration:none}
.dz-sr-l a b{font-weight:600;font-size:15px}.dz-sr-l a small{display:block;color:#6A7894;font-size:12.5px;margin-top:2px}
.dz-sr-l a i{flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:var(--hd-soft);display:flex;align-items:center;justify-content:center;color:var(--hd-blue);font-style:normal}
.dz-sr-l a i svg{width:17px;height:17px}
.dz-sr-l a:hover,.dz-sr-l a.sel{background:var(--hd-soft)}.dz-sr-l a:hover b,.dz-sr-l a.sel b{color:var(--hd-blue)}
.dz-sr-e{padding:22px;text-align:center;color:#6A7894;font-size:14px}
header#topbar.site-header .sh-lang-m a{padding:8px 14px!important;border:0!important;font-size:13px!important;background:none}
header#topbar.site-header .sh-lang-m a:before,header#topbar.site-header .sh-lang-m a:after{display:none!important}

/* ---------- Paliers de largeur (mesurés sur le site en ligne) ---------- */
@media (min-width:1301px){header#topbar.site-header nav > a{padding:0 clamp(10px,.9vw,18px)!important}}
@media (min-width:1301px) and (max-width:1879px){
  header#topbar.site-header .sh-account{width:52px!important;padding:0!important;justify-content:center}
  header#topbar.site-header .sh-account span{display:none!important}
  header#topbar.site-header nav > a{padding:0 clamp(8px,.65vw,12px)!important;font-size:14px!important;gap:7px}
  header#topbar.site-header nav > a:before{width:24px;height:24px}
  header#topbar.site-header .sh-brand img{height:46px!important}
}
@media (min-width:1301px) and (max-width:1599px){
  :root{--hd-h:84px}
  header#topbar.site-header .sh-cta .long{display:none!important}header#topbar.site-header .sh-cta .short{display:inline!important}
  header#topbar.site-header .sh-cta{height:50px!important;padding:0 18px!important;gap:10px!important;font-size:15px!important}
  header#topbar.site-header nav > a{padding:0 clamp(5px,.5vw,8px)!important;font-size:13px!important}
  header#topbar.site-header nav > a:before{width:22px;height:22px}
  header#topbar.site-header .sh-brand{padding-right:14px!important}
  header#topbar.site-header .sh-brand img{height:42px!important}
  .sh-search{width:46px;height:46px;margin:0 10px!important}
  header#topbar.site-header .sh-lang{margin-right:10px!important}
  header#topbar.site-header .sh-account{width:48px!important;height:48px!important;margin-right:10px!important}
}
/* filet de sécurité : site.js ajoute .sh-compact si le contenu dépasse encore */
@media (min-width:1301px){
  header#topbar.site-header.sh-compact .sh-account{width:46px!important;height:46px!important;padding:0!important;justify-content:center}
  header#topbar.site-header.sh-compact .sh-account span{display:none!important}
  header#topbar.site-header.sh-compact .sh-cta .long{display:none!important}header#topbar.site-header.sh-compact .sh-cta .short{display:inline!important}
  header#topbar.site-header.sh-compact .sh-cta{padding:0 16px!important}
  header#topbar.site-header.sh-compact nav > a{padding:0 5px!important;font-size:12.5px!important}
  header#topbar.site-header.sh-compact .sh-search{margin:0 8px!important}
}
