:root{--cs-blue:#07589f;--cs-blue-dark:#064b89;--cs-orange:#ff5317;--cs-ink:#071a35;--cs-line:#e5eaf0;--cs-bg:#f5f8fc}
body{color:var(--cs-ink);background:var(--cs-bg)}
#header{background:#fff;box-shadow:0 2px 10px rgba(15,48,83,.08)}
#header .header-banner{margin:0}

/* Bandeau bleu supérieur */
.cs-trustbar{background:linear-gradient(90deg,#064f91,#075fa9);color:#fff;font-size:14px;line-height:1.2}
.cs-trustbar-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.cs-trust-items,.cs-contact-items{display:flex;align-items:center;gap:28px;white-space:nowrap}
.cs-contact-items a,.cs-contact-items a:hover,.cs-contact-items *{color:#fff!important;text-decoration:none!important}
.cs-nav1 .contact-link{margin:0!important;padding:0!important}
.cs-nav1 .contact-link a{font-size:0}
.cs-nav1 .contact-link a:before{content:"Besoin d'aide ? ";font-size:14px}
.cs-nav1 .contact-link a[href^="tel:"]{font-size:14px}

/* Grille principale : logo | recherche | actions ; menu dessous */
.cs-header-top{padding:0!important;background:#fff!important}
.cs-header-container{position:relative}
.cs-main-grid{display:grid;grid-template-columns:265px minmax(360px,1fr) auto;grid-template-rows:94px 48px;align-items:center;column-gap:24px;position:relative}
.cs-logo{grid-column:1;grid-row:1;display:flex;align-items:center;height:94px}
.cs-logo h1{margin:0}
#header .cs-logo img.logo{width:auto!important;max-width:250px!important;max-height:76px!important;height:auto!important}
.cs-displaytop{display:contents!important}

/* Recherche au centre */
.cs-main-grid .search-widget{grid-column:2;grid-row:1;position:relative!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;align-self:center}
.cs-main-grid .search-widget form{position:relative;width:100%;margin:0}
.cs-main-grid .search-widget input[type=text],.cs-main-grid .search-widget input[type=search]{height:52px!important;width:100%!important;border:1px solid #d4deea!important;border-radius:8px!important;background:#fff!important;padding:0 58px 0 18px!important;font-size:15px!important;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.cs-main-grid .search-widget button{right:14px!important;top:50%!important;transform:translateY(-50%);bottom:auto!important;background:transparent!important;color:#061b38!important}

/* Actions compte, panier, module photo */
.cs-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:410px}
.cs-actions>*{float:none!important;margin:0!important}
.cs-actions .user-info,.cs-actions .blockcart{height:auto!important;margin:0!important;padding:0 9px!important;background:transparent!important;text-align:center}
.cs-actions .user-info a,.cs-actions .blockcart a{color:var(--cs-ink)!important;text-decoration:none!important}
.cs-actions .material-icons{display:block;font-size:30px!important;margin:0 auto 2px!important;color:var(--cs-ink)!important}
.cs-actions .blockcart .header{margin:0!important}
.cs-actions .csp-entry{order:99;margin-left:8px!important}
.cs-actions .csp-open{min-width:248px!important;min-height:62px!important;border-radius:8px!important;padding:10px 18px!important;justify-content:flex-start!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;box-shadow:none!important}
.cs-actions .csp-open strong{font-size:0!important;line-height:1.12!important}
.cs-actions .csp-open strong:before{content:"Je ne connais pas ma clé";display:block;font-size:14px;font-weight:700}
.cs-actions .csp-open strong:after{content:"Envoyez une photo";display:block;font-size:18px;font-weight:800;margin-top:3px}
.cs-actions .csp-camera{width:32px;height:23px}

/* Menu sur une ligne distincte */
.cs-main-grid .menu,.cs-main-grid #_desktop_top_menu{grid-column:1 / -1;grid-row:2;position:relative!important;float:none!important;width:100%!important;margin:0!important;align-self:stretch;display:flex!important;align-items:center;justify-content:center;border-top:1px solid var(--cs-line)}
#header .top-menu{margin:0!important;display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:nowrap}
#header .top-menu>li{float:none!important;display:block!important;margin:0!important}
#header .top-menu>li>a{display:block!important;padding:15px 22px 14px!important;color:#071a35!important;font-size:14px!important;font-weight:700!important;line-height:18px!important;text-transform:none!important;white-space:nowrap}
#header .top-menu>li>a:hover{color:#075fa9!important;background:#f5f9fd}
#top-menu ul.sub-menu,.top-menu .popover.sub-menu{display:none!important}

/* Nettoyage des styles Classic qui créaient les grands blancs */
#header .header-top>.container>.row{margin:0}
#header .header-nav{margin:0!important;border:0!important;max-height:none!important}
#wrapper{padding-top:22px;background:var(--cs-bg)}
.carousel{border-radius:10px;overflow:hidden;box-shadow:0 8px 25px rgba(14,52,89,.08)}
.products-section-title{color:var(--cs-ink)!important;font-weight:700!important}
.product-miniature .thumbnail-container{border-radius:10px;overflow:hidden;border:1px solid #e2e8ef;box-shadow:0 4px 14px rgba(14,52,89,.05)}
.btn-primary,.btn-primary:hover{background:var(--cs-orange);border-color:var(--cs-orange)}

/* Tablette : compacter les actions */
@media (min-width:768px) and (max-width:1199px){
 .cs-main-grid{grid-template-columns:190px minmax(260px,1fr) auto;column-gap:14px}
 #header .cs-logo img.logo{max-width:180px!important}
 .cs-actions{min-width:300px;gap:5px}
 .cs-actions .csp-open{min-width:190px!important;padding:9px 12px!important}
 .cs-actions .csp-open strong:before{font-size:12px}.cs-actions .csp-open strong:after{font-size:15px}
 #header .top-menu>li>a{padding-left:11px!important;padding-right:11px!important;font-size:12px!important}
 .cs-trust-items{gap:12px}.cs-contact-items{gap:12px}
}

/* Mobile */
@media(max-width:767px){
 .cs-trustbar{display:none!important}
 #header .header-nav{height:64px!important;background:#fff!important;border-bottom:1px solid #e7edf3!important}
 #header .header-nav .mobile{height:64px;display:flex;align-items:center;justify-content:space-between}
 #header .header-nav .top-logo{position:static!important;margin:0 auto!important}
 #header .header-nav .top-logo img{max-height:48px!important;width:auto!important}
 .cs-header-top{padding:0!important}
 .cs-main-grid{display:block!important}
 .cs-logo,.cs-actions{display:none!important}
 .cs-displaytop{display:block!important}
 .cs-main-grid .search-widget{display:block!important;width:calc(100% - 24px)!important;margin:10px 12px!important}
 .cs-main-grid .search-widget input[type=text],.cs-main-grid .search-widget input[type=search]{height:46px!important}
 .cs-main-grid .menu,.cs-main-grid #_desktop_top_menu{display:none!important}
 #wrapper{padding-top:12px}
 .csp-mobile-entry{display:block!important}
}


/* V4.1 — header réellement pleine largeur sur desktop */
@media (min-width:1200px){
  #header .cs-trustbar-inner,
  #header .cs-header-container{
    width:100%!important;
    max-width:none!important;
    padding-left:42px!important;
    padding-right:42px!important;
  }
  #header .cs-main-grid{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:280px minmax(420px,1fr) auto;
    column-gap:28px;
  }
  #header .cs-logo{justify-content:flex-start!important;}
  #header .cs-main-grid .menu,
  #header .cs-main-grid #_desktop_top_menu{width:100%!important;}
  #header .top-menu{width:100%!important;justify-content:center!important;}
}
@media (min-width:1600px){
  #header .cs-trustbar-inner,
  #header .cs-header-container{padding-left:64px!important;padding-right:64px!important;}
}

/* V4.3 — slots explicites : recherche | compte | panier | photo */
@media (min-width:768px){
 #header .cs-header-container{width:100%!important;max-width:none!important;padding:0 3.2vw!important;}
 #header .cs-main-row{height:104px;display:grid!important;grid-template-columns:minmax(220px,270px) minmax(330px,1fr) 105px 95px minmax(235px,270px);gap:18px;align-items:center;border-bottom:1px solid #e5eaf0;}
 #header .cs-logo{display:flex!important;align-items:center!important;height:auto!important;}
 #header .cs-logo h1{margin:0!important;}
 #header .cs-logo img.logo{width:auto!important;max-width:250px!important;max-height:76px!important;height:auto!important;}
 #header .cs-search-slot{min-width:0;position:relative;}
 #header .cs-search-slot .search-widget{position:relative!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;}
 #header .cs-search-slot .search-widget form{width:100%!important;margin:0!important;position:relative!important;}
 #header .cs-search-slot .search-widget input[type=text],#header .cs-search-slot .search-widget input[type=search]{width:100%!important;height:52px!important;border:1px solid #d4deea!important;border-radius:8px!important;background:#fff!important;padding:0 55px 0 18px!important;font-size:15px!important;box-shadow:none!important;}
 #header .cs-search-slot .search-widget button{position:absolute!important;right:12px!important;left:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;background:transparent!important;border:0!important;color:#071a35!important;}
 #header .cs-search-slot .search-widget button i{font-size:28px!important;}
 #header .cs-account-slot,#header .cs-cart-slot{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;}
 #header .cs-account-slot .user-info,#header .cs-cart-slot .blockcart{margin:0!important;padding:0!important;background:transparent!important;height:auto!important;float:none!important;}
 #header .cs-account-slot a,#header .cs-cart-slot a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;color:#071a35!important;text-decoration:none!important;font-size:14px!important;white-space:nowrap;}
 #header .cs-account-slot .material-icons,#header .cs-cart-slot .material-icons{font-size:30px!important;line-height:32px!important;margin:0 0 3px!important;color:#071a35!important;}
 #header .cs-cart-slot .blockcart .header{margin:0!important;}
 #header .cs-photo-slot{display:flex;align-items:center;justify-content:flex-end;}
 #header .cs-photo-slot .csp-entry{margin:0!important;display:block!important;width:100%;}
 #header .cs-photo-slot .csp-open{width:100%!important;min-width:0!important;min-height:64px!important;border-radius:8px!important;padding:9px 14px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:11px!important;}
 #header .cs-photo-slot .csp-open strong{font-size:0!important;line-height:1.1!important;color:#fff!important;}
 #header .cs-photo-slot .csp-open strong:before{content:"Je ne connais pas ma clé";display:block;font-size:14px;font-weight:700;white-space:nowrap;}
 #header .cs-photo-slot .csp-open strong:after{content:"Envoyez une photo";display:block;font-size:18px;font-weight:800;margin-top:4px;white-space:nowrap;}
 #header .cs-photo-slot .csp-camera{flex:0 0 auto!important;width:34px!important;height:25px!important;}
 #header .cs-menu-row{height:50px;display:flex!important;align-items:center;justify-content:center;}
 #header .cs-menu-row .menu,#header .cs-menu-row #_desktop_top_menu{width:100%!important;margin:0!important;position:static!important;float:none!important;}
 #header .cs-menu-row .top-menu{display:flex!important;align-items:center;justify-content:center;flex-wrap:nowrap;margin:0!important;}
 #header .cs-menu-row .top-menu>li{float:none!important;margin:0!important;}
 #header .cs-menu-row .top-menu>li>a{padding:16px 20px!important;font-size:14px!important;font-weight:700!important;color:#071a35!important;white-space:nowrap;}
 /* displayTop complet sert uniquement de réserve aux modules non ciblés; masquer les 2 modules déjà rendus */
 #header .cs-fallback-hooks{display:none!important;}
}
@media (min-width:768px) and (max-width:1199px){
 #header .cs-main-row{grid-template-columns:180px minmax(240px,1fr) 85px 80px 195px;gap:8px;}
 #header .cs-logo img.logo{max-width:175px!important;}
 #header .cs-photo-slot .csp-open strong:before{font-size:11px!important} #header .cs-photo-slot .csp-open strong:after{font-size:14px!important}
 #header .cs-menu-row .top-menu>li>a{padding-left:9px!important;padding-right:9px!important;font-size:12px!important;}
}


/* V4.4 — widgets natifs rendus directement + bouton photo relié au modal V3.6 */
@media (min-width:768px){
 #header .cs-main-row{height:104px!important;display:grid!important;grid-template-columns:minmax(220px,270px) minmax(360px,1fr) 110px 105px minmax(250px,285px)!important;gap:18px!important;align-items:center!important;border-bottom:1px solid #e5eaf0!important;}
 #header .cs-search-slot{display:block!important;min-width:0!important;}
 #header .cs-search-slot .search-widget{display:block!important;position:relative!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;}
 #header .cs-search-slot .search-widget form{display:block!important;width:100%!important;position:relative!important;margin:0!important;}
 #header .cs-search-slot input[type=text],#header .cs-search-slot input[type=search]{display:block!important;width:100%!important;height:52px!important;border:1px solid #d4deea!important;border-radius:8px!important;padding:0 54px 0 18px!important;background:#fff!important;font-size:15px!important;}
 #header .cs-search-slot button{position:absolute!important;right:12px!important;left:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;border:0!important;background:transparent!important;color:#071a35!important;}
 #header .cs-account-slot,#header .cs-cart-slot{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:0!important;}
 #header .cs-account-slot .user-info,#header .cs-cart-slot .blockcart{display:block!important;float:none!important;margin:0!important;padding:0!important;background:transparent!important;height:auto!important;width:auto!important;}
 #header .cs-account-slot a,#header .cs-cart-slot a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#071a35!important;text-decoration:none!important;font-size:14px!important;line-height:18px!important;white-space:nowrap!important;}
 #header .cs-account-slot .material-icons,#header .cs-cart-slot .material-icons{display:block!important;font-size:30px!important;line-height:32px!important;margin:0 0 3px!important;color:#071a35!important;}
 #header .cs-cart-slot .blockcart .header{margin:0!important;}
 #header .cs-photo-slot{display:flex!important;align-items:center!important;justify-content:flex-end!important;}
 #header .cs-photo-direct{width:100%!important;min-height:64px!important;border:0!important;border-radius:8px!important;padding:9px 15px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;cursor:pointer!important;box-shadow:none!important;}
 #header .cs-photo-icon{position:relative;display:block;width:34px;height:24px;border-radius:4px;background:#fff;color:transparent;flex:0 0 34px;}
 #header .cs-photo-icon:before{content:"";position:absolute;left:9px;top:5px;width:14px;height:14px;border:3px solid #ff5317;border-radius:50%;box-sizing:border-box;}
 #header .cs-photo-icon:after{content:"";position:absolute;left:9px;top:-4px;width:16px;height:7px;background:#fff;border-radius:3px 3px 0 0;}
 #header .cs-photo-copy{display:block;text-align:left;line-height:1.05;}
 #header .cs-photo-copy strong{display:block!important;color:#fff!important;font-size:14px!important;font-weight:700!important;white-space:nowrap!important;}
 #header .cs-photo-copy b{display:block!important;color:#fff!important;font-size:18px!important;font-weight:800!important;margin-top:4px!important;white-space:nowrap!important;}
 #header .cs-menu-row{height:50px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
 #header .cs-menu-row .menu,#header .cs-menu-row #_desktop_top_menu{display:block!important;width:100%!important;position:static!important;float:none!important;margin:0!important;}
}
@media (min-width:768px) and (max-width:1199px){
 #header .cs-main-row{grid-template-columns:180px minmax(240px,1fr) 88px 82px 205px!important;gap:8px!important;}
 #header .cs-photo-copy strong{font-size:11px!important} #header .cs-photo-copy b{font-size:14px!important}
}

/* V4.5 — correction recherche réelle (ps_searchbar = .search-widgets) + bouton photo sans doublon */
@media (min-width:768px){
  #header .cs-main-row{grid-template-columns:minmax(220px,270px) minmax(520px,1fr) 110px 105px minmax(250px,285px)!important;}
  #header .cs-search-slot{width:100%!important;min-width:0!important;display:block!important;}
  #header .cs-search-slot .search-widgets,
  #header .cs-search-slot #search_widget{display:block!important;position:relative!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
  #header .cs-search-slot .search-widgets form,
  #header .cs-search-slot #search_widget form{display:block!important;position:relative!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
  #header .cs-search-slot .search-widgets form input[type=text],
  #header .cs-search-slot #search_widget form input[type=text]{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:52px!important;margin:0!important;padding:0 58px 0 18px!important;border:1px solid #d4deea!important;border-radius:8px!important;background:#fff!important;font-size:15px!important;color:#071a35!important;box-shadow:0 1px 4px rgba(0,0,0,.03)!important;}
  #header .cs-search-slot .search-widgets form button,
  #header .cs-search-slot #search_widget form button{position:absolute!important;z-index:2!important;right:14px!important;left:auto!important;top:50%!important;bottom:auto!important;width:34px!important;height:34px!important;margin:0!important;padding:0!important;transform:translateY(-50%)!important;border:0!important;background:transparent!important;color:#071a35!important;}
  #header .cs-search-slot .search-widgets form button i,
  #header .cs-search-slot #search_widget form button i{font-size:28px!important;line-height:34px!important;}
  #header .cs-search-slot .search-widgets form input::placeholder,
  #header .cs-search-slot #search_widget form input::placeholder{color:#69788a!important;opacity:1!important;}
  #header .cs-photo-direct.csp-open strong:before,
  #header .cs-photo-direct.csp-open strong:after{content:none!important;display:none!important;}
  #header .cs-photo-direct .cs-photo-copy strong{display:block!important;font-size:14px!important;line-height:1.05!important;color:#fff!important;font-weight:700!important;}
  #header .cs-photo-direct .cs-photo-copy b{display:block!important;font-size:18px!important;line-height:1.05!important;color:#fff!important;font-weight:800!important;margin-top:4px!important;}
}
@media (min-width:768px) and (max-width:1199px){
  #header .cs-main-row{grid-template-columns:180px minmax(300px,1fr) 88px 82px 205px!important;}
}

/* V4.6 — finalisation recherche / compte / panier */
@media (min-width:768px){
  /* Le X sous la recherche est le bouton de fermeture du champ natif. */
  #header .cs-search-slot .search-widgets form > i,
  #header .cs-search-slot #search_widget form > i,
  #header .cs-search-slot .search-widgets .clear,
  #header .cs-search-slot #search_widget .clear,
  #header .cs-search-slot .search-widgets [data-search-controller="clear"],
  #header .cs-search-slot #search_widget [data-search-controller="clear"]{display:none!important;visibility:hidden!important;}

  /* Libellé compte conforme à la maquette. */
  #header .cs-account-slot .user-info a{font-size:0!important;}
  #header .cs-account-slot .user-info a:after{content:"Mon compte";display:block;font-size:14px;line-height:18px;color:#071a35;font-weight:400;margin-top:2px;}
  #header .cs-account-slot .user-info .material-icons{font-size:30px!important;}

  /* Panier : garder le widget natif visible, avec icône + compteur + libellé. */
  #header .cs-cart-slot{display:flex!important;visibility:visible!important;opacity:1!important;}
  #header .cs-cart-slot .blockcart{display:block!important;visibility:visible!important;opacity:1!important;min-width:78px!important;}
  #header .cs-cart-slot .blockcart .header{display:block!important;visibility:visible!important;opacity:1!important;}
  #header .cs-cart-slot .blockcart .header a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;font-size:0!important;color:#071a35!important;}
  #header .cs-cart-slot .blockcart .header a:after{content:"Panier";display:block;font-size:14px;line-height:18px;color:#071a35;margin-top:2px;}
  #header .cs-cart-slot .blockcart .header .shopping-cart{display:block!important;font-size:31px!important;line-height:32px!important;margin:0!important;}
  #header .cs-cart-slot .blockcart .cart-products-count{display:block!important;position:absolute!important;transform:translate(18px,-7px)!important;min-width:19px!important;height:19px!important;padding:0 5px!important;border-radius:10px!important;background:#075fa9!important;color:#fff!important;font-size:11px!important;line-height:19px!important;text-align:center!important;}
  #header .cs-cart-slot .blockcart .hidden-sm-down{display:none!important;}
}

/* V4.8 — alignement final du header avec vrais modules panier + photo */
@media (min-width:768px){
  #header .cs-main-row{
    display:grid!important;
    grid-template-columns:minmax(225px,260px) minmax(420px,1fr) 105px 95px minmax(255px,285px)!important;
    gap:18px!important;
    align-items:center!important;
    min-height:96px!important;
  }
  #header .cs-logo{grid-column:1!important;}
  #header .cs-search-slot{grid-column:2!important;min-width:0!important;}
  #header .cs-account-slot{grid-column:3!important;display:flex!important;justify-content:center!important;align-items:center!important;}
  #header .cs-cart-slot{grid-column:4!important;display:flex!important;justify-content:center!important;align-items:center!important;position:relative!important;min-width:80px!important;}
  #header .cs-photo-slot{grid-column:5!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;min-width:255px!important;}

  /* Panier natif */
  #header .cs-cart-slot .blockcart{display:block!important;visibility:visible!important;opacity:1!important;background:transparent!important;margin:0!important;padding:0!important;min-width:80px!important;height:auto!important;}
  #header .cs-cart-slot .blockcart .header{margin:0!important;display:block!important;}
  #header .cs-cart-slot .blockcart .header>a{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#071a35!important;text-decoration:none!important;font-size:0!important;min-width:72px!important;}
  #header .cs-cart-slot .blockcart .shopping-cart{display:block!important;font-size:31px!important;line-height:32px!important;margin:0!important;color:#071a35!important;}
  #header .cs-cart-slot .blockcart .cart-products-count{display:block!important;position:absolute!important;top:-5px!important;left:42px!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:12px!important;background:#075fa9!important;color:#fff!important;font-size:11px!important;line-height:20px!important;text-align:center!important;}
  #header .cs-cart-slot .blockcart .header>a:after{content:"Panier";display:block!important;font-size:14px!important;line-height:18px!important;color:#071a35!important;margin-top:3px!important;}
  #header .cs-cart-slot .blockcart .hidden-sm-down{display:none!important;}

  /* Vrai bouton Clé Service Photo V3.6 : son modal reste dans le DOM, donc le JS fonctionne. */
  #header .cs-photo-slot .csp-entry{display:block!important;margin:0!important;width:100%!important;}
  #header .cs-photo-slot .csp-open{width:100%!important;min-width:255px!important;min-height:62px!important;margin:0!important;padding:9px 16px!important;border:0!important;border-radius:8px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;}
  #header .cs-photo-slot .csp-open strong{font-size:0!important;line-height:1!important;color:#fff!important;}
  #header .cs-photo-slot .csp-open strong:before{content:"Je ne connais pas ma clé"!important;display:block!important;font-size:14px!important;line-height:16px!important;font-weight:700!important;white-space:nowrap!important;}
  #header .cs-photo-slot .csp-open strong:after{content:"Envoyez une photo"!important;display:block!important;font-size:18px!important;line-height:20px!important;font-weight:800!important;margin-top:2px!important;white-space:nowrap!important;}
  #header .cs-photo-slot .csp-camera{display:block!important;width:34px!important;height:26px!important;flex:0 0 34px!important;}
}
@media (min-width:768px) and (max-width:1199px){
  #header .cs-main-row{grid-template-columns:180px minmax(280px,1fr) 88px 80px 205px!important;gap:8px!important;}
  #header .cs-photo-slot{min-width:205px!important;}
  #header .cs-photo-slot .csp-open{min-width:205px!important;padding-left:10px!important;padding-right:10px!important;}
  #header .cs-photo-slot .csp-open strong:before{font-size:12px!important;}
  #header .cs-photo-slot .csp-open strong:after{font-size:15px!important;}
}

/* V4.9 — bouton photo depuis le vrai displayNav2 + panier visuel maquette */
@media (min-width:992px){
  /* Dans le slot photo on appelle displayNav2 complet, mais on ne conserve visuellement que Clé Service Photo. */
  #header .cs-photo-slot > *:not(.csp-entry):not(.csp-modal){display:none!important;}
  #header .cs-photo-slot .user-info,
  #header .cs-photo-slot .blockcart,
  #header .cs-photo-slot .language-selector-wrapper,
  #header .cs-photo-slot .currency-selector{display:none!important;}
  #header .cs-photo-slot .csp-entry{display:flex!important;width:100%!important;margin:0!important;align-items:center!important;justify-content:flex-end!important;}
  #header .cs-photo-slot .csp-open{display:flex!important;width:100%!important;min-width:255px!important;min-height:62px!important;margin:0!important;padding:9px 16px!important;border:0!important;border-radius:8px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;align-items:center!important;justify-content:center!important;gap:12px!important;box-shadow:none!important;}
  #header .cs-photo-slot .csp-open strong{font-size:0!important;color:#fff!important;line-height:1!important;}
  #header .cs-photo-slot .csp-open strong:before{content:"Je ne connais pas ma clé"!important;display:block!important;font-size:14px!important;line-height:16px!important;font-weight:700!important;white-space:nowrap!important;}
  #header .cs-photo-slot .csp-open strong:after{content:"Envoyez une photo"!important;display:block!important;font-size:18px!important;line-height:20px!important;font-weight:800!important;margin-top:2px!important;white-space:nowrap!important;}
  #header .cs-photo-slot .csp-camera{display:block!important;width:34px!important;height:26px!important;flex:0 0 34px!important;}
  /* Panier : vrai module PrestaShop, habillé comme la maquette. */
  #header .cs-cart-slot{display:flex!important;align-items:center!important;justify-content:center!important;min-width:78px!important;}
  #header .cs-cart-slot .blockcart{display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;height:auto!important;padding:0!important;margin:0!important;}
  #header .cs-cart-slot .blockcart .header{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:70px!important;margin:0!important;padding:0!important;line-height:1!important;}
  #header .cs-cart-slot .blockcart .header > a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;color:#071d3d!important;}
  #header .cs-cart-slot .blockcart .material-icons.shopping-cart{font-size:34px!important;line-height:34px!important;color:#071d3d!important;margin:0!important;}
  #header .cs-cart-slot .blockcart .cart-products-count{position:absolute!important;top:-6px!important;right:7px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:999px!important;background:#0867c9!important;color:#fff!important;font-size:12px!important;font-weight:800!important;box-sizing:border-box!important;}
  #header .cs-cart-slot .blockcart .header:after{content:"Panier";display:block!important;margin-top:5px!important;color:#071d3d!important;font-size:15px!important;font-weight:500!important;line-height:18px!important;}
  #header .cs-cart-slot .blockcart .cart-products-count + span{display:none!important;}
}


/* V4.10 — header final : panier natif + bouton photo direct vers le modal V3.6 */
@media (min-width:768px){
  /* Le module photo V3.6 garde son modal dans displayAfterBodyOpeningTag ; on masque seulement son bouton flottant. */
  body > .csp-mobile-entry{display:none!important;}
  #header .cs-photo-slot > *{display:flex!important;}
  #header .cs-photo-direct{width:100%!important;min-width:255px!important;min-height:62px!important;margin:0!important;padding:9px 16px!important;border:0!important;border-radius:8px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;align-items:center!important;justify-content:center!important;gap:12px!important;cursor:pointer!important;box-shadow:none!important;}
  #header .cs-photo-direct .cs-photo-copy{display:block!important;text-align:left!important;line-height:1.05!important;}
  #header .cs-photo-direct .cs-photo-copy strong{display:block!important;color:#fff!important;font-size:14px!important;line-height:16px!important;font-weight:700!important;white-space:nowrap!important;}
  #header .cs-photo-direct .cs-photo-copy b{display:block!important;color:#fff!important;font-size:18px!important;line-height:20px!important;font-weight:800!important;margin-top:2px!important;white-space:nowrap!important;}
  #header .cs-photo-direct .cs-photo-icon{position:relative!important;display:block!important;width:34px!important;height:25px!important;border-radius:4px!important;background:#fff!important;flex:0 0 34px!important;}
  #header .cs-photo-direct .cs-photo-icon:before{content:""!important;position:absolute!important;left:9px!important;top:5px!important;width:14px!important;height:14px!important;border:3px solid #ff5317!important;border-radius:50%!important;box-sizing:border-box!important;}
  #header .cs-photo-direct .cs-photo-icon:after{content:""!important;position:absolute!important;left:9px!important;top:-4px!important;width:16px!important;height:7px!important;background:#fff!important;border-radius:3px 3px 0 0!important;}
}
@media (min-width:768px) and (max-width:1199px){
  #header .cs-photo-direct{min-width:205px!important;padding-left:10px!important;padding-right:10px!important;}
  #header .cs-photo-direct .cs-photo-copy strong{font-size:12px!important;}
  #header .cs-photo-direct .cs-photo-copy b{font-size:15px!important;}
}


/* V4.13 — bouton photo propre : aucun texte généré par .csp-open */
#header .cs-photo-direct strong:before,
#header .cs-photo-direct strong:after{content:none!important;display:none!important;}
#header .cs-photo-direct .cs-photo-copy strong{font-size:14px!important;display:block!important;}
#header .cs-photo-direct .cs-photo-copy b{font-size:18px!important;display:block!important;}

/* V4.14 — bouton photo relié directement au modal du header */
#header .cs-photo-direct.csp-open .cs-photo-copy strong:before,#header .cs-photo-direct.csp-open .cs-photo-copy strong:after,#header .cs-photo-direct.csp-open strong:before,#header .cs-photo-direct.csp-open strong:after{content:none!important;display:none!important;}
#header .cs-photo-direct.csp-open .cs-photo-copy strong{display:block!important;font-size:14px!important;line-height:16px!important;color:#fff!important;}
#header .cs-photo-direct.csp-open .cs-photo-copy b{display:block!important;font-size:18px!important;line-height:20px!important;color:#fff!important;margin-top:2px!important;}
#header .cs-photo-direct.csp-open{display:flex!important;width:100%!important;min-width:255px!important;min-height:62px!important;padding:9px 16px!important;border:0!important;border-radius:8px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;align-items:center!important;justify-content:center!important;gap:12px!important;cursor:pointer!important;}


/* V4.17 — header mobile natif : logo, compte, panier, menu + bouton photo */
@media (max-width:767px){
  #header .cs-mobile-header-v417{display:block!important;height:auto!important;min-height:0!important;background:#fff!important;border-bottom:1px solid #e7edf3!important;padding:0!important;}
  #header .cs-mobile-container-v417{width:100%!important;max-width:none!important;padding:8px 12px 10px!important;}
  #header .cs-mobile-main-v417{height:62px!important;min-height:62px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
  #header .cs-mobile-logo-v417{position:static!important;margin:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;}
  #header .cs-mobile-logo-v417 img{display:block!important;width:auto!important;height:auto!important;max-width:210px!important;max-height:54px!important;margin:0!important;}
  #header .cs-mobile-actions-v417{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:13px!important;flex:0 0 auto!important;}
  #header .cs-mobile-account-v417,#header .cs-mobile-cart-v417{display:flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;}
  #header .cs-mobile-account-v417 .user-info,#header .cs-mobile-cart-v417 .blockcart{margin:0!important;padding:0!important;background:transparent!important;height:auto!important;float:none!important;}
  #header .cs-mobile-account-v417 a,#header .cs-mobile-cart-v417 a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#071d3d!important;text-decoration:none!important;font-size:11px!important;line-height:13px!important;}
  #header .cs-mobile-account-v417 .material-icons,#header .cs-mobile-cart-v417 .material-icons{font-size:27px!important;line-height:28px!important;color:#071d3d!important;margin:0!important;}
  #header .cs-mobile-cart-v417 .blockcart .header{position:relative!important;margin:0!important;}
  #header .cs-mobile-cart-v417 .cart-products-count{position:absolute!important;top:-6px!important;right:-8px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border-radius:10px!important;background:#0867c9!important;color:#fff!important;font-size:11px!important;font-weight:800!important;}
  #header .cs-mobile-menu-v417{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:42px!important;color:#071d3d!important;cursor:pointer!important;font-size:11px!important;line-height:13px!important;}
  #header .cs-mobile-menu-v417 .material-icons{font-size:29px!important;line-height:29px!important;margin:0!important;color:#071d3d!important;}
  #header .cs-mobile-menu-v417 span{display:block!important;margin-top:1px!important;}
  #header .cs-photo-mobile-v417{display:flex!important;width:100%!important;min-height:52px!important;margin:8px 0 0!important;padding:8px 14px!important;border:0!important;border-radius:9px!important;background:linear-gradient(135deg,#ff5b19,#ff4810)!important;color:#fff!important;align-items:center!important;justify-content:center!important;gap:11px!important;cursor:pointer!important;box-shadow:none!important;}
  #header .cs-photo-mobile-camera-v417{position:relative!important;display:block!important;width:32px!important;height:24px!important;flex:0 0 32px!important;border-radius:4px!important;background:#fff!important;}
  #header .cs-photo-mobile-camera-v417:before{content:""!important;position:absolute!important;left:8px!important;top:-5px!important;width:16px!important;height:7px!important;border-radius:3px 3px 0 0!important;background:#fff!important;}
  #header .cs-photo-mobile-camera-v417:after{content:""!important;position:absolute!important;left:9px!important;top:5px!important;width:12px!important;height:12px!important;border:3px solid #ff5317!important;border-radius:50%!important;box-sizing:border-box!important;}
  #header .cs-photo-mobile-copy-v417{display:block!important;text-align:left!important;line-height:1.05!important;}
  #header .cs-photo-mobile-copy-v417 strong{display:block!important;color:#fff!important;font-size:12px!important;line-height:14px!important;font-weight:700!important;white-space:nowrap!important;}
  #header .cs-photo-mobile-copy-v417 b{display:block!important;color:#fff!important;font-size:17px!important;line-height:19px!important;font-weight:800!important;margin-top:2px!important;white-space:nowrap!important;}
  body > .csp-mobile-entry{display:none!important;}
  #csp-modal-header.csp-modal{padding:0!important;align-items:flex-start!important;background:rgba(8,25,43,.75)!important;}
  #csp-modal-header.csp-modal.is-open,#csp-modal-header.csp-modal.open,#csp-modal-header.csp-modal.show{display:block!important;}
  #csp-modal-header .csp-dialog{width:100%!important;max-width:none!important;min-height:100vh!important;border-radius:0!important;margin:0!important;}
  #csp-modal-header .csp-columns{grid-template-columns:1fr!important;}
  #csp-modal-header .csp-photo-grid{grid-template-columns:1fr!important;}
}
@media (max-width:420px){
  #header .cs-mobile-container-v417{padding-left:8px!important;padding-right:8px!important;}
  #header .cs-mobile-logo-v417 img{max-width:180px!important;max-height:48px!important;}
  #header .cs-mobile-actions-v417{gap:7px!important;}
  #header .cs-mobile-account-v417 a,#header .cs-mobile-cart-v417 a,#header .cs-mobile-menu-v417{font-size:10px!important;}
}


/* V4.19 — bouton photo garanti PC + mobile, modal natif V3.6 */
@media (min-width:768px){
  #header .cs-photo-slot{display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:flex-end!important;min-width:250px!important;}
  #header .cs-photo-direct{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;z-index:20!important;}
}
@media (max-width:767px){
  #header .cs-photo-mobile-v417{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}
/* Le petit bouton natif V3.6 reste masqué, mais son modal et sa confirmation restent présents. */
body > .csp-mobile-entry{display:none!important;}
#csp-modal-mobile{z-index:999999!important;}

/* V4.20 — correction definitive du bouton photo PC/mobile avec module Clé Service Photo V3.7 */
/* Le bouton flottant/natif du module V3.7 est masqué partout : le formulaire reste présent. */
.csp-mobile-entry,
#cleservice-photo-mobile.csp-mobile-entry,
#footer .csp-mobile-entry,
body .csp-mobile-entry {display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}

/* PC : le bouton du header du thème doit toujours être visible. */
@media (min-width:768px){
  #header .cs-main-row.hidden-sm-down{display:grid!important;visibility:visible!important;opacity:1!important;}
  #header .cs-photo-slot{display:flex!important;visibility:visible!important;opacity:1!important;min-width:205px!important;overflow:visible!important;}
  #header .cs-photo-slot .cs-photo-direct{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;min-width:205px!important;position:relative!important;z-index:50!important;}
}

/* Mobile : un seul bouton, celui placé sous le header. */
@media (max-width:767px){
  #header .cs-photo-mobile-v417{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}

/* Le modal V3.7 reste disponible quel que soit l'endroit où displayFooter est rendu. */
#csp-modal-mobile{z-index:999999!important;}

/* V4.21 — correctif PC uniquement. Neutralise l'ancienne règle V4.9 qui masquait le bouton direct. */
@media (min-width:768px){
  #header .cs-photo-slot > button.cs-photo-direct.csp-open{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    width:100%!important;
    min-width:205px!important;
    min-height:62px!important;
    position:relative!important;
    z-index:100!important;
  }
}
