  :root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --text: #211d18;
    --text-muted: #85796b;
    --border: #e9e2d8;
    --accent: #a8552b;
    --accent-hover: #8c451f;
    --chip-bg: #f1ece3;
    --chip-active-bg: #211d18;
    --chip-active-text: #ffffff;
    --chip2-bg: #f6f1e9;
    --chip2-active-bg: #e6d7c4;
    --danger: #b3413a;
    --shadow: 0 2px 10px rgba(60, 46, 30, 0.06);
    --shadow-hover: 0 10px 26px rgba(60, 46, 30, 0.14);
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
  }
  .brand-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 16px;
    font-family: "Fraunces", serif;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--text);
    background: var(--chip2-bg);
    border-bottom: 1px solid var(--border);
  }
  .brand-bar strong { font-weight: 600; }
  .brand-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .tt-box { max-width: 780px; margin: 10px auto 0; padding: 0 16px; }
  .tt-box summary { cursor: pointer; list-style: none; text-align: center; font-weight: 600; font-size: 14px; padding: 10px 14px; border: 1px solid var(--border, #ddd); border-radius: 999px; background: var(--surface, #fff); }
  .tt-box summary::-webkit-details-marker { display: none; }
  .tt-inner { margin-top: 10px; display: flex; justify-content: center; }
  .brand-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .brand-bar a:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
  header {
    position: sticky;
    top: 0;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    padding: 28px 24px 12px;
    border-bottom: 1px solid var(--border);
  }
  header h1 {
    margin: 0 0 16px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .search-input {
    display: block; width: 100%; max-width: 360px; margin-bottom: 14px;
    padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 13px; font-family: inherit;
  }
  .search-input:focus { outline: none; border-color: var(--accent); }
  .tabs { display: flex; gap: 26px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
  .tabs.sub { padding-top: 2px; padding-bottom: 14px; gap: 20px; }
  .tab {
    flex: none; padding: 4px 0 8px; background: none; border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; cursor: pointer; white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
  }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--text); border-bottom-color: var(--accent); }
  .tab.sub {
    text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px;
    padding: 2px 0 5px; border-bottom: 1px solid transparent; color: var(--text-muted);
  }
  .tab.sub:hover { color: var(--text); }
  .tab.sub.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
  .tab .count { opacity: 0.55; font-weight: 500; margin-left: 3px; text-transform: none; letter-spacing: 0; }
  main { padding: 26px 24px 70px; max-width: 1400px; margin: 0 auto; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
  .card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .card .imgwrap { width: 100%; aspect-ratio: 4 / 5; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.35s ease; }
  .card img.loaded { opacity: 1; }
  .card .broken { font-size: 11px; color: var(--text-muted); text-align: center; padding: 10px; }
  .card .meta { padding: 10px 12px 12px; font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .price { padding: 10px 12px 0; font-size: 15px; font-weight: 700; color: var(--accent); }
  .card .price .price-row { display: flex; justify-content: space-between; font-size: 13px; line-height: 1.6; }
  .card .price .price-row span:first-child { font-weight: 500; opacity: .8; }
  .card .price .price-note { font-size: 10.5px; font-weight: 400; font-style: italic; opacity: .65; margin-top: 2px; }
  .card .del {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(20,16,10,0.6); color: #fff; border: none; font-size: 13px; cursor: pointer;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  }
  body.admin-mode .card .del { display: flex; }
  .card .heart {
    position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: none; cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center; color: #b3413a;
    transition: transform 0.15s, background 0.15s; backdrop-filter: blur(4px);
  }
  .card .heart:hover { transform: scale(1.1); }
  .card .heart.active { background: #b3413a; color: #fff; }
  .card.card-running { border-color: #9cc5b2; background: #f0f7f3; }
  .card.card-running .imgwrap { background: #e6f1eb; }
  body.admin-mode .run-badge { top: 38px; }
  .top-badge { position: absolute; top: 10px; right: 8px; background: #a8552b; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
  body.admin-mode .top-badge { top: 38px; }
  .run-badge { position: absolute; top: 10px; right: 10px; background: #2f7d63; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
  .new-badge {
    position: absolute; bottom: 8px; left: 8px; background: var(--text); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px;
  }
  .card .cart-btn {
    display: block; width: 100%; border: none; border-top: 1px solid var(--border);
    background: var(--chip-bg); color: var(--text); font-size: 11.5px; font-weight: 600;
    padding: 8px 0; cursor: pointer; transition: background 0.15s, color 0.15s;
  }
  .card .cart-btn:hover { background: var(--chip2-active-bg); }
  .card .cart-btn.active { background: var(--text); color: #fff; }
  .empty { text-align: center; color: var(--text-muted); padding: 90px 20px; font-size: 14px; }
  .empty .empty-icon { font-size: 34px; margin-bottom: 10px; opacity: 0.5; }
  .lightbox {
    position: fixed; inset: 0; background: rgba(20, 16, 10, 0.92); display: none;
    align-items: center; justify-content: center; z-index: 100; padding: 20px;
  }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
  .lightbox video { max-width: 92vw; max-height: 80vh; border-radius: 10px; background: #000; }
  .lb-switch { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(0,0,0,.55); padding: 5px; border-radius: 999px; }
  .lb-switch button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: #fff; cursor: pointer; }
  .lb-switch button.on { background: #fff; color: #111; }
  .vid-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
  .lightbox .close {
    position: absolute; top: 20px; right: 24px; color: #fff; font-size: 26px; background: rgba(255,255,255,0.12);
    border: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; transition: background 0.15s;
  }
  .lightbox .close:hover { background: rgba(255,255,255,0.22); }
  .admin-toggle {
    position: fixed; bottom: 18px; right: 18px; z-index: 50; background: var(--accent); color: #fff;
    border: none; border-radius: 999px; padding: 11px 18px; font-size: 13px; font-weight: 600;
    cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: background 0.15s, transform 0.15s;
  }
  #adminToggle { display: none; }
  .admin-toggle:hover { background: var(--accent-hover); transform: translateY(-1px); }

  .cart-toggle {
    position: fixed; bottom: 18px; left: 18px; z-index: 50; background: var(--text); color: #fff;
    border: none; border-radius: 999px; padding: 11px 18px; font-size: 13px; font-weight: 600;
    cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.2); transition: transform 0.15s;
  }
  .cart-toggle:hover { transform: translateY(-1px); }

  .bulk-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #211d18; color: #fff;
    padding: 12px 20px; z-index: 55; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px;
  }
  .bulk-bar.show { display: flex; }
  .bulk-bar select { padding: 6px 8px; border-radius: 6px; border: none; font-size: 12px; }
  .bulk-bar button.small { background: rgba(255,255,255,0.12); color: #fff; border: none; }
  .bulk-bar button.small:hover { background: rgba(255,255,255,0.22); }
  .card .select-check {
    position: absolute; bottom: 8px; right: 8px; width: 20px; height: 20px; display: none;
    accent-color: var(--accent); cursor: pointer;
  }
  body.admin-mode .card .select-check { display: block; }
  .cart-item {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border);
  }
  .cart-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--chip-bg); }
  .cart-item .cart-item-name { flex: 1; font-size: 13px; min-width: 0; }
  .cart-item .cart-item-name .sub { display: block; font-size: 11px; color: var(--text-muted); }
  .cart-qty-input { width: 42px; text-align: center; padding: 6px 4px !important; }
  .cart-note-input { width: 110px; }
  .cart-item button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 14px; }
  .cart-empty { color: var(--text-muted); font-size: 13px; padding: 10px 0; }
  .admin-panel {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border);
    padding: 18px 24px; max-height: 75vh; overflow-y: auto; z-index: 60; display: none;
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  }
  .admin-panel.open { display: block; }
  .admin-panel h2 { font-size: 14px; margin: 0 0 10px; font-weight: 700; }
  .admin-section { margin-bottom: 20px; }
  .admin-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .admin-panel input[type="text"], .admin-panel select, .admin-panel textarea {
    padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 13px; font-family: inherit;
  }
  .admin-panel textarea { width: 100%; min-height: 90px; resize: vertical; }
  .admin-panel button.primary {
    padding: 9px 16px; border-radius: 8px; border: none; background: var(--accent); color: #fff;
    font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.15s;
  }
  .admin-panel button.primary:hover { background: var(--accent-hover); }
  .admin-panel button.small {
    padding: 5px 11px; border-radius: 6px; border: 1px solid var(--border); background: var(--chip-bg);
    color: var(--text); font-size: 12px; cursor: pointer;
  }
  .admin-panel .hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
  .category-block { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
  .category-block .cat-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .category-block .cat-name { font-weight: 700; font-size: 13px; }
  .category-block .subcats { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
  .sub-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chip2-bg); border-radius: 999px; padding: 5px 10px; font-size: 12px; }
  .sub-chip button, .cat-header button.del-cat { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; padding: 0; }
  .status-msg { font-size: 12px; margin-top: 8px; color: var(--text-muted); }
  .close-panel { position: absolute; top: 12px; right: 18px; background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }
  .download-banner {
    display: none; position: fixed; top: 0; left: 0; right: 0; background: #221a10; color: #f4dfc0;
    font-size: 12px; padding: 9px 16px; text-align: center; z-index: 200;
  }
  .download-banner.show { display: block; }
  .pay-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
  .pay-section h3 { margin: 0 0 6px; font-size: 15px; }
  .pay-note { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
  .pay-small { font-size: 11.5px; margin: 8px 0 0; }
  .pay-btn { display: inline-block; padding: 10px 16px; border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .pay-paypal { background: #0070ba; }
  .pay-revolut { background: #191c1f; }
  .pay-card { background: #5b4b8a; }
  .pay-usdt { background: #26a17b; border: 0; font-family: inherit; }
  .usdt-box { background: #e8f6f1; color: #0f5a43; border-radius: 8px; padding: 10px 12px; line-height: 1.45; }
  .usdt-box code { word-break: break-all; font-size: 12.5px; background: #fff; padding: 2px 5px; border-radius: 5px; }
  .cust-form { margin: 14px 0 10px; }
  .cust-form h3 { margin: 0 0 8px; font-size: 15px; }
  .cust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cust-grid input { width: 100%; box-sizing: border-box; }
  .cust-grid .cust-wide { grid-column: 1 / -1; }
  @media (max-width: 480px) { .cust-grid { grid-template-columns: 1fr; } }
  .step-title { font-weight: 700; font-size: 14px; margin: 14px 0 4px; }
  .step-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
  .step-section .step-title { margin-top: 0; }
  .step-section .pay-section { border-top: none; margin-top: 16px; padding-top: 0; }
  .contact-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
  .contact-row a { color: var(--accent); text-decoration: underline; }

  .welcome-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15,14,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .welcome-overlay[hidden] { display: none; }
  .welcome-box { background: var(--surface, #fff); color: var(--text, #211d18); max-width: 440px; width: 100%; border-radius: 16px; padding: 28px 24px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); text-align: center; border: 1px solid var(--border, #e9e2d8); }
  .welcome-box h2 { margin: 0 0 14px; font-size: 22px; }
  .welcome-box ul { text-align: left; margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
  .welcome-box li { margin-bottom: 8px; }
  .welcome-box button { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--accent, #a8552b); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
  .grid.home-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--border, #e9e2d8); box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.06)); transition: transform .15s, box-shadow .15s; }
  .home-tile:hover, .home-tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover, 0 10px 26px rgba(0,0,0,.14)); }
  .home-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: minmax(0,1fr); aspect-ratio: 4 / 1.25; gap: 2px; overflow: hidden; background: var(--border, #e9e2d8); }
  .home-mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; background: var(--chip-bg, #f1ece3); opacity: 0; transition: opacity .3s; }
  .home-mosaic img.loaded { opacity: 1; }
  .home-info { padding: 14px 18px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .home-info .home-cta { margin-left: auto; }
  .home-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
  .home-subs { font-size: 12.5px; opacity: .7; }
  .home-cta { font-size: 13.5px; font-weight: 600; color: var(--accent, #a8552b); }
  .home-cta span { font-weight: 400; opacity: .8; }
  @media (max-width: 560px) { .grid.home-grid { gap: 14px; } .home-mosaic { aspect-ratio: 4 / 1.5; } .home-name { font-size: 16px; } .home-subs { display: none; } .home-info { padding: 10px 14px 12px; } .home-cta { font-size: 12.5px; } }
  .home-tile.featured { border: 2px solid var(--accent, #a8552b); }
  .cart-opts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 54px; }
  .cart-opts .cart-select, .cart-opts input { font-size: 12.5px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
  .cart-opts .cart-color-input { width: 90px; }
  .cart-opts .cart-note-input { flex: 1; min-width: 110px; }

  /* --- design v2 --- */
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 30px; }
  @media (max-width: 560px) {
    main { padding: 16px 12px 90px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card { border-radius: 10px; }
    .card .price { padding: 8px 9px 0; font-size: 14px; }
    .card .price .price-row { font-size: 11.5px; }
    .card .price .price-note { font-size: 9.5px; }
    .card .meta { padding: 6px 9px 10px; font-size: 11.5px; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .card .heart { width: 26px; height: 26px; font-size: 14px; top: 6px; left: 6px; }
    .card .cart-btn { font-size: 11px; padding: 9px 0; }
  }
  .brand-bar { padding: 16px 18px 14px; }
  .brand-id { display: flex; flex-direction: column; gap: 3px; }
  .brand-bar strong { font-size: 26px; line-height: 1.05; }
  .brand-tagline { font-family: "Inter", sans-serif; font-size: 12px; color: var(--text-muted); letter-spacing: 0; }
  /* Nom de marque : majuscules, centré, police élégante */
  .brand-bar { flex-direction: column; text-align: center; gap: 10px; }
  .brand-id { align-items: center; }
  .brand-bar strong { font-family: "Cormorant Garamond", "Fraunces", serif; font-weight: 600; font-size: 34px; text-transform: uppercase; letter-spacing: 0.22em; margin-right: -0.22em; }
  .brand-tagline { text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; }
  @media (max-width: 380px) { .brand-bar strong { font-size: 27px; letter-spacing: 0.16em; margin-right: -0.16em; } }
  header { padding-top: 14px; }
  header h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .sort-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px 0 12px; font-size: 12.5px; color: var(--text-muted); }
  .sort-bar select { font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  .search-row { display: flex; gap: 8px; align-items: center; max-width: 360px; margin-bottom: 14px; }
  .search-row .search-input { margin-bottom: 0; flex: 1; min-width: 0; }
  .img-search-btn { flex: none; width: 40px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 17px; cursor: pointer; }
  .img-banner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-size: 13px; }
  .img-banner img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
  .img-banner .ib-text { flex: 1; min-width: 0; line-height: 1.35; }
  .img-banner .ib-text small { color: var(--text-muted); }
  .img-banner button { flex: none; border: 1px solid var(--border); background: var(--chip-bg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
  .offer-banner { grid-column: 1 / -1; text-align: center; font-size: 13.5px; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--accent); color: var(--text); background: var(--surface); }
  .offer-note { flex-basis: 100%; margin: 0 0 8px; font-size: 12.5px; color: var(--text); }
  .send-fallback { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.55); display: none; align-items: flex-start; justify-content: center; padding: 20px 14px; overflow-y: auto; }
  .send-fallback .sf-box { position: relative; background: var(--surface); color: var(--text); border-radius: 14px; padding: 20px 16px 16px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
  .send-fallback h3 { margin: 0 28px 10px 0; font-size: 17px; }
  .send-fallback .sf-close { position: absolute; top: 10px; right: 10px; border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
  .send-fallback .sf-step { font-size: 13.5px; margin: 10px 0 8px; line-height: 1.45; }
  .send-fallback .sf-imgs img { width: 100%; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 8px; display: block; }
  .send-fallback .sf-text { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; background: var(--chip-bg); border-radius: 8px; padding: 10px; max-height: 180px; overflow: auto; margin: 0; }
  .send-fallback .sf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .send-fallback .sf-btn { flex: 1 1 120px; text-align: center; padding: 11px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--border); background: var(--chip-bg); color: var(--text); cursor: pointer; font-family: inherit; }
  .send-fallback .sf-snap { background: #fffc00; color: #111; border-color: #e6e300; }
  .send-fallback .sf-wa { background: #25d366; color: #fff; border-color: #1fb457; }
  .grid.cat-list section p { margin: 0 0 10px; line-height: 1.5; }
  .grid.cat-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
  .cat-intro h2 { margin: 0 0 6px; font-size: 20px; }
  .cat-intro p { margin: 0 0 8px; font-size: 14px; opacity: .8; line-height: 1.5; }
  .cat-empty { padding: 30px; text-align: center; opacity: .6; border: 1px dashed var(--border); border-radius: 12px; }
  .cat-group { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
  .cat-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
  .cat-group > summary::-webkit-details-marker { display: none; }
  .cat-group > summary::after { content: '▾'; color: var(--text-muted); transition: transform .2s; }
  .cat-group[open] > summary::after { transform: rotate(180deg); }
  .cat-group > summary small { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--text-muted); }
  .cat-group .cat-card { flex-wrap: nowrap; }
  .cat-group .cat-left { flex: 1; min-width: 0; }
  .cat-group .cat-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .cat-group .cat-name { font-size: 14px; }
  .cat-group .cat-card { border: none; border-top: 1px solid var(--border); border-radius: 0; padding: 12px 16px; }
  .cat-group .cat-sub { padding: 10px 16px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); border-top: 1px solid var(--border); text-transform: uppercase; letter-spacing: .04em; }
  .cat-lock { text-align: center; padding: 26px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .cat-lock-icon { font-size: 34px; margin-bottom: 6px; }
  .cat-lock p { margin: 0 0 14px; line-height: 1.5; font-size: 14px; }
  .cat-lock-form { display: flex; gap: 8px; max-width: 320px; margin: 0 auto; }
  .cat-lock-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; text-align: center; letter-spacing: .15em; }
  .cat-lock-form button { padding: 11px 16px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .cat-lock-msg { min-height: 20px; margin: 10px 0 4px; font-size: 13px; color: var(--danger, #c0392b); }
  .cat-lock-snap { display: inline-block; margin-top: 4px; padding: 9px 14px; border-radius: 999px; background: #fffc00; color: #111; font-weight: 600; font-size: 13.5px; text-decoration: none; }
  .cat-search { display: block; width: 100%; box-sizing: border-box; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
  .cat-search-none { display: none; text-align: center; padding: 18px; font-size: 14px; color: var(--text-muted); }
  .cat-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .cat-name { font-weight: 600; font-size: 16px; }
  .cat-desc { font-size: 13px; opacity: .7; margin-top: 2px; }
  .cat-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .cat-pw { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--border); background: transparent; color: var(--text); cursor: pointer; }
  .cat-pw span { margin-left: 6px; color: var(--accent); font-weight: 600; }
  .cat-open { font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; }
  .info-page { line-height: 1.55; }
  .info-page h2 { margin: 0 0 10px; font-size: 20px; }
  .info-page section { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; background: var(--surface); }
  .info-page h3 { margin: 0 0 6px; font-size: 16px; }
  .info-page ul, .info-page ol { margin: 0; padding-left: 20px; font-size: 14px; }
  .info-page li { margin-bottom: 4px; }
  .info-page p { margin: 0; font-size: 14px; }
/* mobile anti-zoom */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
input,textarea,select{font-size:16px!important}
input,textarea,select,button{max-width:100%}
img{max-width:100%}

  .card .price-edit { display: none; margin: 8px 12px 0; padding: 6px 10px; font-size: 12px; border-radius: 8px; border: 1px dashed var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
  body.admin-mode .card .price-edit { display: block; }
  /* Inspi : afficher toutes les pièces et le total (pas de coupe à 2 lignes) */
  .card.inspi-card .meta b { white-space: nowrap; }
  .card.inspi-card .meta { display: block !important; -webkit-line-clamp: unset !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; color: var(--text); }
  .inspi-meta { padding: 8px 10px 10px; font-size: 13px; line-height: 1.4; color: var(--text); }
  .inspi-row { display: flex; align-items: baseline; gap: 6px; }
  .inspi-row span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .inspi-row b { flex: none; white-space: nowrap; }
  .inspi-total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-weight: 700; }
  /* Inspi homme sur mobile : une photo par ligne, affichée en entier */
  @media (max-width: 700px) {
    #grid.inspi-homme { grid-template-columns: 1fr !important; }
    #grid.inspi-homme .imgwrap { aspect-ratio: auto; }
    #grid.inspi-homme .imgwrap img { width: 100%; height: auto; object-fit: contain; }
    #grid.inspi-homme .inspi-meta { font-size: 15px; padding: 10px 14px 12px; }
  }
  /* Inspi homme sur ordinateur : 3 photos par ligne, affichées en entier */
  @media (min-width: 701px) {
    #grid.inspi-homme { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #grid.inspi-homme .imgwrap { aspect-ratio: auto; }
    #grid.inspi-homme .imgwrap img { width: 100%; height: auto; object-fit: contain; }
  }
