/* Navigation et sélection mobile, communes aux deux thèmes. */
.app-tabs,.mobile-browser,.sheet-close { display:none; }
.is-illustrated .product-photo img { object-position:50% 20%!important; }
.picker-product.is-illustrated .picker-photo img { object-fit:contain; background:#edece2; }
@media(max-width:700px) {
  :root { --tabs-height:74px; }
  html { scroll-padding-top:82px; }
  body,body:has(.mobile-cart-dock:not([hidden])) { padding-bottom:calc(var(--tabs-height) + env(safe-area-inset-bottom) + 16px); }
  body:has(.builder-mobile-next:not([hidden])) { padding-bottom:calc(var(--tabs-height) + env(safe-area-inset-bottom) + 96px); }
  .shell { padding-inline:18px; }
  .header-inner { height:68px; }
  .brand img { width:94px;height:45px; }
  .menu-toggle { padding-left:7px; }
  .basket-link { background:transparent; }
  .app-tabs { position:fixed;inset:auto 0 0;z-index:70;display:grid;grid-template-columns:repeat(4,1fr);min-height:var(--tabs-height);padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);box-shadow:0 -4px 25px #00000008; }
  .app-tabs a { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;color:var(--muted);border-radius:16px;font-size:12px;line-height:1.4; }
  .app-tabs a[aria-current] { background:var(--surface);color:var(--ink);font-weight:600; }
  .app-tabs .ui-icon { width:23px;height:23px; }
  .app-cart-badge { position:absolute;top:2px;left:calc(50% + 8px);padding:0 5px;min-width:18px;height:18px;line-height:18px;text-align:center;background:var(--accent);color:var(--bg);border-radius:20px;font-size:10px;font-weight:600; }
  .home-hero { padding-top:25px;padding-bottom:30px;gap:24px; }
  .hero-copy { text-align:left;width:100%; }
  .hero-copy h1 { font-size:38px;line-height:1.15; }
  .hero-copy>.eyebrow { margin-bottom:15px; }
  .hero-copy>p { margin:18px 0;font-size:15px;line-height:1.7;max-width:none; }
  .hero-buttons { gap:16px;justify-content:flex-start;flex-direction:row; }
  .hero-buttons .button { width:100%; }
  .hero-buttons .text-link { font-size:13px; }
  .hero-note { display:none; }
  .hero-visual { height:250px; }
  .hero-visual>img,.hero-visual::after { border-radius:22px; }
  .floating-sketch { top:14px;left:14px;padding:8px 10px; }
  .floating-sketch svg { width:36px;height:36px; }
  .floating-sketch span { display:none; }
  .hero-photo-label { left:18px;bottom:18px; }
  .essentials { padding:12px 18px 35px; }
  .section-heading { margin-bottom:22px; }
  .section-heading h2,.closing h2 { font-size:29px; }
  .essential { padding:18px 14px; }
  .essential h3 { font-size:21px; }
  .essential .sketch { width:46px;height:46px; }
  .essential span { font-size:12px; }
  .featured { padding-bottom:35px; }
  .editorial-card { height:270px;border-radius:18px; }
  .how-section,.closing { padding:35px 0; }
  .how-grid { gap:25px; }
  .how-grid h3 { font-size:24px; }
  .footer { padding-top:18px; }
  .footer-top { display:none; }
  .footer-bottom { border-top:0;padding:15px 0;gap:14px;font-size:12px; }
  .page-heading,.catalogue-heading { padding-top:26px;padding-bottom:25px; }
  .page-heading h1,.catalogue-heading h1 { font-size:31px; }
  .page-heading p,.catalogue-heading p { font-size:14px;margin-top:15px; }
  .search-box,.app-search { display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface); }
  .search-box { margin-top:22px; }
  .catalogue-layout { padding-inline:12px; }
  .catalogue-grid { gap:10px; }
  .product-card { border:1px solid var(--line);border-radius:18px; }
  .product-card-copy { padding-right:16px; }
  .icon-stamp { left:15px; }
  .product-card[data-card="presentoirs-buffet"],.product-card[data-card="comptoirs-bar"] { min-height:145px;height:145px; }
  .product-card[data-card="presentoirs-buffet"] h2 { font-size:22px; }
  .detail-photo { height:285px;border-radius:20px; }
  .product-detail { gap:24px; }
  .detail-title h1 { font-size:34px; }
  .detail-title .sketch { width:48px;height:48px; }
  .detail-subtitle { font-size:16px;margin:12px 0 18px; }
  .detail-copy>p:not(.detail-subtitle) { font-size:14px; }
  .related-item,.contact-panel,.quote-panel { border-radius:18px; }
  .contact-layout { gap:30px; }
  .contact-details h2 { font-size:30px; }
  .guide-steps article { grid-template-columns:48px 1fr;gap:18px; }
  .guide-steps svg { width:45px;height:45px; }
  .guide-steps h2 { font-size:25px; }
  .mobile-cart-dock,.builder-mobile-next { bottom:calc(var(--tabs-height) + env(safe-area-inset-bottom) + 10px);border-radius:20px;padding:11px 14px;left:12px;right:12px; }
  .toast { bottom:calc(var(--tabs-height) + env(safe-area-inset-bottom) + 90px);font-size:13px; }

  /* Écran de choix : une grille compacte de photos et dessins. */
  .selection-intro { padding:25px 18px 14px; }
  .selection-intro .eyebrow { display:none; }
  .selection-intro h1 { font-size:28px;font-weight:500;line-height:1.25; }
  .selection-intro h1 em { display:inline;font:inherit;letter-spacing:inherit;transform:none; }
  .selection-intro>p { margin-top:9px;font-size:14px;line-height:1.6; }
  .selection-steps { padding:0 18px 18px;gap:8px; }
  .selection-steps button { flex:1;justify-content:center;min-height:43px;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:12px;gap:7px; }
  .selection-steps button[aria-current] { border-color:var(--accent); }
  .selection-steps button span { width:22px;height:22px;font-size:11px; }
  .step-line { display:none; }
  .selection-builder-layout { padding-inline:18px;padding-bottom:25px;gap:20px; }
  .material-choices { display:none; }
  .mobile-browser { display:block; }
  .app-search { margin-bottom:18px; }
  .app-search .ui-icon { width:21px;height:21px; }
  .app-search input { background:none;border:0;outline:0;min-width:0;width:100%;color:var(--ink);font-size:14px; }
  .app-search input::placeholder { color:var(--muted); }
  .app-search:focus-within { outline:2px solid var(--accent);outline-offset:3px; }
  .mobile-material-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .app-material { position:relative;display:flex;flex-direction:column;min-width:0;padding:0 0 13px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);text-align:left;overflow:hidden; }
  .app-material.has-items { border-color:var(--accent); }
  .app-material-picture { position:relative;width:100%;height:135px;overflow:hidden;background:var(--paper); }
  .app-material-picture>img { width:100%;height:100%; }
  .app-material.is-illustrated .app-material-picture>img { object-position:50% 30%!important; }
  .app-material-icon { position:absolute;top:9px;left:9px;display:grid;place-items:center;width:33px;height:36px;border-radius:9px;background:#f0eadbef;color:#344638; }
  .app-material-icon .sketch { width:26px;height:26px; }
  .app-material-picture>b { position:absolute;top:9px;right:9px;min-width:26px;padding:0 6px;height:26px;line-height:26px;border-radius:20px;background:var(--ink);color:var(--bg);text-align:center;font-size:12px; }
  .app-material-name { display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px 11px 0;font-size:15px;line-height:1.3;font-weight:600;width:100%;flex:1; }
  .app-material-add { display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);font-size:21px;font-weight:400; }
  .app-material-meta { padding:6px 11px 0;font-size:12px;color:var(--muted); }
  #mobile-material-empty { padding:20px 0;font-size:14px;color:var(--muted); }
  .selection-builder-layout:not(.is-details)>.builder-summary { display:none; }
  .empty-list-view .builder-main,.empty-list-view .selection-steps { display:none; }
  .empty-list-view .selection-builder-layout>.builder-summary { display:block; }
  .empty-list-view .builder-summary>.button,.empty-list-view .builder-summary>.form-note { display:none; }
  .selection-builder-layout.is-details .builder-summary { padding:20px; }
  .selection-builder-layout.is-details .builder-summary #selection-items { max-height:none; }
  .selection-builder-layout.is-details .builder-summary>.button { display:none; }
  .interactive-selection-page #quote-step { padding:22px 18px; }
  .interactive-selection-page .quote-panel h2 { font-size:28px; }
  .builder-summary-heading h2 { font-size:28px; }

  /* Fiche matériel en panneau, sans quitter la sélection. */
  #builder-product { display:none; }
  #builder-product.is-open { display:flex;position:fixed;inset:0;z-index:120;align-items:flex-end;background:#0009;backdrop-filter:blur(3px); }
  .sheet-open { overflow:hidden; }
  #builder-product .picker-product { position:relative;display:block;width:100%;max-height:92dvh;min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:26px 26px 0 0;border:0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -15px 50px #0002; }
  .sheet-close { position:absolute;right:14px;top:14px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:#fff;color:#24372c;box-shadow:0 3px 15px #0002; }
  #builder-product .picker-photo { height:clamp(260px,76vw,340px);min-height:0; }
  #builder-product .picker-photo>img { object-position:50% 50%!important; }
  #builder-product .picker-product.is-illustrated .picker-photo>img { object-fit:cover;object-position:50% 30%!important; }
  #builder-product .picker-photo-icon { top:18px;left:18px;padding:7px; }
  #builder-product .picker-photo-icon .sketch { width:32px;height:32px; }
  #builder-product .picker-form { padding:20px 20px 24px; }
  #builder-product .picker-form>.eyebrow { margin-bottom:8px;font-size:11px; }
  #builder-product .picker-form>h2 { font-size:27px;font-weight:500; }
  #builder-product .picker-form>p:not(.picker-price-note) { margin:10px 0 16px;font-size:14px;line-height:1.6; }
  #builder-product .picker-form select { min-height:47px;margin-bottom:15px;font-size:16px; }
  #builder-product .picker-add-row { flex-wrap:nowrap;margin-bottom:14px;gap:12px; }
  #builder-product .picker-add-row>.button { width:auto;flex:1;padding:12px;font-size:13px; }
  #builder-product .picker-price-note { font-size:12px;margin-top:12px; }
  #builder-product .picker-form>.detail-link { font-size:13px; }
}
@media(max-width:360px) {
  .app-material-picture { height:115px; }
  .app-material-name { font-size:14px;padding-inline:9px; }
  .app-material-meta { padding-inline:9px; }
  .mobile-material-grid { gap:10px; }
  .selection-steps button { padding-inline:6px;font-size:11px; }
  #builder-product .picker-add-row { flex-wrap:wrap; }
  #builder-product .picker-add-row>.button { min-width:100%; }
}
