/* Shared public shell. Loaded last to keep the three pages consistent. */
:root{--shell-max:1600px;--header-height:88px}
body:has(dialog[open]){overflow:hidden}
.miamm-header.topbar{position:sticky;top:0;z-index:1500;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-height:var(--header-height);padding:14px 0;background:var(--bg);border-bottom:0}
.miamm-header .brand-group{display:flex;align-items:center;flex:0 1 auto;flex-wrap:nowrap;gap:16px;padding:0;min-width:0;max-height:none}
.miamm-header .brand{gap:7px;flex-shrink:0}
.miamm-header .brand-word{font:800 2.65rem/1 var(--display);letter-spacing:-.085em}
.miamm-header .brand-star{font-size:2.5rem;line-height:1}
.miamm-header .brand-star img{width:36px;height:36px}
.miamm-header .brand-baseline{display:none}
.miamm-header .zone-switcher{margin:0;min-width:0;flex:0 1 auto}
.miamm-header .brand-zone{margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px 15px;border-radius:15px;background:#e7efdf;color:#275f3a;font-size:.875rem;max-width:230px}
.miamm-header .brand-zone{
  gap: 10px;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size:.85rem;
  
  
}

#headerZoneLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.miamm-header .zone-switcher-chevron{flex-shrink:0}
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.desktop-action,.header-pro{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 12px;text-decoration:none;background:transparent;border-radius:12px;font-size:14px;font-weight:650;white-space:nowrap}
.desktop-action:hover,.desktop-action[aria-current=page]{background:white}
.header-pro{background:var(--ink);color:white;padding-inline:16px}
.header-pro:hover{background:#404337}
.nav-count{display:grid;place-items:center;min-width:21px;height:21px;border-radius:7px;background:var(--lilac);color:var(--purple);font-size:11px}
.header-customer-space{position:relative;display:inline-grid;place-items:center;width:46px;height:46px;min-width:46px;padding:0;border:1px solid #dedfd6;border-radius:50%;background:#f8f7f2;color:#6f716a;transition:background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}
.header-customer-space:hover{background:#fff;transform:translateY(-1px)}
.header-customer-space:focus-visible{outline:3px solid #25272224;outline-offset:3px}
.header-customer-space .icon{width:22px;height:22px}
.header-customer-space.has-active-order{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 0 0 4px #ffe2d8}
.header-customer-space.has-active-order:hover{background:var(--orange-dark);border-color:var(--orange-dark)}
.header-customer-space.has-active-order[aria-expanded=true]{box-shadow:0 0 0 5px #ffd8ca}
.miamm-header .header-cart{position:relative;padding:10px 13px;border-radius:16px;min-width:46px;min-height:46px;justify-content:center;margin:0;background:#ede4ff;border:1px solid #d8c8f7}
.miamm-header .header-count{display:grid;place-items:center;position:absolute;right:-5px;top:-7px;background:var(--purple);color:white;border:2px solid var(--bg);border-radius:50%;min-width:21px;height:21px;font-size:10px;padding:0 4px}
.header-more{width:46px;height:46px;min-width:46px;display:none;align-items:center;justify-content:center;background:white;border:1px solid #e1e1da;border-radius:16px;color:var(--ink)}
.header-more>span{font-size:30px;line-height:1;letter-spacing:1px;font-weight:800}
.header-more[aria-expanded=true]{background:#ece9e1}
.header-more .icon{width:22px;height:22px}
.header-action-panel{flex-basis:100%;display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px;border-radius:22px;background:white;margin-top:4px;box-shadow:0 8px 30px #25272206}
.action-tile{min-height:116px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-decoration:none;border-radius:17px;padding:14px 8px;text-align:center;line-height:1.2;transition:filter .15s ease}
.action-tile:hover{filter:brightness(.97)}
.action-tile>.icon,.action-tile>[data-icon] .icon{width:28px;height:28px;margin-bottom:2px}
.action-tile strong{font-size:15px;font-weight:750;color:var(--ink)}
.action-tile small{font-size:13px;font-weight:400;color:var(--muted)}
.action-favorites{background:#fce7e7;color:#c9252c}
/* Commandes : version légère du panneau responsive. L’état actif reste signalé dans le header top. */
.action-orders{background:#fff0e9;color:var(--orange-dark);border:0;box-shadow:none}
.action-cart{background:#f0e9fe;color:var(--purple);position:relative}
/* Les actions principales gagnent un repère circulaire léger, comme des boutons posés sur la tuile. */
.action-favorites>[data-icon],
.action-orders>[data-icon],
.action-cart:not(.is-empty) .action-cart-icon,
.action-account .action-account-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;border-radius:50%;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.8);margin-bottom:2px}
.action-favorites>[data-icon] .icon,
.action-orders>[data-icon] .icon,
.action-cart:not(.is-empty) .action-cart-icon .icon,
.action-account .action-account-icon .icon{width:26px;height:26px;margin:0}
.action-cart.is-empty{background:#f7f6f1;color:#85877f;border:1px solid var(--line)}
.action-cart.is-empty .action-cart-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff0e9;color:var(--orange);margin-bottom:1px}
.action-cart.is-empty .action-cart-icon .icon{width:25px;height:25px;margin:0}
/* La tuile pro reprend le langage du CTA de l'accueil : blanche, typographique et avec flèche. */
.action-pro{background:#fff;color:var(--ink);border:1px solid var(--line);align-items:stretch;text-align:left;padding-inline:18px}
.action-pro:hover{filter:none;background:#f7f7f3}
.action-pro-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.action-pro strong{color:var(--ink);font-size:19px;line-height:1.05;letter-spacing:-.03em}
.action-pro small{color:var(--muted);text-align:left}
.action-pro-arrow{display:grid;place-items:center;flex:0 0 auto;color:var(--ink)}
.action-pro-arrow .icon{width:25px;height:25px;margin:0}
.action-account{background:#eaf4e6;color:#23643b;border:0}
.action-account .action-account-icon{color:#23643b}
.action-account .action-account-icon.is-connected{font-weight:600}
.action-account .header-account-initial{font:600 17px/1 var(--sans,system-ui,sans-serif)}
.header-track{display:flex;align-items:center;gap:7px;background:var(--orange);color:white;min-height:44px;padding:10px 14px;border-radius:14px;font-size:13px;font-weight:700;text-decoration:none}
.header-comptoir-tools{display:flex;align-items:center;gap:10px;margin-left:4px;min-width:0}
.header-comptoir-tools .location-pill{min-height:48px;max-width:340px;border-radius:16px;padding:10px 14px}
.header-location-row{display:flex;align-items:center;gap:10px;padding:1px 0 18px;min-width:0}
.header-location-row[hidden]{display:none!important}
.comptoir-location-row{display:none}
.location-pill{display:inline-flex;align-items:center;gap:9px;min-height:44px;border:1px solid #dedfd6;background:white;border-radius:30px;padding:9px 15px;font-size:14px;font-weight:700;max-width:65%;min-width:0}
.location-pill .icon{width:20px;height:20px}
.location-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.location-chevron .icon{width:15px;height:15px;transform:rotate(90deg);width: 18px;height: 18px;}
.header-city-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.fullscreen-btn{/**display:inline-grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border:1px solid #e1e1da;border-radius:16px;background:#f0f1eb;color:var(--ink);transition:background .16s ease,transform .16s ease;display:none!important;*/
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #f0f2e9;
  flex: 0 0 auto;
  display:none!important;
}
.fullscreen-btn:hover{background:#fff;transform:translateY(-1px)}
.fullscreen-btn .icon{width:20px;height:20px;display:block}
.fullscreen-exit-icon{display:none}
html:fullscreen .fullscreen-enter-icon{display:none}
html:fullscreen .fullscreen-exit-icon{display:inline-flex}
.comptoir-location-row .location-pill{flex:1 1 280px;max-width:340px;border-radius:16px;min-height:48px;padding:10px 14px}
.active-order-banner{margin:0 0 25px;padding:21px 23px;background:#fff4ef;border:1px solid #f8d9cc;border-radius:23px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1.1fr);gap:16px 28px}
.active-order-heading{display:flex;align-items:center;gap:11px;min-width:0}
.active-order-title{display:flex;flex-direction:column;min-width:0}
.active-order-title>small{font-size:10px;color:#76766d;font-weight:700;margin-bottom:3px;padding-left:42px}
.active-order-status-row{display:flex;align-items:center;gap:11px;min-width:0}
.active-order-icon{color:var(--orange);display:inline-flex;align-items:center;justify-content:center;flex:0 0 31px}.active-order-icon .icon{width:31px;height:31px}
.active-order-status-row>strong{font:750 clamp(20px,2.1vw,26px)/1.12 var(--display);letter-spacing:-.04em;min-width:0}
.active-order-title>span{font-size:13px;color:var(--muted);margin-top:4px;padding-left:42px}
.active-order-eta{margin-left:auto;text-align:right;flex-shrink:0;display:grid;gap:2px}
.active-order-eta>span{font-size:11px;color:var(--muted)}.active-order-eta>strong{font:750 19px/1.2 var(--display)}.active-order-eta>small{font-size:10px;color:var(--muted)}
.order-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;align-self:center}
.order-progress li{display:flex;position:relative;flex-direction:column;align-items:center;text-align:center;color:#85847e;gap:6px;padding:0 3px;min-width:0}
.order-progress li:not(:last-child):before{content:"";position:absolute;height:2px;background:#dedbd4;left:50%;width:100%;top:14px}
.order-progress li.done:before{background:#24844b}
.progress-dot{position:relative;z-index:1;width:30px;height:30px;display:grid;place-items:center;border:4px solid #fff4ef;box-shadow:0 0 0 1px #e5dfd7;border-radius:50%;background:#d5d3ce}
.progress-dot .icon{width:18px;height:18px}
.order-progress .done .progress-dot{background:#21834c;color:white;border-color:#21834c;box-shadow:none}
.order-progress .current .progress-dot{background:var(--orange);color:white;border-color:var(--orange);box-shadow:0 0 0 3px #ffe0d6}
.order-progress strong{font-size:11px;line-height:1.25;font-weight:600}
.order-progress small{font-size:10px;line-height:1.2;min-height:12px;color:var(--muted)}
.order-progress .done strong,.order-progress .current strong{color:var(--ink);font-weight:750}
.active-order-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.order-detail-link,.order-page-link{display:flex;align-items:center;gap:9px;background:#fff;border-radius:30px;padding:11px 15px;text-decoration:none;min-height:44px;font-size:13px;font-weight:650;white-space:nowrap}
.order-detail-link{min-width:0}
.order-detail-link>span{overflow:hidden;text-overflow:ellipsis}
.order-page-link{border:1px solid #eadfd8;color:var(--ink);padding-inline:16px}
.order-page-link:hover{background:#fffaf7}
.order-detail-link>.icon:last-child,.order-page-link>.icon:last-child{margin-left:auto;width:17px;height:17px;color:var(--muted)}
.order-page-link>.icon:first-child{width:18px;height:18px;color:var(--orange)}
.active-order-banner[data-status=ready]{background:#f0f6e8;border-color:#d8e8c9}.active-order-banner[data-status=ready] .active-order-icon{color:var(--green)}
.active-order-collapsible{position:sticky;top:calc(var(--header-height) + 8px);z-index:1450;max-height:0;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(-16px);margin-bottom:0;padding-top:0;padding-bottom:0;border-top-width:0;border-bottom-width:0;pointer-events:none;box-shadow:0 14px 36px #25272200;transition:max-height .34s cubic-bezier(.2,.8,.2,1),opacity .2s ease,transform .34s cubic-bezier(.2,.8,.2,1),margin-bottom .34s ease,padding-top .34s ease,padding-bottom .34s ease,border-width .34s ease,box-shadow .34s ease,visibility 0s linear .34s}
.active-order-collapsible.is-open{max-height:640px;opacity:1;visibility:visible;transform:translateY(0);margin-bottom:25px;padding-top:21px;padding-bottom:21px;border-top-width:1px;border-bottom-width:1px;pointer-events:auto;box-shadow:0 14px 36px #2527220d;transition:max-height .38s cubic-bezier(.2,.8,.2,1),opacity .22s ease,transform .38s cubic-bezier(.2,.8,.2,1),margin-bottom .38s ease,padding-top .38s ease,padding-bottom .38s ease,border-width .38s ease,box-shadow .38s ease,visibility 0s}
.shell-dialog{border:0;padding:0;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);border-radius:26px;background:#fff;color:var(--ink);box-shadow:0 20px 100px #25272235;overscroll-behavior:contain}
.shell-dialog::backdrop{background:#25272270;backdrop-filter:blur(4px)}
.shell-dialog-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 24px;background:white;border-bottom:1px solid var(--line);z-index:2}
.shell-dialog-head h2{font-size:25px}.shell-dialog-body{padding:24px}.shell-dialog-body>.btn{margin-top:12px}
.shell-field{display:grid;gap:8px;margin:22px 0;font-size:13px;font-weight:700}.shell-field input{min-height:48px;border:1px solid #d6dbce;border-radius:13px;padding:12px 14px;width:100%;background:white;color:var(--ink)}
.shell-note{padding:13px 15px;background:#fff5dc;border-radius:13px;font-size:12px;color:#745b26;margin:16px 0}
.shell-form-error{color:var(--danger);font-size:13px;margin:12px 0}.shell-form-error:empty{display:none}
.shell-check{display:flex;align-items:center;gap:10px;margin:17px 0;font-size:13px}.shell-check input{accent-color:var(--orange);width:18px;height:18px}
.shell-account{text-align:center;padding:8px}.shell-account>span{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 15px;background:var(--mint);border-radius:22px;color:var(--green)}.shell-account .icon{width:30px;height:30px}.shell-account p{color:var(--muted);font-size:14px;margin-top:8px}
.shell-city-results{display:grid;gap:7px}.shell-city-results button{display:flex;align-items:center;text-align:left;gap:12px;background:var(--bg);border:1px solid var(--line);border-radius:13px;padding:12px;min-height:58px}.shell-city-results button>span{flex:1}.shell-city-results strong,.shell-city-results small{display:block}.shell-city-results small{color:var(--muted);font-size:12px}
.shell-toast{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:4000;background:var(--ink);color:white;font-size:13px;padding:14px 19px;border-radius:14px;max-width:calc(100% - 28px);width:max-content;text-align:center}
.global-cart-dock{display:none}
.orders-shell{max-width:var(--shell-max);margin:auto;padding:0 30px}
.orders-page .wrap{max-width:none;padding:0}
.orders-page .miamm-header .brand {gap: 10px;}
.orders-page .active-order-banner{margin-bottom:10px}
.orders-page .hero{margin-top:10px}
.orders-page .aside{top:110px}
.orders-page #ordersApp{padding-bottom:24px}
.orders-page .art{display:inline-block;background:none;border-radius:0}
.orders-page .art>img{width:100%;height:100%;object-fit:contain}
.orders-page .art>.emoji{display:none}
.orders-page .icon{vertical-align:middle}
.orders-page .order-head>.grow{min-width:0}
.orders-page .order-items{margin:0}
.orders-page .btn.primary{background:var(--orange);border-color:var(--orange);color:white}.orders-page .btn.primary:hover{background:var(--orange-dark)}
.orders-page .message-meta,.orders-page .detail-line{overflow-wrap:anywhere}
.pro-page .pro-main{padding:35px 0 70px;max-width:1100px;margin:auto}.pro-page .pro-hero{background:var(--lilac);border-radius:30px;padding:clamp(25px,5vw,64px)}.pro-page .pro-hero h1{max-width:800px}.pro-page .pro-hero p{max-width:700px;margin:20px 0 26px;color:#574765}.pro-features{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:25px}.pro-features article{border:1px solid var(--line);border-radius:22px;background:white;padding:27px}.pro-features h2{font-size:23px;margin:15px 0}.pro-features p{color:var(--muted)}
@media(min-width:1800px){:root{--shell-max:1760px;--header-height:100px}.orders-shell{padding-inline:50px}.shell,.app{max-width:1760px!important;margin-inline:auto!important}.miamm-header .brand-word{font-size:3rem}.desktop-action{font-size:16px}.active-order-banner{padding:25px 32px}.active-order-title>strong{font-size:28px}.order-progress strong{font-size:13px}.action-tile{min-height:130px}.orders-page .layout{grid-template-columns:minmax(0,1fr) 340px;gap:36px}}
@media(max-width:1250px){.desktop-action{padding-inline:8px;font-size:13px}.miamm-header .brand-group{gap:10px}.header-actions{gap:7px}.miamm-header .brand-word{font-size:2.4rem}.header-pro{font-size:13px}.header-comptoir-tools{display:none}.comptoir-location-row{display:flex}}
@media(max-width:850px){.desktop-action,.header-pro{display:none}.header-more{display:flex}.header-action-panel:not([hidden]){display:grid}.miamm-header .header-cart-label{display:none}.active-order-banner{grid-template-columns:1fr}.active-order-heading{max-width:none}.order-progress{width:100%;max-width:600px;justify-self:center}.miamm-header .header-track{font-size:12px}}

@media(max-width:620px){
  .active-order-actions{grid-template-columns:1fr}
  .order-page-link{justify-content:flex-start}
}
@media(max-width:760px){:root{--header-height:74px}.miamm-header.topbar{padding:13px 0 9px;gap:8px;min-height:74px}.miamm-header .brand-group{flex:1;gap:10px}.miamm-header .brand-word{font-size:2.1rem}.miamm-header .brand-star{font-size:2.05rem}.miamm-header .brand-star img{width:30px;height:30px}.miamm-header .brand-zone{font-size:12px;min-height:40px;padding:10px 11px;border-radius:14px;max-width:190px;gap:7px}.header-actions{gap:8px;max-width:50%}.miamm-header .header-cart{width:42px;min-width:42px;height:42px;min-height:42px;padding:10px;border-radius:14px}.header-customer-space{width:42px;min-width:42px;height:42px}.header-more{width:42px;min-width:42px;height:42px;border-radius:14px}.header-actions .icon{width:21px;height:21px}.header-action-panel{gap:8px;padding:9px;border-radius:20px;margin-top:8px}.action-tile{min-height:107px;gap:5px;padding:11px 5px;border-radius:15px}.action-tile strong{font-size:12px;letter-spacing:-.02em}.action-tile small{font-size:11px;line-height:1.2}.action-tile>.icon,.action-tile>[data-icon] .icon{width:25px;height:25px}.header-location-row{padding:6px 0 16px;gap:8px}.location-pill{font-size:13px;gap:7px;min-height:42px;padding:9px 13px}.location-pill .icon{width:18px;height:18px}.comptoir-location-row .location-pill{min-height:44px;padding:9px 12px;max-width:none}.comptoir-location-row .fullscreen-btn{display:inline-grid;width:44px;height:44px;min-width:44px;border-radius:14px}.header-track{padding:10px;min-height:42px;border-radius:14px}.header-track>span:last-child{display:none}.active-order-banner{margin-bottom:22px;padding:17px 15px;gap:18px;border-radius:21px}.active-order-collapsible{margin-bottom:0;padding-top:0;padding-bottom:0}.active-order-collapsible.is-open{margin-bottom:22px;padding-top:17px;padding-bottom:17px;max-height:720px;top:calc(var(--header-height) + 6px)}.active-order-title>strong{font-size:23px}.active-order-title>span{font-size:12px}.active-order-icon .icon{width:27px;height:27px}.active-order-eta>strong{font-size:19px}.active-order-eta>span{font-size:10px}.active-order-heading{gap:8px}.active-order-eta{padding-left:7px}.order-progress{max-width:none}.order-detail-link{padding:10px 12px;font-size:12px}.order-detail-link .icon{width:18px;height:18px}.orders-shell{padding:0 16px}.shell-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;margin:0;max-height:calc(100dvh - 14px);border-radius:24px 24px 0 0}.shell-dialog-body{padding:22px 20px max(24px,env(safe-area-inset-bottom))}.shell-dialog-head{padding:18px 20px}.shell-dialog-head h2{font-size:23px}.global-cart-dock{display:flex;align-items:center;gap:10px;position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:1490;background:var(--orange);color:white;padding:15px 14px;min-height:73px;border-radius:20px;text-decoration:none;box-shadow:0 0 0 8px var(--bg),0 5px 30px #25272215}.dock-count{display:grid;place-items:center;min-width:30px;height:36px;background:#ffffff25;border-radius:10px;font-weight:700}.dock-copy{flex:1;min-width:0}.dock-copy strong{display:block;font-size:15px;line-height:1.2}.dock-copy small{display:block;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.dock-total{font-size:14px;white-space:nowrap}.global-cart-dock>.icon{width:21px;height:21px}.has-global-cart{padding-bottom:105px}.has-global-cart .shell-toast{bottom:110px}.orders-page .hero-right{display:none}.orders-page .hero{min-height:0;padding:25px 23px}.orders-page .hero h1{font-size:34px}.orders-page .aside{position:static}.orders-page .group-heading small{font-size:11px}.pro-features{grid-template-columns:1fr}.pro-page .pro-main{padding-top:10px}}
@media(max-width:540px){
  .action-favorites>[data-icon],.action-orders>[data-icon],.action-cart:not(.is-empty) .action-cart-icon,.action-account .action-account-icon{width:43px;height:43px;flex-basis:43px}
  .action-favorites>[data-icon] .icon,.action-orders>[data-icon] .icon,.action-cart:not(.is-empty) .action-cart-icon .icon,.action-account .action-account-icon .icon{width:24px;height:24px}
  .action-pro{padding-inline:15px}
  .action-pro strong{font-size:17px}
}
@media(max-width:390px){ .active-order-title>small,.active-order-title>span{padding-left:0} .miamm-header .brand-group{gap:7px}.miamm-header .brand-word{font-size:1.8rem}.miamm-header .brand-star{font-size:1.8rem}.miamm-header .brand-star img{width:26px;height:26px}.miamm-header .brand{gap:4px}.miamm-header .brand-zone{max-width:128px;font-size:11px;padding:9px;gap:4px}.header-actions{gap:6px}.header-more,.miamm-header .header-cart,.header-customer-space{width:38px;min-width:38px;height:40px;min-height:40px}.header-location-row{gap:6px}.location-pill{padding:9px 10px;font-size:12px}.comptoir-location-row .fullscreen-btn{width:40px;height:40px;min-width:40px}.comptoir-location-row .location-pill{min-height:40px}.active-order-title>strong{font-size:21px}.active-order-eta>strong{font-size:17px}.active-order-icon{display:none}.order-progress strong{font-size:10px}.action-tile strong{font-size:11px}.action-tile small{font-size:10px}}
@media(max-width:335px){.miamm-header .brand-zone{max-width:101px}.miamm-header .brand-word{font-size:1.65rem}.miamm-header .brand-star{/**display:none*/}.header-track{width:38px;padding:8px}.orders-page .card-tools{flex-wrap:wrap}}

/* ==========================================================
   HEADER MOBILE — priorité aux actions utiles
   - le plein écran reste un confort tablette/desktop ;
   - sous 520 px, la toque n'occupe la ligne que si une commande est active ;
   - le panier reste présent uniquement lorsqu'il existe déjà (géré par shell.js) ;
   - sous 400 px, le territoire passe sur sa propre ligne.
   ========================================================== */
@media(max-width:900px){
  .comptoir-location-row .fullscreen-btn{display:none}
}

@media(max-width:540px){
  .header-action-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-tile{min-height:102px}
}

@media(max-width:340px){
  .header-action-panel{grid-template-columns:1fr}
  .action-tile{min-height:66px;flex-direction:row;justify-content:flex-start;text-align:left;gap:10px;padding:11px 13px}
  .action-tile>[data-icon],.action-tile>.icon{flex:0 0 auto;margin:0}
  .action-tile strong{font-size:12px;white-space:nowrap}
  .action-tile small{flex:1;min-width:0;margin-left:auto;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px}
  .action-favorites>[data-icon],.action-orders>[data-icon],.action-cart:not(.is-empty) .action-cart-icon,.action-account .action-account-icon{width:36px;height:36px;flex-basis:36px;margin:0}
  .action-favorites>[data-icon] .icon,.action-orders>[data-icon] .icon,.action-cart:not(.is-empty) .action-cart-icon .icon,.action-account .action-account-icon .icon{width:21px;height:21px}
  .action-cart.is-empty .action-cart-icon{width:34px;height:34px;margin:0}
  .action-cart.is-empty .action-cart-icon .icon{width:21px;height:21px}
  .action-pro{justify-content:space-between;padding-inline:15px}
  .action-pro-head{width:auto;flex:1 1 auto}
  .action-pro strong{font-size:15px}
  .action-pro-arrow .icon{width:22px;height:22px}
}

@media(max-width:520px){
  .miamm-header.topbar{column-gap:6px;row-gap:7px}
  .miamm-header .brand-group{flex:1 1 auto;gap:7px;min-width:0}
  .miamm-header .brand{flex:0 0 auto;gap:4px}
  .miamm-header .brand-word{font-size:1.95rem}
  .miamm-header .brand-star{font-size:1.9rem}
  .miamm-header .brand-star img{width:28px;height:28px}
  .miamm-header .zone-switcher{flex:1 1 auto;min-width:0;margin:0}
  .miamm-header .brand-zone{width:100%;max-width:clamp(110px,31vw,155px);min-width:0;min-height:40px;padding:9px 10px;gap:6px;font-size:11.5px}
  .header-actions{flex:0 0 auto;max-width:none;gap:6px}
  .header-more,.miamm-header .header-cart,.header-customer-space{width:40px;min-width:40px;height:40px;min-height:40px}
  .header-actions .icon{width:20px;height:20px}
  .header-customer-space:not(.has-active-order){display:none}
}

@media(max-width:400px){
  .miamm-header.topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-auto-rows:auto;
    align-items:center;
    padding-top:11px;
    padding-bottom:10px;
  }
  .miamm-header .brand-group{display:contents}
  .miamm-header .brand{grid-column:1;grid-row:1;min-width:0;justify-self:start}
  .header-actions{grid-column:2;grid-row:1;justify-self:end}
  .miamm-header .zone-switcher{grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin:1px 0 0}
  .miamm-header .brand-zone{width:100%;max-width:none;min-height:42px;padding:9px 12px;border-radius:14px;font-size:12px}
  .header-action-panel{grid-column:1/-1;grid-row:3;width:100%;margin-top:1px}
  .header-location-row{padding-top:5px}
  .comptoir-location-row .location-pill{width:100%;max-width:none;flex:1 1 100%}
}

@media(max-width:335px){
  .miamm-header:has(#headerCustomerSpace:not([hidden])):has(#sharedHeaderCart:not([hidden])) .brand-word,
  .orders-page .miamm-header:has(.header-message-alert:not([hidden])):has(.header-account-identity:not([hidden])) .brand-word
  {font-size:1.65rem}
  .orders-page .miamm-header:has(.header-message-alert:not([hidden])):has(.header-account-identity:not([hidden])) .header-actions{
    gap: 2px;
  }	  
  .miamm-header .brand-star{/*display:none*/}
  .miamm-header .brand-zone{max-width:none}
  .header-more,.miamm-header .header-cart,.header-customer-space{width:38px;min-width:38px;height:38px;min-height:38px}
}
@media(max-width:280px){
  .miamm-header:has(#headerCustomerSpace:not([hidden])) .brand-word{font-size:1.65rem}
  .miamm-header:has(#sharedHeaderCart:not([hidden])) .brand-word{font-size:1.65rem}
  .orders-page .miamm-header:has(.header-message-alert:not([hidden])) .brand-word{font-size:1.65rem}
  .orders-page .miamm-header:has(.header-account-identity:not([hidden])) .brand-word{font-size:1.65rem}
}
@media(max-width:230px){
  .miamm-header .brand-word{font-size:1.65rem}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.header-more,.action-tile,.header-customer-space,.active-order-collapsible{transition:none}}
@media print{.miamm-header,.header-location-row,.active-order-banner,.global-cart-dock,.shell-dialog,.shell-toast{display:none!important}}

/* Public pro discovery reuses the existing form component. */
.pro-page .field{display:grid;gap:7px;font-size:13px;font-weight:650;margin:18px 0}.pro-page .field input,.pro-page .field select{width:100%;padding:12px;border:1px solid var(--line);background:white;border-radius:12px;min-height:46px}.pro-page .pro-goals{padding:0;border:0;margin:22px 0}.pro-page .pro-goals legend{font-weight:700;font-size:14px;margin-bottom:12px}.pro-page .goal{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--line);border-radius:14px;margin:8px 0}.pro-page .goal strong,.pro-page .goal small{display:block}.pro-page .goal small{font-size:12px;color:var(--muted);margin-top:4px}.pro-page .goal input{margin-top:5px;accent-color:var(--orange)}

/* Espace client — identité compacte dans le header des commandes. */
.header-account-identity{gap:10px;padding:3px 9px 3px 4px;background:transparent!important;border-radius:28px;min-height:50px}
.header-account-identity:hover{background:transparent!important}
.header-account-avatar{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;border-radius:50%;background:#e7f2df;color:#23643b}
.header-account-avatar .icon{width:22px;height:22px}
.header-account-avatar.is-connected{background:#e7f2df;color:#23643b;font-weight:500}
.header-account-initial{font:500 17px/1 var(--sans,system-ui,sans-serif)}

/* Compte client — reprise fidèle du prototype mes-commandes-messages.html. */
.shell-account-dialog{
  width:min(710px,calc(100% - 32px));
  max-height:calc(100dvh - 32px);
  overflow:auto;
  border-radius:26px;
  box-shadow:0 25px 100px #111a1433;
  font-size:15px;
  line-height:1.55;
}
.shell-account-dialog::backdrop{background:#25272280;backdrop-filter:blur(5px)}
.shell-account-dialog .shell-dialog-head{padding:21px 26px}
.shell-account-dialog .shell-dialog-head h2{font-size:25px;letter-spacing:-.035em}
.shell-account-dialog .shell-dialog-head .icon-btn{width:44px;height:44px;background:#f0f1eb}
.shell-account-dialog .shell-dialog-head .icon-btn:hover{background:#e5e7dc}
.shell-account-dialog .shell-dialog-body{padding:26px}
.shell-dialog-foot{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:17px 26px;background:white;border-top:1px solid var(--line)}
.shell-account-dialog .shell-dialog-foot>.btn{flex:1;min-height:46px;padding:11px 16px;border-radius:13px;font-size:15px;font-weight:700;line-height:1.3}
.shell-account-dialog .btn-primary{background:#c93616;border:1px solid #c93616;color:#fff}
.shell-account-dialog .btn-primary:hover:not(:disabled){background:#ae2e12;border-color:#ae2e12}
.shell-account-dialog .btn-outline{background:#fff;border:1px solid var(--line)}
.shell-account-intro{margin:0 0 20px;color:var(--muted);font-size:15px;line-height:1.55}
.shell-account-tabs{display:flex;gap:7px;padding:6px;background:var(--bg);border-radius:14px;margin-bottom:22px}
.shell-account-tabs button{flex:1;min-height:44px;padding:8px 12px;border-radius:10px;background:transparent;font-size:13px;font-weight:700;color:var(--ink)}
.shell-account-tabs button[aria-pressed=true]{background:#fff;box-shadow:0 2px 4px #2527220b}
.shell-account-form{display:block}
.shell-account-field{display:grid;gap:7px;margin-bottom:17px;font-size:13px;font-weight:600}
.shell-account-field input{width:100%;min-height:46px;padding:11px 13px;border:1px solid #d9ded0;border-radius:12px;background:#fff;color:var(--ink);font-size:15px}
.shell-account-field input:focus{outline:3px solid #cab7f2;outline-offset:2px;border-color:#d9ded0}
.shell-form-error{color:var(--danger);padding-top:8px;font-size:13px;margin:0}.shell-form-error:empty{display:none}
.shell-account-demo-note{margin:0;padding:14px 16px;border-radius:15px;background:#fff0bd;color:#765312;font-size:13px;line-height:1.55}
.shell-account-form + .shell-account-demo-note{margin-top:0}
.shell-account-divider{height:1px;background:var(--line);margin:24px 0}
.shell-account-backup h3,.shell-account-preferences h3{font:700 18px/1.15 var(--display);letter-spacing:-.035em;margin:22px 0 12px}
.shell-account-backup>p{font-size:13px;color:var(--muted);line-height:1.55;margin:0}
.shell-account-backup-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:15px}
.shell-account-backup-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 12px;border-radius:13px;font-size:13px;font-weight:700;line-height:1.3}
.shell-account-backup-actions .icon{width:21px;height:21px}
.shell-account-profile{display:flex;align-items:center;gap:12px;margin:0}
.shell-account-profile-avatar{display:grid;place-items:center;width:36px;height:36px;min-width:36px;border-radius:50%;background:var(--mint);color:var(--green);font:500 15px/1 var(--body,system-ui,sans-serif)}
.shell-account-profile h3{font:700 20px/1.1 var(--display);letter-spacing:-.035em;margin:0}
.shell-account-profile p{margin:3px 0 0;color:var(--muted);font-size:13px}
.shell-account-profile + .shell-account-demo-note{margin:20px 0}
.shell-account-preferences{margin-top:0}
.shell-account-preferences label{display:flex;align-items:flex-start;gap:9px;margin:16px 0;font-size:13px}
.shell-account-preferences input{width:19px;height:19px;accent-color:var(--orange);flex:0 0 auto;margin:1px 0 0}
.shell-account-connected{margin:12px 0 0;color:var(--green);font-size:13px}
.shell-account-import-note{margin-top:12px;color:var(--muted);font-size:13px}
.shell-account-confirm-dialog .shell-dialog-body p{font-size:15px}

@media(max-width:760px){
  .header-account-identity{min-height:42px;padding:1px 4px;gap:7px}
  .header-account-avatar{width:38px;height:38px;min-width:38px}
  .header-account-identity [data-account-label]{display:none}
}

/* Le prototype ne passe en bottom-sheet qu'en dessous de 580 px. */
@media(min-width:581px) and (max-width:760px){
  .shell-account-dialog{
    position:fixed;
    inset:0;
    width:min(710px,calc(100% - 32px));
    max-width:none;
    max-height:calc(100dvh - 32px);
    margin:auto;
    border-radius:26px;
  }
  .shell-account-dialog .shell-dialog-head{padding:21px 26px}
  .shell-account-dialog .shell-dialog-head h2{font-size:25px}
  .shell-account-dialog .shell-dialog-body{padding:26px}
  .shell-account-dialog .shell-dialog-foot{padding:17px 26px;gap:9px}
  .shell-account-dialog .shell-dialog-foot>.btn{min-height:46px;font-size:15px;padding:11px 16px}
}

@media(max-width:580px){
  .shell-account-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - 10px);margin:0;border-radius:24px 24px 0 0}
  .shell-account-dialog .shell-dialog-head{padding:18px 20px}
  .shell-account-dialog .shell-dialog-head h2{font-size:23px}
  .shell-account-dialog .shell-dialog-body{padding:21px 20px}
  .shell-account-dialog .shell-dialog-foot{padding:14px 20px max(14px,env(safe-area-inset-bottom));gap:9px}
  .shell-account-dialog .shell-dialog-foot>.btn{font-size:13px;min-height:46px;padding:11px 12px}
}


/* Espace Commandes — header dédié : commandes actives, messages et identité. */
.orders-page .brand-star{
  display:inline-grid;
  place-items:center;
  color:var(--orange);
  font-size:0;
  transform:none;
}
.orders-page .brand-star .icon{width:35px;height:35px;margin:0}
.orders-current-link{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 2px 4px #25272205;
}
.orders-current-link .icon{width:21px;height:21px;color:var(--orange-dark)}
.orders-current-link .nav-count{margin-left:1px}
.header-message-alert{margin:0;white-space:nowrap}
.orders-page #activeOrdersHeading{scroll-margin-top:calc(var(--header-height) + 18px)}

@media(max-width:850px){
  /* En responsive, la liste « En cours » rejoint le panneau …,
     tandis que messages + identité restent directement accessibles. */
  .orders-page .header-account-identity{display:inline-flex;min-height:42px;padding:1px 3px;gap:0}
  .orders-page .header-account-identity [data-account-label]{display:none}
  .orders-page .header-account-avatar{width:42px;height:42px;min-width:42px}
  .orders-page .header-message-alert:not([hidden]){
    display:inline-flex;
    position:relative;
    width:42px;
    height:42px;
    min-width:42px;
    min-height:42px;
    padding:8px;
    border-radius:50%;
  }
  .orders-page .header-message-alert .message-alert-label{display:none}
  .orders-page .header-message-alert .message-count{
    position:absolute;
    right:-5px;
    top:-6px;
    min-width:21px;
    height:21px;
    padding:0 4px;
    border:2px solid var(--bg);
    font-size:10px;
  }
  .orders-page .header-message-alert .icon{width:20px;height:20px}
}

@media(max-width:520px){
  .orders-page .brand-star .icon{width:30px;height:30px}
  .orders-page .header-account-avatar{width:40px;height:40px;min-width:40px}
  .orders-page .header-message-alert:not([hidden]){width:40px;height:40px;min-width:40px;min-height:40px}
}

/* ==========================================================
   COMPTOIR — header responsive / localisation
   2026-09-25
   - garde la localisation dans le header jusqu'à 1020 px ;
   - masque le plein écran dès 1250 px ;
   - pousse le chevron de ville à droite ;
   - sous 400 px, le sélecteur de territoire fermé affiche une croix.
   ========================================================== */

.location-chevron{
  margin-left:auto;
}

/* Le bouton plein écran ne fait plus partie du header/tablette sous 1250 px. */
@media(max-width:1250px){
  .header-comptoir-tools .fullscreen-btn,
  .comptoir-location-row .fullscreen-btn{
    display:none!important;
  }
}

/*
 * Entre 1021 et 1250 px, on annule le basculement historique à 1250 px :
 * ville + actions restent sur la même ligne dans le header.
 */
@media(max-width:1250px) and (min-width:1021px){
  .header-comptoir-tools{
    display:flex;
  }
  .comptoir-location-row{
    display:none;
  }
}

/* À partir de 1020 px, la localisation retrouve sa ligne dédiée. */
@media(max-width:1020px){
  .header-comptoir-tools{
    display:none;
  }
  .comptoir-location-row{
    display:flex;
  }
}

/*
 * Très petit écran : territoire fermé = croix ;
 * territoire ouvert = chevron existant orienté vers le haut.
 */
@media(max-width:400px){
  .miamm-header .brand-zone .zone-switcher-chevron{
    position:relative;
    margin-left:auto;
    width:20px;
    height:20px;
    flex:0 0 20px;
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="false"] .zone-switcher-chevron .icon{
    display:none;
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="false"] .zone-switcher-chevron::before,
  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="false"] .zone-switcher-chevron::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:14px;
    height:1.6px;
    border-radius:999px;
    background:currentColor;
    transform-origin:center;
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="false"] .zone-switcher-chevron::before{
    transform:translate(-50%,-50%) rotate(45deg);
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="false"] .zone-switcher-chevron::after{
    transform:translate(-50%,-50%) rotate(-45deg);
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="true"] .zone-switcher-chevron::before,
  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="true"] .zone-switcher-chevron::after{
    content:none;
  }

  body[data-page="comptoir"] .miamm-header .brand-zone[aria-expanded="true"] .zone-switcher-chevron .icon{
    display:block;
  }
}

/* ==========================================================
   HEADER — .wrap interne / alignement identique à la page
   2026-09-25

   Le header peut déborder du padding de la page grâce à
   --header-page-gutter, tandis que son .wrap récupère exactement
   le même retrait. Le contenu retrouve donc la position qu'il avait
   avant l'ajout du .wrap, sans laisser dépasser les actions à droite.
   ========================================================== */

.miamm-header {
  box-shadow: none;
  transition: box-shadow .2s ease;
}
.miamm-header.is-scrolled {
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
  box-shadow: 1px 1px 10px rgba(0,0,0,.15);
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
  transition: box-shadow 0.6s ease;
}

.miamm-header.topbar{
  --header-page-gutter:32px;

  display:block;
  width:calc(100% + var(--header-page-gutter) + var(--header-page-gutter));
  max-width:none;
  margin-left:calc(0px - var(--header-page-gutter));
  margin-right:calc(0px - var(--header-page-gutter));

  padding-top:14px;
  padding-bottom:14px;
  align-content: center;
}

body[data-page="comptoir"] .miamm-header.topbar{
  --header-page-gutter:32px;
}

/*
 * Neutralise les styles génériques de .wrap (.orders-page .wrap inclus).
 * Le padding interne compense exactement le débordement du header externe.
 */
.miamm-header > .miamm-header-wrap{
  box-sizing:border-box;
  width:100%;
  max-width:none;
  min-width:0;
  margin:0;
  padding-left:var(--header-page-gutter);
  padding-right:var(--header-page-gutter);

  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

.miamm-header > .miamm-header-wrap > *{
  min-width:0;
}

.miamm-header > .miamm-header-wrap > .brand-group{
  min-width:0;
  flex:1 1 auto;
}

.miamm-header > .miamm-header-wrap > .header-actions{
  min-width:0;
  flex:0 0 auto;
  max-width:100%;
}

.miamm-header > .miamm-header-wrap > .header-action-panel{
  flex-basis:100%;
  width:100%;
}

/* Le territoire est le premier élément autorisé à se contracter. */
.miamm-header .zone-switcher,
.miamm-header .brand-zone{
  min-width:0;
}

.miamm-header #headerZoneLabel{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ==========================================================
   Gouttières = padding réel de chaque page
   ========================================================== */

/* Accueil / Favoris : .shell passe de 30 à 22 px à 1200 px. */
@media(max-width:1200px){
  body[data-page="home"] .miamm-header.topbar{
    --header-page-gutter:22px;
  }
}

/* Comptoir : .app passe de 32 à 22 px à 1250 px. */
@media(max-width:1250px){
  body[data-page="comptoir"] .miamm-header.topbar{
    --header-page-gutter:22px;
  }
}

/* Commandes : .orders-shell reste à 30 px jusqu'au breakpoint mobile. */
.orders-page .miamm-header.topbar{
  --header-page-gutter:30px;
}

/* Accueil : .shell passe à 16 px à 650 px. */
@media(max-width:650px){
  body[data-page="home"] .miamm-header.topbar{
    --header-page-gutter:16px;
  }
}

/* Comptoir + Commandes : leurs conteneurs passent à 16 px à 760 px. */
@media(max-width:760px){
  body[data-page="comptoir"] .miamm-header.topbar,
  .orders-page .miamm-header.topbar{
    --header-page-gutter:16px;
  }

  /* Rythme vertical historique mobile. */
  .miamm-header.topbar{
    padding-top:13px;
    padding-bottom:9px;
  }
}

@media(max-width:520px){
  .miamm-header > .miamm-header-wrap{
    column-gap:6px;
    row-gap:7px;
  }
}

@media(max-width:400px){
  /* Le layout mobile reste sur le .wrap ; le header externe ne bouge pas. */
  .miamm-header > .miamm-header-wrap{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-auto-rows:auto;
    align-items:center;
    column-gap:6px;
    row-gap:7px;
  }

  .miamm-header .brand-group{display:contents}
  .miamm-header .brand{grid-column:1;grid-row:1;min-width:0;justify-self:start}
  .miamm-header .header-actions{grid-column:2;grid-row:1;justify-self:end;max-width:100%}
  .miamm-header .zone-switcher{grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin:1px 0 0}
  .miamm-header .brand-zone{width:100%;max-width:none}
  .miamm-header .header-action-panel{grid-column:1/-1;grid-row:3;width:100%;margin-top:1px}
}

.miamm-header:has(#zoneSwitcher:not([hidden])) .brand-baseline{
  display:none !important;
}

/* ==========================================================
   HEADER — navigation simplifiée territoire / ville
   2026-09-25

   Accueil   : [ Territoire | × ]
   Comptoir  : [ ‹ | Territoire ] [ pin Ville ]
   ========================================================== */

.miamm-header .zone-context-link{
  text-decoration:none;
  cursor:pointer;
}

.miamm-header .zone-context-back,
.miamm-header .zone-context-clear{
  display:none;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  color:currentColor;
}

/* Comptoir : même langage visuel que le split button de l'accueil.
   Toute la capsule reste un seul lien vers /@territoire. */
body[data-page="comptoir"] .miamm-header .comptoir-zone-split{
  display:inline-flex;
  align-items:stretch;
  justify-content:flex-start;
  gap:0;
  min-height:44px;
  padding:0;
  overflow:hidden;
  background:#e7efdf;
  border:1px solid color-mix(in srgb,#275f3a 8%,transparent);
  border-radius:15px;
  color:#275f3a;
  text-decoration:none;
  font-weight:800;
  transition:background-color .16s ease,transform .16s ease;
}

body[data-page="comptoir"] .miamm-header .comptoir-zone-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 43px;
  width:43px;
  min-width:43px;
  margin:0;
  border-right:1px solid rgba(0,0,0,.085);
}

body[data-page="comptoir"] .miamm-header .comptoir-zone-back .icon{
  width:22px;
  height:22px;
  stroke-width:2.2;
  transform:rotate(180deg);
}

body[data-page="comptoir"] .miamm-header .comptoir-zone-label{
  display:flex;
  align-items:center;
  min-width:0;
  padding:0 16px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

body[data-page="comptoir"] .miamm-header .comptoir-zone-split:hover{
  filter:brightness(1.018);
  transform:none;
}

/* Zone par défaut + Côte Basque : vert Miamm! discret.
   Pays de Dieulefit conserve son identité lilas. */
body[data-page="comptoir"][data-region="dieulefit"] .miamm-header .comptoir-zone-split{
  background:var(--lilac);
  border-color:color-mix(in srgb,var(--purple) 8%,transparent);
  color:var(--purple);
}
body[data-page="comptoir"][data-region="cote-basque"] .miamm-header .comptoir-zone-split{
  background:#e7efdf;
  border-color:color-mix(in srgb,#275f3a 8%,transparent);
  color:#275f3a;
}

.miamm-header .zone-context-clear .icon{
  width:18px;
  height:18px;
  stroke-width:2;
}

body[data-page="home"] .miamm-header .zone-context-clear{
  display:inline-flex;
  margin-left:2px;
  opacity:.82;
}

body[data-page="home"] .miamm-header .brand-zone{
  justify-content:space-between;
}

/* Accent contextuel du header : vert par défaut / Côte Basque, lilas pour Dieulefit.
   Réutilisé par les interactions légères du bouton ville. */
.miamm-header{
  --header-territory-accent:#275f3a;
}
body[data-region="dieulefit"] .miamm-header{
  --header-territory-accent:var(--purple);
}

.miamm-header .zone-context-link:focus-visible,
.comptoir-location-row .location-pill:focus-visible{
  outline:3px solid color-mix(in srgb,var(--purple) 18%,transparent);
  outline-offset:2px;
}

.miamm-header .comptoir-city-inline:focus-visible{
  outline:2px solid color-mix(in srgb,var(--header-territory-accent) 30%,transparent);
  outline-offset:2px;
}

/* Ville du comptoir : raccourci contextuel volontairement très léger. */
.miamm-header .comptoir-city-inline{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  max-width:190px;
  padding:8px 10px;
  margin-left:2px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--ink);
  text-decoration:none;
  font-size:.82rem;
  font-weight:700;
  box-shadow:none;
  transition:background-color .16s ease,color .16s ease;
}

.miamm-header .comptoir-city-inline:hover{
  background:color-mix(in srgb,var(--header-territory-accent) 5.5%,transparent);
  border-color:transparent;
  transform:none;
}

.miamm-header .comptoir-city-inline .icon{
  width:19px;
  height:19px;
  flex:0 0 19px;
  color:color-mix(in srgb,var(--header-territory-accent) 72%,#666);
}

.miamm-header .comptoir-city-copy,
.comptoir-location-row .comptoir-city-copy{
  display:inline-flex;
  align-items:baseline;
  gap:.28em;
  min-width:0;
  white-space:nowrap;
}

.miamm-header .comptoir-city-prefix,
.comptoir-location-row .comptoir-city-prefix{
  /**color:var(--muted);
  font-weight:700;*/
}

.miamm-header .comptoir-city-copy [data-header-city-label],
.comptoir-location-row .comptoir-city-copy [data-header-city-label]{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Le bouton ville de la ligne tablette/mobile garde le même rendu light. */
.comptoir-location-row .location-pill{
  color:var(--ink);
  text-decoration:none;
  border:0;
  background:transparent;
  box-shadow:none;
}

.comptoir-location-row .location-pill:hover{
  background:rgba(39,95,58,.055);
}

@media(max-width:1020px){
  .miamm-header .comptoir-city-inline{
    display:none;
  }
}

@media(max-width:760px){
  body[data-page="comptoir"] .miamm-header .comptoir-zone-split{
    min-height:40px;
    border-radius:14px;
  }
  body[data-page="comptoir"] .miamm-header .comptoir-zone-back{
    flex-basis:39px;
    width:39px;
    min-width:39px;
  }
  body[data-page="comptoir"] .miamm-header .comptoir-zone-label{
    padding:0 11px;
  }
  body[data-page="comptoir"] .miamm-header .comptoir-zone-back .icon{
    width:20px;
    height:20px;
  }
}

@media(max-width:390px){
  body[data-page="comptoir"] .miamm-header .comptoir-zone-back{
    flex-basis:36px;
    width:36px;
    min-width:36px;
  }
  body[data-page="comptoir"] .miamm-header .comptoir-zone-label{
    padding-inline:9px;
  }
}

/* Ancienne UI de popup territoire : neutralisée dans la nouvelle navigation. */
#zoneSwitcherPanel,
.zone-addresses-shortcut{
  display:none!important;
}

/* ==========================================================
   HOME — TERRITOIRE ACTIF EN SPLIT BUTTON
   Nom = liste du territoire · × = retour à /@all
   ========================================================== */
body[data-page="home"] .miamm-header .home-zone-split{
  display:inline-flex;
  align-items:stretch;
  justify-content:stretch;
  gap:0;
  min-height:44px;
  padding:0;
  overflow:hidden;
  background:#e7efdf;
  border:1px solid color-mix(in srgb,#275f3a 8%,transparent);
  border-radius:15px;
  color:#275f3a;
}
body[data-page="home"] .miamm-header .home-zone-main,
body[data-page="home"] .miamm-header .home-zone-clear{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  color:inherit;
  text-decoration:none;
  transition:background-color .16s ease,color .16s ease;
}
body[data-page="home"] .miamm-header .home-zone-main{
  flex:1 1 auto;
  justify-content:flex-start;
  padding:0 16px;
  font-size:inherit;
  font-weight:800;
  white-space:nowrap;
}
body[data-page="home"] .miamm-header .home-zone-main #headerZoneLabel{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body[data-page="home"] .miamm-header .home-zone-clear{
  flex:0 0 43px;
  width:43px;
  border-left:1px solid color-mix(in srgb,#275f3a 12%,transparent);
}

/* Accueil : couleur par défaut verte, avec identité lilas pour Dieulefit. */
body[data-page="home"][data-region="dieulefit"] .miamm-header .home-zone-split{
  background:var(--lilac);
  border-color:color-mix(in srgb,var(--purple) 8%,transparent);
  color:var(--purple);
}
body[data-page="home"][data-region="dieulefit"] .miamm-header .home-zone-clear{
  border-left-color:color-mix(in srgb,var(--purple) 12%,transparent);
}
body[data-page="home"] .miamm-header .home-zone-clear .icon{
  width:18px;
  height:18px;
  stroke-width:2.15;
}
body[data-page="home"] .miamm-header .home-zone-main:hover{
  background:rgba(255,255,255,.18);
}
body[data-page="home"] .miamm-header .home-zone-clear:hover{
  background:rgba(255,255,255,.38);
}
body[data-page="home"] .miamm-header .home-zone-main:focus-visible,
body[data-page="home"] .miamm-header .home-zone-clear:focus-visible{
  position:relative;
  z-index:1;
  outline:2px solid currentColor;
  outline-offset:-3px;
}

@media(max-width:760px){
  body[data-page="home"] .miamm-header .home-zone-split{
    min-height:40px;
    border-radius:14px;
  }
  body[data-page="home"] .miamm-header .home-zone-main{
    padding:0 11px;
  }
  body[data-page="home"] .miamm-header .home-zone-clear{
    flex-basis:39px;
    width:39px;
  }
  body[data-page="home"] .miamm-header .home-zone-clear .icon{
    width:16px;
    height:16px;
  }
}

@media(max-width:390px){
  body[data-page="home"] .miamm-header .home-zone-main{
    padding-inline:9px;
  }
  body[data-page="home"] .miamm-header .home-zone-clear{
    flex-basis:36px;
    width:36px;
  }
}
