/* Fidélité responsive. Exclusivement smartphones : desktop préservé. */
#cms-mobile-hero,.cms-mobile-footer-accordions,.cms-mobile-game-picker{display:none}
@media(max-width:780px){
 html{scroll-padding-top:72px;-webkit-text-size-adjust:100%}
 body,main{min-width:0;overflow-x:clip}
 main .container,#siteFooter .e1-footer-shell{width:min(calc(100% - 28px),680px);margin-inline:auto}
 main .section{padding-block:35px}
 main .page-hero{padding-block:28px 15px}
 main h1{font-size:clamp(27px,7.5vw,39px);line-height:1.12;overflow-wrap:break-word}
 main h2{font-size:clamp(22px,6.2vw,30px);line-height:1.17;overflow-wrap:break-word}
 main h3{font-size:clamp(18px,5vw,22px)}
 main p{font-size:14px;line-height:1.57}
 main .eyebrow{font-size:10px;letter-spacing:.06em;max-width:100%;white-space:normal}
 main .section-title{margin-bottom:20px}
 main .actions{gap:10px;margin-top:18px}
 main .actions>.btn,main .actions>button{min-height:44px;padding:11px 15px;font-size:13px}
 main .grid,main .game-grid,main .loyalty-split,main .demo-layout,main .e1-journey-grid{grid-template-columns:minmax(0,1fr)}
 main .glass,main .game-card{padding:19px;border-radius:18px;min-width:0}
 main .e1-demo-showcase{padding-top:14px}
 main .e1-demo-showcase-grid{display:block}
 main .e1-demo-showcase-card{min-height:0;margin:0;padding:14px;border-radius:18px}
 main .e1-demo-showcase-card[hidden]{display:none!important}
 main .e1-demo-showcase-card .e1-game-preview{max-height:220px}
 main .e1-demo-showcase-copy{gap:8px}
 main .e1-demo-showcase-copy p{font-size:13px}
 main .e1-demo-showcase-notice{margin-top:16px;padding:18px;border-radius:18px}
 .cms-mobile-game-picker{display:flex;flex-direction:column;gap:8px;margin:10px 0 16px;padding:13px;border:1px solid #66d0fd60;border-radius:16px;background:linear-gradient(120deg,#14345ec7,#251649bf)}
 .cms-mobile-game-picker label{font-size:12px;font-weight:800;color:#c6eaff}
 .cms-mobile-game-picker select{width:100%;min-height:47px;padding:10px 14px;color:#fff;background:#112346;border:1px solid #7bc5fa80;border-radius:12px;font-size:16px;font-weight:700}
 main .e1-game-switcher{display:none!important}
 main .e1-integrated-game-page{padding-top:22px}
 main .e1-integrated-game-shell,main #e1-embedded-game{width:100%;max-width:100%;min-width:0;overflow:hidden}
 main .e1-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 main .e1-icon-filters{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
 main .e1-icon-filter{white-space:nowrap;flex:0 0 auto}
 main input,main select,main textarea{max-width:100%;font-size:16px}
 main .e1-doc-shots{grid-template-columns:repeat(2,minmax(0,1fr))}
 main .e1-icons-home-collections{grid-template-columns:repeat(2,minmax(0,1fr))}
 #cms-mobile-hero{
  display:block;order:-1;width:100%;padding:19px 12px 22px;
  background:radial-gradient(ellipse 75% 53% at 48% 20%,#123d87a8,transparent 83%),linear-gradient(140deg,#050a1d,#141030 75%,#080f27);
  border-bottom:1px solid #6a86e450;text-align:center;overflow:hidden;
 }
 #cms-mobile-hero .cms-mobile-hero-brand{
  display:block;width:min(80%,310px);height:auto;max-height:160px;object-fit:contain;margin:0 auto 17px;
  filter:drop-shadow(0 0 13px #458dff55);
 }
 #cms-mobile-hero .cms-mobile-hero-games{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 auto 18px;max-width:550px}
 #cms-mobile-hero .cms-mobile-hero-games a{display:flex;flex-direction:column;gap:5px;min-width:0;padding:4px;border:1px solid #6d8efc7a;border-radius:10px;background:linear-gradient(160deg,#202453,#070d2c);box-shadow:0 0 10px #377af43c;text-decoration:none}
 #cms-mobile-hero .cms-mobile-hero-games img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:7px}
 #cms-mobile-hero .cms-mobile-hero-games small{display:flex;align-items:center;justify-content:center;min-height:26px;font-size:clamp(7px,1.9vw,10px);font-weight:800;line-height:1.12;color:#eaf8ff;overflow-wrap:anywhere}
 #cms-mobile-hero p{max-width:530px;margin:0 auto;font-size:clamp(14px,4.15vw,19px);line-height:1.3;font-weight:850;font-style:italic;color:white;text-shadow:0 0 11px #8d6bff91}
 #cms-mobile-hero p::after{content:'';display:block;width:76%;height:2px;margin:13px auto 0;background:linear-gradient(90deg,transparent,#2dcfff,#f035e3,transparent);box-shadow:0 0 10px #488fff}
 #cms-mobile-hero a:focus-visible{outline:2px solid #9aeaff;outline-offset:3px}
 #approvedHero{display:none!important}
 #siteFooter .e1-footer-top{display:block}
 #siteFooter .e1-footer-top>nav.e1-footer-col{display:none!important}
 #siteFooter .cms-mobile-footer-accordions{display:flex;flex-direction:column;gap:9px;margin-top:18px}
 #siteFooter .cms-mobile-footer-section{border:1px solid #77c5fc45;border-radius:13px;background:#12244894;overflow:hidden}
 #siteFooter .cms-mobile-footer-section summary{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:13px 15px;list-style:none;font-size:14px;font-weight:800;color:#effaff;cursor:pointer}
 #siteFooter .cms-mobile-footer-section summary::-webkit-details-marker{display:none}
 #siteFooter .cms-mobile-footer-section summary::after{content:'+';font-size:23px;color:#79d9ff}
 #siteFooter .cms-mobile-footer-section[open] summary::after{content:'−'}
 #siteFooter .cms-mobile-footer-links{display:flex;flex-direction:column;gap:2px;padding:0 12px 12px}
 #siteFooter .cms-mobile-footer-links a{display:flex;align-items:center;min-height:40px;padding:8px 10px;border-radius:9px;font-size:13px;color:#c8dff5}
 #siteFooter .e1-footer-brand p{font-size:13px;line-height:1.5}
 #siteFooter .e1-payment-logos{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
 #siteFooter .e1-footer-bottom{display:flex;flex-direction:column;gap:7px;text-align:center;font-size:11px}
}
@media(max-width:380px){
 main .container{width:calc(100% - 24px)}
 main .actions{flex-direction:column}
 main .actions .btn{width:100%}
 main .e1-doc-shots{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.cms-mobile-game-picker *,#siteFooter .cms-mobile-footer-section *{animation:none!important;transition:none!important}}
@media(max-width:780px){
 body>#mobileHeader{order:-3;flex:0 0 auto}
 body>#cms-mobile-hero{order:-2;flex:0 0 auto}
}
/* The home banner is never shown on secondary mobile routes. */
#cms-mobile-hero[hidden]{display:none!important}
@media(max-width:780px){
 /* Avoid forcing downloads for below-fold images until scrolled into view. */
 main img[loading="lazy"]{content-visibility:auto}
 main .e1-demo-showcase-copy .btn{min-height:44px}
 #siteFooter .e1-footer-brand{max-width:100%;min-width:0}
 #siteFooter .e1-footer-brand img{max-width:100%;height:auto}
}

/* Vitrine smartphone: réduire les répétitions visuelles sans toucher aux routes desktop. */
@media(max-width:780px){
 main .loyalty-proof-strip,main .loyalty-experiences{display:none!important}
 main .e1-first-actions{padding-block:16px}
 main .e1-first-actions .container{display:flex;flex-direction:column;gap:12px}
 main .e1-first-actions .actions{margin-top:0}
 main .e1-icons-home-card{display:block;padding:18px}
 main .e1-icons-home-collections{display:none}
 main .loyalty-preview{display:none}
 main .loyalty-advantages .loyalty-split{grid-template-columns:minmax(0,1fr)}
 main .loyalty-final-cta{padding-top:22px}
 main .loyalty-cta-card{padding:20px}
 main .loyalty-hero{display:none!important}
 main .e1-icon-gallery .e1-collection-section{content-visibility:auto;contain-intrinsic-size:auto 400px}
 main .e1-icon-grid{gap:9px}
 main .e1-icon-tile{min-height:105px}
 main .e1-doc-chapter{padding:16px}
 main .e1-demo-showcase-head p{max-width:38ch}
 #cms-mobile-hero .cms-mobile-hero-brand{width:min(85%,310px)}
 #cms-mobile-hero .cms-mobile-hero-games a{overflow:hidden}
}

/* Bandeau mobile sélectionné : visuel réel, boutons actifs superposés.
   La barre desktop et les composants hors smartphone restent inchangés. */
@media(max-width:780px){
 #mobileHeader.e1-phone-header{
  height:0!important;min-height:0!important;
  position:relative!important;top:auto!important;z-index:160!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
 }
 #mobileHeader::after{display:none!important}
 #mobileHeader .e1-phone-bar{
  position:absolute;top:0;left:0;right:0;height:auto!important;
  display:flex!important;align-items:flex-start;justify-content:space-between;
  padding:clamp(12px,3.6vw,20px) 3.8% 0!important;
  pointer-events:none;z-index:180;
 }
 #mobileHeader .e1-phone-identity{display:none!important}
 #mobileHeader .e1-phone-toggle,#mobileHeader .e1-phone-account{
  display:block!important;width:clamp(43px,11vw,58px)!important;
  height:clamp(43px,11vw,58px)!important;
  min-width:43px!important;opacity:0!important;
  pointer-events:auto!important;border:0!important;background:transparent!important;
  padding:0!important;box-shadow:none!important;
 }
 #mobileHeader .e1-phone-toggle:focus-visible,#mobileHeader .e1-phone-account:focus-visible{
  opacity:.72!important;outline:3px solid #fff!important;outline-offset:2px
 }
 #cms-mobile-hero{
  display:block!important;position:relative;width:100%;
  padding:0!important;margin:0!important;line-height:0;
  background:#080d25!important;border:0!important;overflow:hidden;
 }
 #cms-mobile-hero .cms-mobile-approved-art{
  display:block;width:100%;height:auto;aspect-ratio:3/4;
  object-fit:cover;filter:none;box-shadow:none;
 }
 #cms-mobile-hero .cms-mobile-art-hotspots{
  position:absolute;inset:0;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;
  gap:0;padding-top:48%;height:79%;
 }
 #cms-mobile-hero .cms-mobile-art-hotspots a{
  display:block;width:100%;height:100%;background:transparent;
  border:0;border-radius:4px;min-width:0;overflow:hidden;
 }
 #cms-mobile-hero .cms-mobile-art-hotspots a:focus-visible{
  outline:2px solid #b2f6ff;outline-offset:-3px;background:rgba(110,207,255,.08)
 }
 #cms-mobile-hero[hidden]{display:none!important}
}

/* Le message de souscription est masqué sur mobile uniquement. */
@media(max-width:780px){main .e1-offer-card > p.note{display:none!important}}


/* Tunnel de commande : réutiliser la barre mobile officielle du header.php,
   sans le grand visuel réservé aux pages de présentation. */
@media(max-width:780px){
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #cms-mobile-hero{display:none!important}
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader.e1-phone-header{
  display:block!important;height:62px!important;min-height:62px!important;
  position:sticky!important;top:0!important;z-index:170!important;
  background:linear-gradient(115deg,#081629,#10142c 68%,#1b1436)!important;
  border-bottom:1px solid rgba(110,202,248,.46)!important;
  box-shadow:0 5px 20px rgba(0,0,0,.28)!important
 }
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader::after{display:block!important}
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader .e1-phone-bar{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  display:grid!important;grid-template-columns:46px minmax(0,1fr) 65px!important;
  height:62px!important;align-items:center!important;justify-content:initial!important;
  gap:5px;padding:0 10px!important;pointer-events:auto!important
 }
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader .e1-phone-identity{display:flex!important}
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader .e1-phone-toggle,
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader .e1-phone-account{
  display:grid!important;opacity:1!important;pointer-events:auto!important;
  width:44px!important;height:44px!important;min-width:0!important;
  border:1px solid rgba(122,198,241,.47)!important;
  background:linear-gradient(145deg,rgba(37,79,131,.64),rgba(55,39,105,.55))!important;
  padding:0!important;box-shadow:inset 0 1px rgba(255,255,255,.12)!important
 }
 body:is(.e1-order-layout-view,.fidelite-tarifs,.customer-login-body) #mobileHeader .e1-phone-account{width:65px!important}
}

/* If a direct hash route is opened, do not flash the homepage artwork before the SPA loads. */
html.cms-no-mobile-home-hero #cms-mobile-hero{display:none!important}

/* Keep mobile navigation space stable for direct deep-links into checkout. */
@media (max-width:780px){ html.cms-no-mobile-home-hero #mobileHeader.e1-phone-header{height:62px!important;min-height:62px!important} }
