/* =====================================================================
   ATELIER 151 — FEUILLE DE STYLE
   Identité : blanc ivoire · bleu nuit · or métallique
   ===================================================================== */
:root {
  --ivory: #FAF9F6;
  --navy: #101D3A;
  --gold: #C9A24D;
  --gold-soft: #E6D3A3;
  --steel: #60789D;
  --pearl: #E9EDF2;
  --ink-2: #3A4762;
  --white: #FFFFFF;
  --line: rgba(16, 29, 58, .10);
  --shadow-card: 0 18px 40px -18px rgba(16, 29, 58, .45), 0 4px 10px -4px rgba(16, 29, 58, .2);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --ribbon-h: 0px; /* plus de bandeau « maquette » sur le vrai site */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--navy);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--navy); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Bandeau maquette ---------- */
.demo-ribbon {
  height: var(--ribbon-h); display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-soft); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo-atelier { font-size: 12px; font-weight: 600; letter-spacing: .48em; margin-right: -.48em; }
.logo-rule { width: 22px; height: 1px; background: var(--gold); }
.logo-151 { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: .02em; position: relative; }
.logo-151::after { content: ""; position: absolute; right: -7px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.logo-light { color: var(--ivory); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 249, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(16, 29, 58, .06); }
.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--navy);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: #1A2B52; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(16, 29, 58, .05); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D4B062; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }

/* ---------- Héro ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 72px 0 64px; }
.eyebrow { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 600; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.01em; }
.hero-sub { max-width: 440px; color: var(--ink-2); margin: 0 0 34px; font-size: 16px; }
.hero-visual { position: relative; height: 420px; perspective: 1200px; display: grid; place-items: center; }
.hero-card {
  width: 230px; aspect-ratio: 63 / 88; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card);
  transform-style: preserve-3d; animation: heroFloat 9s ease-in-out infinite; position: relative; z-index: 1;
}
.hero-card .card-svg { width: 100%; height: 100%; display: block; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; mix-blend-mode: soft-light; }
.hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 77, .22), transparent 65%); }
.hero-visual::before { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(201, 162, 77, .35); border-radius: 50%; }
@keyframes heroFloat { 0%, 100% { transform: rotateY(-16deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(14deg) rotateX(-4deg) translateY(-10px); } }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }

/* ---------- Répertoire des extensions (sticky) ---------- */
.ext-nav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ext-nav-inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.ext-nav-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); flex: none; }
.ext-tiles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px; scroll-snap-type: x proximity; }
.ext-tiles::-webkit-scrollbar { display: none; }
.ext-tile {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; scroll-snap-align: start;
  transition: border-color .25s, background .25s, transform .25s; text-align: left;
}
.ext-tile:hover { border-color: rgba(201, 162, 77, .7); transform: translateY(-1px); }
.ext-tile.is-active { border-color: var(--navy); background: var(--navy); color: var(--ivory); }
.ext-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--gold); color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ivory));
}
.ext-tile.is-active .ext-mark { background: transparent; }
.ext-tile-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.ext-tile-meta { display: block; font-size: 11px; font-weight: 400; opacity: .65; }
@media (max-width: 640px) { .ext-nav-label { display: none; } .ext-nav-inner { min-height: 64px; } .ext-mark { width: 32px; height: 32px; } }

/* ---------- Sections catalogue ---------- */
.catalogue { padding: 24px 0 40px; }
.ext-section { padding: 64px 0 24px; scroll-margin-top: calc(var(--header-h) + 76px); }
.ext-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.ext-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 46px); margin: 0; line-height: 1.05; }
.ext-head .ext-meta { color: var(--steel); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
.ext-count { color: var(--steel); font-size: 13px; white-space: nowrap; }
.ext-rule { height: 1px; margin-top: 18px; background: linear-gradient(90deg, var(--gold) 0, var(--gold) 64px, var(--line) 64px); }
.cf-hint { text-align: center; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #9AA6BA; margin: 4px 0 0; }
.empty-catalogue { text-align: center; padding: 120px 0; color: var(--steel); }

/* ---------- Carrousel Coverflow 3D ---------- */
.cf { position: relative; perspective: 1400px; perspective-origin: 50% 45%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; margin-top: 18px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
/* Coupe seulement sur les côtés : en bas, l'ombre des cartes s'estompe librement (pas de bord net) */
@supports (overflow: clip) { .cf { overflow-x: clip; overflow-y: visible; } }
.cf.is-grabbing { cursor: grabbing; }
.cf-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }
.cf-inner {
  position: relative; width: 100%; height: 100%; border-radius: 4.6% / 3.3%; overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--ivory);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s;
}
.cf-inner.is-tilting { transition: transform .08s linear; }
.cf-inner .card-svg, .cf-inner .card-photo { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.cf-shade { position: absolute; inset: 0; background: var(--navy); opacity: var(--shade, 0); pointer-events: none; transition: opacity .1s; }
.cf-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.cf-card.is-center .cf-inner { box-shadow: 0 22px 40px -18px rgba(16, 29, 58, .45), 0 0 0 1px rgba(201, 162, 77, .35); }
.cf-card.is-center .cf-sheen { opacity: 1; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.35), transparent 45%); }
.cf-card.is-center .is-holo .cf-sheen {
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.45), transparent 40%),
    linear-gradient(115deg, transparent 20%, rgba(255, 214, 140, .28) 38%, rgba(160, 210, 255, .28) 50%, rgba(230, 170, 255, .25) 62%, transparent 80%);
  background-size: 100% 100%, 220% 100%; mix-blend-mode: soft-light; animation: holoShift 5s ease-in-out infinite;
}
@keyframes holoShift { 0%, 100% { background-position: 0 0, 100% 0; } 50% { background-position: 0 0, 0 0; } }

/* ---------- Engagements ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 72px 0; border-top: 1px solid var(--line); margin-top: 40px; }
.promise-k { font-family: var(--serif); font-size: 24px; display: block; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: rgba(250, 249, 246, .78); padding: 56px 0 calc(40px + var(--safe-b)); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px 48px; }
.footer-brand p { margin: 10px 0 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 24px; font-size: 13.5px; }
.footer-note { grid-column: 1 / -1; font-size: 12px; color: rgba(250, 249, 246, .5); margin: 12px 0 0; max-width: 760px; }
.footer-admin { grid-column: 1 / -1; color: var(--gold-soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; justify-self: start; border-bottom: 1px solid rgba(201,162,77,.4); }

/* ---------- Modale générique ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 20, 43, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s var(--ease); }
.modal-panel {
  position: relative; background: var(--ivory); border-radius: 22px; width: min(1040px, 100%); max-height: calc(100dvh - 48px);
  overflow: auto; box-shadow: 0 40px 100px -30px rgba(11, 20, 43, .6); animation: popIn .45s var(--ease);
}
.modal.is-closing .modal-backdrop { animation: fadeOut .25s forwards; }
.modal.is-closing .modal-panel { animation: popOut .25s forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(250, 249, 246, .9); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.product-media { background: linear-gradient(160deg, #F1F3F7, var(--pearl)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px 28px; gap: 22px; border-radius: 22px 0 0 22px; position: relative; overflow: hidden; }
.flip-scene { perspective: 1600px; width: min(300px, 70vw); aspect-ratio: 63 / 88; position: relative; }
.flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); cursor: pointer; }
.flipper.is-flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4.6% / 3.3%; overflow: hidden; box-shadow: var(--shadow-card); background: var(--ivory); }
.face-back { transform: rotateY(180deg); }
.face .card-svg, .face .card-photo { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.flip-scene.is-zoom .flipper { cursor: zoom-out; }
.flip-scene.is-zoom .face .card-svg, .flip-scene.is-zoom .face .card-photo { transform: scale(2.4); }
.flip-scene.is-zoom .face { overflow: hidden; }
.media-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s, background .2s; }
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.is-on { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.media-caption { font-size: 11.5px; color: var(--steel); text-align: center; margin: 0; }
.product-info { padding: 48px 44px 36px; display: flex; flex-direction: column; }
.product-ext { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 8px; }
.product-info h2 { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.05; margin: 0 0 6px; }
.product-price { font-family: var(--serif); font-size: 34px; margin: 10px 0 20px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--steel); font-size: 12.5px; letter-spacing: .04em; }
.specs dd { margin: 0; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--pearl); color: var(--navy); }
.badge-gold { background: rgba(201, 162, 77, .16); color: #7D6224; }
.badge-ok { background: #E7F1EA; color: #2F6B43; }
.badge-warn { background: #FBF0DD; color: #8A5A12; }
.badge-off { background: #F3E5E5; color: #8D3434; }
.badge-steel { background: rgba(96, 120, 157, .14); color: var(--steel); }
.prose-block h3 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin: 0 0 6px; font-weight: 600; }
.prose-block p { margin: 0 0 18px; color: var(--ink-2); }
.defects { border-left: 2px solid var(--gold); padding-left: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; background: var(--white); }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty button[disabled] { opacity: .3; cursor: default; }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.qty-sm { height: 34px; } .qty-sm button { width: 32px; font-size: 15px; }
.stock-note { font-size: 12.5px; color: var(--steel); margin: 10px 0 0; }

/* ---------- Tiroir panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 210; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(11, 20, 43, .45); animation: fadeIn .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ivory);
  display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(11, 20, 43, .5); animation: slideIn .45s var(--ease);
}
.drawer.is-closing .drawer-panel { animation: slideOut .3s forwards; }
.drawer.is-closing .drawer-backdrop { animation: fadeOut .3s forwards; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 28px; }
.drawer-foot { padding: 20px 28px calc(24px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--white); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 64px; aspect-ratio: 63/88; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 14px -8px rgba(16,29,58,.5); cursor: pointer; }
.cart-thumb .card-svg, .cart-thumb .card-photo { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { margin: 0; font-size: 14.5px; font-weight: 600; }
.cart-line .meta { font-size: 12px; color: var(--steel); margin: 2px 0 8px; }
.cart-line .price { font-weight: 600; text-align: right; }
.cart-line .remove { font-size: 12px; margin-top: 6px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; margin: 0 0 16px; }
.totals .grand { font-family: var(--serif); font-size: 26px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.totals .muted { color: var(--steel); }
.empty-state { text-align: center; padding: 72px 12px; color: var(--steel); }
.empty-state .big { font-family: var(--serif); font-size: 28px; color: var(--navy); display: block; margin-bottom: 8px; }
@media (max-width: 640px) {
  .drawer-panel { width: 100%; animation-name: slideUp; }
  .drawer.is-closing .drawer-panel { animation-name: slideDown; }
}
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes slideDown { to { transform: translateY(100%); } }

/* ---------- Commande ---------- */
.checkout { position: fixed; inset: 0; z-index: 220; background: var(--ivory); overflow: auto; animation: fadeIn .3s; }
.co-head { position: sticky; top: 0; z-index: 2; background: rgba(250,249,246,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.co-head-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.co-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.co-steps li { display: flex; align-items: center; gap: 8px; color: #9AA6BA; }
.co-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--line); margin: 0 4px; }
.co-steps .num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.co-steps li.is-active { color: var(--navy); font-weight: 600; }
.co-steps li.is-done { color: var(--gold); }
.co-body { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; padding: 48px 0 80px; }
.co-main h2 { font-family: var(--serif); font-weight: 500; font-size: 38px; margin: 0 0 6px; }
.co-main .lead { color: var(--ink-2); margin: 0 0 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; letter-spacing: .06em; color: var(--steel); font-weight: 600; }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 16px; border: 1px solid rgba(16,29,58,.16); border-radius: 12px; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 86px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.field.invalid input { border-color: #B44; }
.field .err { color: #A33; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--pearl); margin-bottom: 20px; }
.seg button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--steel); }
.seg button.is-on { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px -2px rgba(16,29,58,.2); }
.relay-search { display: flex; gap: 10px; margin-bottom: 20px; }
.relay-search input { flex: 1; height: 48px; padding: 0 16px; border: 1px solid rgba(16,29,58,.16); border-radius: 12px; background: var(--white); }
.relay-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.relay-map { position: relative; border-radius: 16px; background: #EEF1F5; overflow: hidden; min-height: 300px; border: 1px solid var(--line); }
.relay-map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; cursor: pointer; padding: 0; }
.pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); color: var(--ivory); font-size: 12px; font-weight: 700; box-shadow: 0 6px 12px -4px rgba(16,29,58,.5); transition: background .2s, transform .2s; }
.pin span b { transform: rotate(45deg); }
.pin.is-on span { background: var(--gold); color: var(--navy); transform: rotate(-45deg) scale(1.15); }
.map-label { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--steel); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 6px; }
.relay-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; }
.relay-item { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.relay-item:hover { border-color: rgba(201,162,77,.6); }
.relay-item.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.relay-item strong { display: block; font-size: 14px; }
.relay-item span { display: block; font-size: 12.5px; color: var(--steel); }
.pay-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.pay-opt { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 16px 18px; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.pay-opt.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.pay-opt .ico { width: 44px; height: 30px; border-radius: 6px; background: var(--navy); color: var(--ivory); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.pay-opt small { display: block; color: var(--steel); font-size: 12px; }
.secure-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(96,120,157,.08); color: var(--ink-2); font-size: 13px; margin-bottom: 20px; }
.reserve-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.co-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.co-summary { background: var(--white); border-radius: 20px; padding: 26px; border: 1px solid var(--line); align-self: start; position: sticky; top: 92px; }
.co-summary h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 12px; }
.sum-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum-line .cart-thumb { width: 44px; }
.sum-line small { display: block; color: var(--steel); font-size: 12px; }
.co-summary .totals { margin: 16px 0 0; }
.confirm { text-align: center; max-width: 620px; margin: 0 auto; padding: 64px 0 96px; }
.confirm-mark { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); animation: popIn .6s var(--ease); }
.confirm h2 { font-family: var(--serif); font-weight: 500; font-size: 44px; margin: 0 0 10px; }
.confirm-box { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 28px 0; }
.confirm-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.confirm-box dt { color: var(--steel); }
.confirm-box dd { margin: 0; font-weight: 500; }
.sim-mails { text-align: left; font-size: 13px; color: var(--steel); background: rgba(201,162,77,.08); border-radius: 14px; padding: 14px 18px; }
.sim-mails ul { margin: 6px 0 0; padding-left: 18px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Chatbot ---------- */
.chat-bubble {
  position: fixed; right: 22px; bottom: calc(22px + var(--safe-b)); z-index: 150; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(201,162,77,.6); background: var(--navy); color: var(--gold-soft); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 16px 34px -14px rgba(11,20,43,.7); transition: transform .3s var(--ease);
}
.chat-bubble:hover { transform: translateY(-2px) scale(1.04); }
.chat {
  position: fixed; right: 22px; bottom: calc(90px + var(--safe-b)); z-index: 160; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 140px));
  background: var(--ivory); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(11,20,43,.55);
  display: flex; flex-direction: column; overflow: hidden; animation: popIn .4s var(--ease); transform-origin: bottom right;
}
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 14px 20px; background: var(--navy); color: var(--ivory); }
.chat-head strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.chat-head span { font-size: 11.5px; color: var(--gold-soft); letter-spacing: .06em; }
.chat-head .icon-btn { color: var(--ivory); }
.chat-head .icon-btn:hover { background: rgba(255,255,255,.08); }
.chat-log { flex: 1; overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy); color: var(--ivory); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { display: inline-flex; gap: 4px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); animation: dot 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-results { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.chat-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; animation: msgIn .4s var(--ease); }
.chat-card .cart-thumb { width: 52px; }
.chat-card strong { display: block; font-size: 14px; }
.chat-card small { display: block; font-size: 12px; color: var(--steel); }
.chat-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chips button { border: 1px solid rgba(201,162,77,.55); background: transparent; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.chat-chips button:hover { background: rgba(201,162,77,.1); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); padding-bottom: calc(12px + var(--safe-b)); }
.chat-form input { flex: 1; height: 42px; border: 1px solid rgba(16,29,58,.14); border-radius: 999px; padding: 0 16px; background: var(--ivory); min-width: 0; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--gold); }
@media (max-width: 640px) {
  .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; bottom: 0; right: 0; }
  .chat-bubble { right: 16px; bottom: calc(16px + var(--safe-b)); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 400; opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: 13.5px; transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 16px 40px -16px rgba(11,20,43,.7); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Responsive boutique ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 32px; gap: 8px; text-align: left; }
  .hero-visual { height: 300px; order: -1; }
  .hero-card { width: 170px; }
  .hero-visual::before { width: 230px; height: 230px; }
  .product { grid-template-columns: 1fr; }
  .product-media { border-radius: 22px 22px 0 0; padding: 56px 20px 22px; }
  .product-info { padding: 28px 24px calc(28px + var(--safe-b)); }
  .co-body { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .co-summary { position: static; }
  .promise { grid-template-columns: 1fr; gap: 22px; padding: 48px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 22px 22px 0 0; max-height: 94dvh; animation-name: sheetUp; }
  .modal.is-closing .modal-panel { animation-name: sheetDown; }
  .product-info h2 { font-size: 36px; }
  .flip-scene { width: min(230px, 62vw); }
  .relay-layout { grid-template-columns: 1fr; }
  .relay-map { min-height: 200px; }
  .grid-2 { grid-template-columns: 1fr; }
  .co-steps .lbl { display: none; }
  .co-head .logo { display: none; }
  .toast { bottom: auto; top: calc(var(--ribbon-h) + 12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); }
  .toast.is-on { transform: translate(-50%, 0); }
  .co-main h2 { font-size: 32px; }
  .ext-section { padding-top: 44px; }
  .logo-151 { font-size: 28px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-card, .hero-card::after { animation: none; } }

/* =====================================================================
   ADMINISTRATION
   ===================================================================== */
.admin { min-height: calc(100vh - var(--ribbon-h)); display: grid; grid-template-columns: 248px 1fr; background: #F4F5F7; }
.adm-side { background: var(--navy); color: rgba(250,249,246,.8); padding: 26px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: calc(100vh - var(--ribbon-h)); }
.adm-side .logo { color: var(--ivory); padding: 0 8px; }
.adm-side .tag { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 0 8px; margin-top: -16px; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav button { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: none; color: inherit; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.adm-nav button:hover { background: rgba(255,255,255,.06); }
.adm-nav button.is-on { background: rgba(201,162,77,.16); color: var(--ivory); }
.adm-nav .count { font-size: 11px; background: var(--gold); color: var(--navy); border-radius: 9px; padding: 0 7px; font-weight: 700; }
.adm-side .back { margin-top: auto; color: var(--gold-soft); font-size: 13px; text-decoration: none; padding: 0 8px; }
.adm-main { padding: 32px 40px 80px; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.adm-top h1 { font-family: var(--serif); font-weight: 500; font-size: 38px; margin: 0; }
.adm-top p { margin: 2px 0 0; color: var(--steel); font-size: 13px; }
.adm-warning { font-size: 12.5px; background: #FBF0DD; color: #7A5212; padding: 10px 14px; border-radius: 10px; margin-bottom: 22px; }
.panel { background: var(--white); border-radius: 18px; border: 1px solid var(--line); padding: 22px; margin-bottom: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.claude-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), #1C2F5E); color: var(--ivory); margin-bottom: 20px; position: relative; overflow: hidden; }
.claude-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(201,162,77,.35); }
.claude-cta h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 4px; }
.claude-cta p { margin: 0; color: rgba(250,249,246,.7); font-size: 13.5px; max-width: 520px; }
.claude-cta .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: relative; z-index: 1; flex: none; }
.claude-cta .link-btn { color: var(--gold-soft); }
.notif { display: grid; grid-template-columns: 10px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.notif:last-child { border-bottom: 0; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--pearl); }
.notif.unread .dot { background: var(--gold); }
.notif small { display: block; color: var(--steel); font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .cart-thumb { width: 38px; }
.tbl-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font-size: 12px; cursor: pointer; white-space: nowrap; }
.mini-btn:hover { border-color: var(--gold); }
.mini-btn[disabled] { opacity: .35; cursor: default; }
.adm-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.adm-toolbar select { height: 38px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; background: var(--white); }
.ext-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ext-row:last-child { border-bottom: 0; }
.ext-row .ord { font-family: var(--serif); font-size: 22px; color: var(--gold); text-align: center; }
.ext-row small { display: block; color: var(--steel); font-size: 12px; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 11px; background: #CBD2DC; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(18px); }
.stat-placeholder { padding: 26px; border: 1px dashed rgba(16,29,58,.2); border-radius: 14px; color: var(--steel); font-size: 13px; text-align: center; }

/* ---------- Assistant Claude (admin) ---------- */
.wizard { width: min(1080px, 100%); }
.wz-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 70px; }
.wz-head h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; }
.wz-head p { margin: 2px 0 0; color: var(--steel); font-size: 12.5px; }
.wz-steps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.wz-steps li { width: 34px; height: 4px; border-radius: 2px; background: var(--pearl); }
.wz-steps li.is-done { background: var(--gold); }
.wz-body { padding: 26px 28px; }
.wz-foot { padding: 16px 28px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; position: sticky; bottom: 0; background: var(--ivory); }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.drop { position: relative; border: 1.5px dashed rgba(16,29,58,.22); border-radius: 18px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; background: var(--white); transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: rgba(201,162,77,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .lbl { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.drop .ph { width: 120px; aspect-ratio: 63/88; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.drop .ph .card-svg, .drop .ph img { width: 100%; height: 100%; object-fit: cover; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.editor-box { background: var(--white); border-radius: 18px; border: 1px solid var(--line); padding: 18px; }
.editor-box h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.crop-stage { position: relative; height: 280px; border-radius: 12px; background: repeating-conic-gradient(#EEF0F4 0 25%, #F7F8FA 0 50%) 0 0 / 18px 18px; overflow: hidden; display: grid; place-items: center; }
.crop-img { width: 150px; aspect-ratio: 63/88; transition: transform .15s; }
.crop-img > * { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.crop-frame { position: absolute; width: 162px; aspect-ratio: 63/88; border: 1.5px dashed var(--gold); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 999px rgba(16,29,58,.18); }
.crop-frame::before { content: "Contour détecté"; position: absolute; top: -24px; left: 0; font-size: 10.5px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; font-weight: 700; background: rgba(250,249,246,.9); padding: 1px 6px; border-radius: 4px; }
.range-row { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--steel); margin-top: 8px; }
.range-row input { accent-color: var(--navy); }
.analyzing { text-align: center; padding: 70px 20px; }
.analyzing .scan { width: 150px; aspect-ratio: 63/88; margin: 0 auto 26px; position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.analyzing .scan > :first-child { width: 100%; height: 100%; object-fit: cover; }
.analyzing .scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(201,162,77,.55), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.analyzing ol { list-style: none; padding: 0; margin: 18px auto 0; max-width: 360px; text-align: left; font-size: 13.5px; color: var(--steel); }
.analyzing li { padding: 4px 0; opacity: .35; transition: opacity .3s; }
.analyzing li.is-on { opacity: 1; color: var(--navy); }
.analyzing li.is-on::before { content: "✓ "; color: var(--gold); }
.form-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 26px; }
.ai-field { position: relative; }
.ai-field .conf { position: absolute; right: 0; top: 0; }
.ai-field .note { font-size: 12px; color: #8A5A12; margin-top: -2px; }
.ai-field.needs-confirm input, .ai-field.needs-confirm select { border-color: #D9A441; background: #FFFCF4; }
.confirm-chk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #7A5212; margin-top: 2px; cursor: pointer; }
.admin-only { border-left: 2px solid var(--navy); padding-left: 12px; }
.claude-qs { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; align-self: start; position: sticky; top: 0; }
.claude-qs h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.claude-q { background: var(--ivory); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 10px; border: 1px solid var(--line); }
.claude-q.done { opacity: .55; }
.claude-q .chat-chips { margin-top: 8px; }
.callout { border-radius: 14px; padding: 14px 16px; font-size: 13.5px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.callout-gold { background: rgba(201,162,77,.12); color: #5E4A1A; }
.callout-steel { background: rgba(96,120,157,.1); color: var(--ink-2); }
.callout .grow { flex: 1; min-width: 220px; }
.preview-wrap { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.publish-chk { display: flex; gap: 10px; align-items: center; font-size: 13.5px; cursor: pointer; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 12px 14px; gap: 12px; overflow-x: auto; }
  .adm-side .tag, .adm-side .back { display: none; }
  .adm-side .logo .logo-atelier, .adm-side .logo .logo-rule { display: none; }
  .adm-nav { flex-direction: row; }
  .adm-nav button { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
  .adm-main { padding: 22px 16px 80px; }
  .adm-grid, .drop-grid, .editor, .form-layout { grid-template-columns: 1fr; }
  .claude-cta { flex-direction: column; align-items: flex-start; }
  .claude-cta .actions { align-items: flex-start; }
  .claude-qs { position: static; order: -1; }
  .drop { min-height: 220px; }
  .tbl .hide-sm { display: none; }
}

/* ---------- Ajustements mobiles complémentaires ---------- */
.wz-head h2, .claude-cta h2, .adm-top h1 { line-height: 1.12; }
@media (max-width: 640px) {
  .demo-ribbon { font-size: 9.5px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; }
  .wz-head { padding: 20px 18px 14px; padding-right: 60px; }
  .wz-head h2 { font-size: 25px; }
  .wz-body { padding: 18px; }
  .wz-foot { padding: 12px 18px calc(14px + var(--safe-b)); }
  .wz-foot > span { display: none; }
  .wz-foot .btn { height: 42px; padding: 0 16px; font-size: 11px; }
  .claude-cta h2 { font-size: 26px; }
  .claude-cta .btn { height: auto; min-height: 48px; padding: 10px 22px; }
  .adm-top h1 { font-size: 32px; }
}

/* =====================================================================
   GROS TITRES — style « extended » (inspiration Akira Expanded)
   Akira Expanded étant une police commerciale, la maquette utilise
   Unbounded (Google Fonts, libre) : large, très grasse, en capitales.
   ===================================================================== */
:root { --display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif; }
.hero h1, .ext-head h2, .product-info h2, .drawer-head h2, .co-main h2, .confirm h2,
.adm-top h1, .wz-head h2, .claude-cta h2, .empty-state .big {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.04;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; }
.ext-head h2 { font-size: clamp(20px, 2.8vw, 36px); }
.product-info h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 4px; }
.drawer-head h2 { font-size: 20px; }
.co-main h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.confirm h2 { font-size: clamp(26px, 3.6vw, 40px); }
.adm-top h1 { font-size: clamp(22px, 2.6vw, 30px); }
.wz-head h2, .claude-cta h2 { font-size: clamp(18px, 2vw, 24px); }
.empty-state .big { font-size: 18px; }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(28px, 8.6vw, 40px); }
  .ext-head h2 { font-size: clamp(19px, 5.6vw, 26px); }
  .product-info h2 { font-size: 22px; }
  .wz-head h2 { font-size: 18px; }
}

/* ---------- Titres d'extension centrés ---------- */
.ext-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.ext-head .ext-meta { margin-bottom: 10px; }
.ext-count { white-space: normal; }
.ext-rule { background: linear-gradient(90deg, var(--line) 0, var(--line) calc(50% - 32px), var(--gold) calc(50% - 32px), var(--gold) calc(50% + 32px), var(--line) calc(50% + 32px)); }

/* ---------- Carte d'accueil (photo) ---------- */
.hero-card { width: 260px; border-radius: 4.5% / 3.2%; background: transparent; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.hero-card::after { mix-blend-mode: overlay; }
@media (max-width: 900px) { .hero-card { width: 190px; } }

/* ---------- Effet de lumière (comme la carte d'accueil) sur les cartes photographiées ---------- */
.cf-inner.has-photo { background: transparent; }
.cf-inner.has-photo::after, .face.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 48%, transparent 62%);
  background-size: 250% 100%; mix-blend-mode: overlay; animation: sheen 6s ease-in-out infinite;
}
.cf-card:not(.is-center) .cf-inner.has-photo::after { opacity: .55; }
.cf-card:nth-child(2n) .cf-inner.has-photo::after { animation-delay: -2s; }
.cf-card:nth-child(3n) .cf-inner.has-photo::after { animation-delay: -4s; }
.face.has-photo { background: transparent; }
.cf-inner.has-photo .cf-shade { z-index: 3; }

/* ---------- Répertoire : logo en grand, nom en petit ---------- */
.ext-directory { padding: 8px 0 24px; }
.ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ext-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 26px 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s;
}
.ext-card:hover { transform: translateY(-3px); border-color: rgba(201,162,77,.6); box-shadow: 0 20px 40px -24px rgba(16,29,58,.35); }
.ext-logo { height: 96px; width: 100%; display: grid; place-items: center; }
.ext-logo img { max-height: 96px; max-width: 88%; object-fit: contain; }
.ext-emblem { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ivory)); }
.ext-emblem::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(201,162,77,.35); }
.ext-emblem span { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: .02em; }
.ext-card-name { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.ext-card-meta { font-size: 11px; color: var(--steel); margin-top: -6px; }

/* Barre compacte : apparaît une fois le répertoire dépassé */
.ext-nav { position: fixed; left: 0; right: 0; top: var(--header-h); transform: translateY(-120%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s; }
.ext-nav.is-on { transform: none; opacity: 1; pointer-events: auto; }
.ext-nav-inner { min-height: 60px; }
.ext-tile { padding: 5px 14px 5px 5px; gap: 10px; }
.ext-mark { width: 30px; height: 30px; font-size: 8.5px; overflow: hidden; }
.ext-mark img { width: 80%; height: 80%; object-fit: contain; }
.ext-tile-name { font-size: 12.5px; }
.ext-section { scroll-margin-top: calc(var(--header-h) + 64px); }
.adm-ext-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); font-size: 9px; font-weight: 700; color: var(--gold); margin-right: 10px; vertical-align: middle; overflow: hidden; background: #fff; }
.adm-ext-logo img { width: 80%; height: 80%; object-fit: contain; }
@media (max-width: 640px) {
  .ext-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ext-card { padding: 18px 10px 14px; }
  .ext-logo { height: 70px; } .ext-logo img { max-height: 70px; }
  .ext-emblem { width: 66px; height: 66px; } .ext-emblem span { font-size: 15px; }
  .ext-card-name { font-size: 11px; }
}
.ext-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); justify-content: center; }
@media (max-width: 640px) { .ext-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Recherche dans une extension ---------- */
.ext-search { position: relative; width: min(460px, 100%); margin: 26px auto 0; z-index: 20; }
.ext-search input {
  width: 100%; height: 50px; padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid rgba(16,29,58,.16);
  background: var(--white); font-size: 15px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.ext-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.16); }
.ext-search-ico { position: absolute; left: 18px; top: 16px; color: var(--steel); pointer-events: none; }
.ext-search-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(16,29,58,.45);
  max-height: 340px; overflow: auto; animation: msgIn .25s var(--ease);
}
.ext-search-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.ext-search-list li.is-active, .ext-search-list li[data-i]:hover { background: rgba(201,162,77,.1); }
.ext-search-list li .cart-thumb { width: 34px; }
.ext-search-list li strong { display: block; font-size: 14px; }
.ext-search-list li small { display: block; font-size: 12px; color: var(--steel); }
.ext-search-list li.empty { display: block; color: var(--steel); font-size: 13px; cursor: default; padding: 12px 14px; }
.cf-card.is-found .cf-inner { animation: found 1.6s var(--ease); }
@keyframes found { 0% { box-shadow: 0 0 0 0 rgba(201,162,77,.9); } 40% { box-shadow: 0 0 0 10px rgba(201,162,77,.35); } 100% { box-shadow: 0 0 0 0 rgba(201,162,77,0); } }
@media (max-width: 640px) { .ext-search { margin-top: 20px; } .ext-search input { font-size: 16px; } }

/* ---------- Recherche générale (en-tête) ---------- */
.header-actions { display: flex; align-items: center; gap: 6px; }
.gsearch { position: relative; }
.gsearch-toggle { display: none; }
.gsearch-field { position: relative; width: 280px; }
.gsearch-field input {
  width: 100%; height: 42px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid rgba(16,29,58,.14);
  background: rgba(255,255,255,.75); font-size: 14px; transition: border-color .2s, box-shadow .2s, width .3s var(--ease); -webkit-appearance: none; appearance: none;
}
.gsearch-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.16); background: var(--white); }
.gsearch-ico { position: absolute; left: 15px; top: 12.5px; color: var(--steel); pointer-events: none; }
.gsearch-close { display: none; }
.gsearch-list {
  position: absolute; right: 0; top: calc(100% + 10px); width: 360px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 60px -26px rgba(16,29,58,.5);
  max-height: min(440px, 70vh); overflow: auto; animation: msgIn .25s var(--ease); z-index: 60;
}
.gsearch-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.gsearch-list li.is-active, .gsearch-list li[data-i]:hover { background: rgba(201,162,77,.1); }
.gsearch-list li .cart-thumb { width: 38px; }
.gsearch-list li strong { display: block; font-size: 14px; }
.gsearch-list li small { display: block; font-size: 11.5px; color: var(--steel); line-height: 1.4; }
.gsearch-list li.empty { display: block; color: var(--steel); font-size: 13px; cursor: default; padding: 12px 14px; }
@media (max-width: 760px) {
  .gsearch-toggle { display: inline-grid; }
  .gsearch-field { display: none; }
  .gsearch.is-open .gsearch-field {
    display: block; position: fixed; left: 0; right: 0; top: 0; width: auto; z-index: 70;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: var(--ivory); border-bottom: 1px solid var(--line);
  }
  .gsearch.is-open .gsearch-field input { padding-right: 48px; font-size: 16px; height: 46px; }
  .gsearch.is-open .gsearch-ico { left: 31px; top: calc(26.5px + env(safe-area-inset-top, 0px)); }
  .gsearch.is-open .gsearch-close { display: grid; place-items: center; position: absolute; right: 22px; top: calc(16px + env(safe-area-inset-top, 0px)); width: 38px; height: 38px; border: 0; background: none; cursor: pointer; color: var(--steel); }
  .gsearch-list { position: static; width: auto; margin-top: 10px; max-height: 70vh; }
}
@media (max-width: 760px) { .gsearch-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; } }
.owner-field .seg { align-self: flex-start; } .owner-field .seg button { min-width: 96px; }

/* ---------- Répertoire dense : 10 extensions par ligne ---------- */
.ext-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; justify-content: stretch; }
.ext-card { padding: 14px 6px 10px; gap: 6px; border-radius: 14px; min-width: 0; }
.ext-logo { height: 54px; }
.ext-logo img { max-height: 54px; max-width: 90%; }
.ext-emblem { width: 52px; height: 52px; }
.ext-emblem::before { inset: 4px; }
.ext-emblem span { font-size: 12px; }
.ext-card-name { font-size: 10.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.ext-card-meta { font-size: 10px; margin-top: -3px; }
@media (max-width: 1100px) { .ext-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ext-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ext-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ext-card { padding: 10px 4px 8px; }
  .ext-logo { height: 42px; } .ext-logo img { max-height: 42px; }
  .ext-emblem { width: 40px; height: 40px; } .ext-emblem span { font-size: 10px; }
  .ext-card-name { font-size: 9.5px; }
  .ext-card-meta { display: none; }
}

/* ---------- Répertoire centré (dernière ligne incluse) ---------- */
.ext-directory { display: flex; justify-content: center; }
.ext-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.ext-card { flex: 0 0 calc((100% - 9 * 10px) / 10); }
@media (max-width: 1100px) { .ext-card { flex-basis: calc((100% - 7 * 10px) / 8); } }
@media (max-width: 900px) { .ext-card { flex-basis: calc((100% - 5 * 10px) / 6); } }
@media (max-width: 640px) { .ext-grid { gap: 8px; } .ext-card { flex-basis: calc((100% - 3 * 8px) / 4); } }

/* =====================================================================
   POLICE « EXTENDED » PARTOUT SAUF LE LOGO
   La variable --serif pointe désormais vers la police large ; le logo garde sa police classique.
   ===================================================================== */
:root { --serif: var(--display); }
.logo-151 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important; font-weight: 500 !important; text-transform: none !important; }
.promise-k, .co-summary h3, .chat-head strong, .claude-qs h4, .analyzing h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.2;
}
.promise-k { font-size: 15px; margin-bottom: 10px; }
.co-summary h3 { font-size: 15px; margin-bottom: 14px; }
.chat-head strong { font-size: 13px; margin-bottom: 3px; }
.claude-qs h4 { font-size: 13px; }
.analyzing h3 { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 6px !important; }
.product-price { font-family: var(--display); font-weight: 700; font-size: 24px; }
.totals .grand { font-family: var(--display); font-weight: 700; font-size: 17px; padding-top: 12px; }
.ext-row .ord { font-family: var(--display); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .promise-k { font-size: 14px; } .product-price { font-size: 22px; } }

/* ---------- Bouton flottant « Extensions » (remplace la barre compacte) ---------- */
.ext-nav { display: none !important; }
.ext-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.to-ext {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 140;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
  border: 1px solid rgba(201,162,77,.55); background: rgba(16,29,58,.92); color: var(--ivory);
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 16px 34px -14px rgba(11,20,43,.7); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s, background .2s;
}
.to-ext svg { color: var(--gold); }
.to-ext.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.to-ext:hover { background: var(--navy); }
.ext-card.is-current { border-color: rgba(201,162,77,.7); }
body.no-scroll .to-ext { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .to-ext { bottom: calc(22px + var(--safe-b)); height: 44px; } }

/* ---------- Logo de l'extension au-dessus du titre de section ---------- */
.ext-head-logo { display: grid; place-items: center; height: 84px; margin: 0 auto 14px; }
.ext-head-logo img { max-height: 84px; max-width: 260px; object-fit: contain; }
.ext-head-logo .ext-emblem { width: 72px; height: 72px; }
.ext-head-logo .ext-emblem span { font-size: 16px; }
@media (max-width: 640px) {
  .ext-head-logo { height: 64px; margin-bottom: 10px; }
  .ext-head-logo img { max-height: 64px; max-width: 200px; }
  .ext-head-logo .ext-emblem { width: 56px; height: 56px; } .ext-head-logo .ext-emblem span { font-size: 13px; }
}

/* =====================================================================
   RÉPERTOIRE PAR BLOCS + MENU DÉROULANT DES EXTENSIONS
   ===================================================================== */
.bloc-wrap { width: 100%; }
.bloc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bloc-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 168px; padding: 20px 12px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s, background .25s;
}
.bloc-card:hover { transform: translateY(-3px); border-color: rgba(201,162,77,.6); box-shadow: 0 20px 40px -24px rgba(16,29,58,.35); }
.bloc-card.is-open { background: var(--navy); border-color: var(--navy); color: var(--ivory); transform: none; box-shadow: 0 22px 44px -22px rgba(16,29,58,.6); }
.bloc-logo { height: 64px; width: 100%; display: grid; place-items: center; }
.bloc-logo img { max-height: 64px; max-width: 92%; object-fit: contain; }
.bloc-word { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
.bloc-card.is-open .bloc-word { color: var(--gold-soft); }
.bloc-name { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bloc-meta { font-size: 11px; color: var(--steel); }
.bloc-card.is-open .bloc-meta { color: rgba(250,249,246,.65); }
.bloc-chev { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); color: var(--gold); transition: transform .35s var(--ease); }
.bloc-card.is-open .bloc-chev { transform: translateX(-50%) rotate(180deg); }
.bloc-panel { margin-top: 14px; padding: 18px 18px 20px; border-radius: 20px; background: var(--white); border: 1px solid rgba(201,162,77,.45); box-shadow: 0 24px 50px -30px rgba(16,29,58,.4); }
.bloc-panel.is-anim { animation: blocDown .45s var(--ease); transform-origin: top center; }
@keyframes blocDown { from { opacity: 0; transform: translateY(-10px) scaleY(.96); } }
.bloc-panel-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 14px; }
.bloc-panel-head span { font-family: var(--display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.bloc-panel-head small { font-size: 12px; color: var(--steel); }
.bloc-panel-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bloc-panel-grid .ext-card { flex: 0 0 calc((100% - 7 * 10px) / 8); background: var(--ivory); }
.bloc-panel-grid .ext-card:hover { background: var(--white); }
@media (max-width: 1100px) { .bloc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bloc-panel-grid .ext-card { flex-basis: calc((100% - 5 * 10px) / 6); } }
@media (max-width: 640px) {
  .bloc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bloc-card { min-height: 136px; padding: 14px 8px 26px; }
  .bloc-logo { height: 48px; } .bloc-logo img { max-height: 48px; }
  .bloc-word { font-size: 13px; }
  .bloc-panel { padding: 14px 10px; }
  .bloc-panel-grid { gap: 8px; }
  .bloc-panel-grid .ext-card { flex-basis: calc((100% - 2 * 8px) / 3); }
}
.bloc-word { font-size: 17px; } @media (max-width: 640px) { .bloc-word { font-size: 14px; } }

/* ---------- 12 blocs : 2 lignes de 6, cases plus petites ---------- */
.bloc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bloc-card { min-height: 118px; padding: 14px 8px 24px; gap: 5px; border-radius: 14px; }
.bloc-logo { height: 44px; } .bloc-logo img { max-height: 44px; }
.bloc-word { font-size: 13px !important; }
.bloc-name { font-size: 10.5px; }
.bloc-meta { font-size: 10px; line-height: 1.35; }
.bloc-chev { bottom: 6px; width: 14px; height: 14px; }
@media (max-width: 900px) { .bloc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bloc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bloc-card { min-height: 104px; padding: 10px 5px 22px; }
  .bloc-logo { height: 36px; } .bloc-logo img { max-height: 36px; }
  .bloc-word { font-size: 11px !important; }
  .bloc-meta { font-size: 9px; }
}

/* ---------- Blocs centrés (dernière ligne incomplète comprise) ---------- */
.bloc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.bloc-card { flex: 0 0 calc((100% - 5 * 10px) / 6); }
@media (max-width: 900px) { .bloc-card { flex-basis: calc((100% - 3 * 10px) / 4); } }
@media (max-width: 640px) { .bloc-grid { gap: 8px; } .bloc-card { flex-basis: calc((100% - 2 * 8px) / 3); } }

/* =====================================================================
   RÉPERTOIRE : LOGOS SEULS (blocs et extensions)
   Le nom reste disponible au survol (title) et pour les lecteurs d'écran (aria-label).
   ===================================================================== */
.bloc-card .bloc-name, .bloc-card .bloc-meta, .bloc-card .bloc-chev,
.bloc-panel .ext-card-name, .bloc-panel .ext-card-meta, .bloc-panel-head { display: none; }
.bloc-card { min-height: 96px; padding: 14px 12px; }
.bloc-logo { height: 60px; } .bloc-logo img { max-height: 60px; max-width: 94%; }
/* bloc ouvert : fond clair et liseré doré (les logos sombres restent lisibles) */
.bloc-card.is-open { background: var(--white); color: inherit; border: 2px solid var(--gold); box-shadow: 0 18px 36px -22px rgba(16,29,58,.45); transform: translateY(-2px); }
.bloc-card.is-open .bloc-word { color: var(--navy); }
.bloc-card.is-open::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: var(--white); border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.bloc-panel { padding: 16px; margin-top: 16px; }
.bloc-panel-grid .ext-card { padding: 14px 10px; min-height: 92px; }
.bloc-panel-grid .ext-logo { height: 62px; } .bloc-panel-grid .ext-logo img { max-height: 62px; max-width: 94%; }
@media (max-width: 640px) {
  .bloc-card { min-height: 76px; padding: 10px 8px; }
  .bloc-logo { height: 44px; } .bloc-logo img { max-height: 44px; }
  .bloc-panel-grid .ext-card { min-height: 72px; padding: 10px 6px; }
  .bloc-panel-grid .ext-logo { height: 44px; } .bloc-panel-grid .ext-logo img { max-height: 44px; }
}
.hero-sub { margin-bottom: 0; }

/* ---------- Recadrage automatique : comparaison avant / après ---------- */
.proc-compare { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.proc-compare figure { margin: 0; text-align: center; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--ivory); }
.proc-compare figure.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.15); }
.proc-compare img { height: 120px; width: auto; max-width: 140px; object-fit: contain; display: block; margin: 0 auto; }
.proc-compare figcaption { font-size: 10.5px; color: var(--steel); margin-top: 4px; }
.proc-arrow { color: var(--gold); font-size: 18px; }
.proc-report { list-style: none; margin: 0 0 8px; padding: 0; font-size: 12px; color: var(--ink-2); }
.proc-report li { padding: 2px 0 2px 18px; position: relative; }
.proc-report li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* =====================================================================
   VISUEL OFFICIEL + GALERIE « VOIR LES PHOTOS DE LA CARTE »
   ===================================================================== */
.cf-inner.has-photo .card-photo, .face.has-photo .card-photo { object-fit: contain; }
.photos-btn { margin-top: 2px; }
.photos-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--navy); color: var(--gold-soft); font-size: 11px; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 30, .86); animation: fadeIn .25s; }
.lb-panel { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; gap: 12px; animation: popIn .35s var(--ease); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ivory); }
.lb-head strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; }
.lb-head span { font-size: 12.5px; color: var(--gold-soft); }
.lb-head .icon-btn { color: var(--ivory); } .lb-head .icon-btn:hover { background: rgba(255,255,255,.1); }
.lb-stage { position: relative; flex: 1; min-height: 0; height: min(64dvh, 680px); border-radius: 16px; background: #0B1226; overflow: hidden; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s ease-out; user-select: none; touch-action: none; }
.lb-stage.is-zoom img { transform: scale(2.6); cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(201,162,77,.5); background: rgba(16,29,58,.75); color: var(--ivory); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-label { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--ivory); background: rgba(16,29,58,.7); padding: 4px 10px; border-radius: 999px; }
.lb-hint { position: absolute; right: 14px; bottom: 12px; font-size: 11.5px; color: rgba(250,249,246,.7); }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-bottom: 2px; }
.lb-thumb { flex: none; width: 76px; padding: 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); cursor: pointer; color: rgba(250,249,246,.75); }
.lb-thumb img { width: 100%; height: 72px; object-fit: contain; display: block; }
.lb-thumb span { display: block; font-size: 10.5px; margin-top: 3px; }
.lb-thumb.is-on { border-color: var(--gold); background: rgba(201,162,77,.15); color: var(--ivory); }
.lb-defects { margin: 0; font-size: 13px; color: rgba(250,249,246,.85); text-align: center; }
.lb-defects strong { color: var(--gold-soft); }
/* assistant : visuel + photos */
.visual-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.drop-visual { min-height: 260px; }
.drop-visual .ph { width: 140px; }
.drop-visual .ph img { object-fit: contain; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 63/88; border-radius: 10px; border: 1.5px dashed rgba(16,29,58,.22); background: var(--ivory); display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.photo-slot:hover { border-color: var(--gold); }
.photo-slot.has { border-style: solid; border-color: var(--line); cursor: default; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .plus { font-size: 26px; color: var(--steel); line-height: 1; }
.photo-lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 10.5px; font-weight: 600; text-align: center; background: rgba(250,249,246,.92); color: var(--navy); }
.photo-rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(16,29,58,.8); color: #fff; font-size: 11px; cursor: pointer; z-index: 2; }
@media (max-width: 900px) { .visual-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .lightbox { padding: 0; } .lb-panel { max-height: 100dvh; height: 100dvh; padding: 14px 12px calc(14px + var(--safe-b)); }
  .lb-stage { height: auto; flex: 1; border-radius: 12px; }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; } .lb-hint { display: none; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) { .lb-backdrop { background: #0B1226; } }

/* ---------- Galerie : la photo tient toujours entière dans le cadre (photos verticales de téléphone incluses) ---------- */
.lb-panel { height: calc(100dvh - 40px); }
.lb-stage { height: auto; flex: 1 1 auto; min-height: 0; display: block; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.lb-thumbs, .lb-head, .lb-defects { flex: none; }
@media (max-width: 640px) { .lb-panel { height: 100dvh; } }

/* ---------- Barre de publication (case de vérification à côté du bouton) ---------- */
.pub-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.pub-bar .publish-chk { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: rgba(201,162,77,.1); border: 1px solid rgba(201,162,77,.35); }
.pub-bar .publish-chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.publish-chk.is-alert { animation: shake .5s; border-color: #C0392B !important; background: #FBEDEB !important; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 640px) { .pub-bar { justify-content: stretch; width: 100%; } .pub-bar .publish-chk { width: 100%; } .pub-bar .row-actions { width: 100%; } .pub-bar .row-actions .btn { flex: 1; } }
body:has(.wizard-modal:not([hidden])) .toast { bottom: auto; top: 24px; transform: translate(-50%, -20px); } body:has(.wizard-modal:not([hidden])) .toast.is-on { transform: translate(-50%, 0); }

/* =====================================================================
   PAGES LÉGALES (popup)
   ===================================================================== */
.footer-links button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.footer-links button:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal-panel { width: min(860px, 100%); }
.lg-head { position: sticky; top: 0; z-index: 3; background: var(--ivory); padding: 34px 40px 0; border-bottom: 1px solid var(--line); }
.lg-head .eyebrow { margin-bottom: 8px; }
.lg-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; line-height: 1.1; padding-right: 50px; }
.lg-updated { font-size: 12px; color: var(--steel); margin: 0 0 14px; }
.lg-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs button { flex: none; border: 0; background: none; padding: 10px 12px 12px; font-size: 12.5px; font-weight: 600; color: var(--steel); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.lg-tabs button:hover { color: var(--navy); }
.lg-tabs button.is-on { color: var(--navy); border-bottom-color: var(--gold); }
.lg-body { padding: 26px 40px 36px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.lg-body h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: var(--navy); margin: 26px 0 8px; }
.lg-body h3:first-child { margin-top: 0; }
.lg-body p { margin: 0 0 12px; }
.lg-body ul, .lg-body ol { margin: 0 0 14px; padding-left: 20px; }
.lg-body li { margin-bottom: 4px; }
.lg-lead { font-size: 15.5px; color: var(--navy); }
.lg-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 13.5px; }
.lg-table th { text-align: left; vertical-align: top; width: 30%; padding: 10px 14px 10px 0; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line); }
.lg-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lg-todo { background: #FFF1C9; color: #6B4E0E; border-radius: 4px; padding: 0 4px; font-weight: 600; font-size: .94em; }
.lg-form { background: var(--white); border: 1px dashed rgba(16,29,58,.22); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; }
.lg-cta { margin: 10px 0 18px; }
.lg-retract, .lg-contact { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 8px; }
.lg-draft { margin-top: 28px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--steel); }
.cgv-chk { margin-top: 4px; font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(201,162,77,.4); background: rgba(201,162,77,.08); align-items: flex-start; }
.cgv-chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.cgv-chk .link-btn { font-size: inherit; color: var(--navy); }
@media (max-width: 640px) {
  .lg-head { padding: 26px 20px 0; } .lg-body { padding: 20px 20px calc(30px + var(--safe-b)); font-size: 14px; }
  .lg-table th { width: 38%; }
}

/* ---------- Filtres « Rareté » et « État de la carte » (sous la recherche de l'extension) ---------- */
.ext-filters { display: flex; justify-content: center; gap: 12px; margin: 12px auto 0; width: min(460px, 100%); }
.ext-filter { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ext-filter span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); text-align: left; padding-left: 14px; }
.ext-filter select {
  height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid rgba(16,29,58,.16); background-color: var(--white); font-size: 14px; color: var(--navy); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23C9A24D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; transition: border-color .2s, box-shadow .2s;
}
.ext-filter select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.16); }
.cf-empty { text-align: center; color: var(--steel); font-size: 14px; padding: 60px 20px; margin: 0; }
@media (max-width: 640px) { .ext-filters { gap: 8px; } .ext-filter select { font-size: 16px; height: 42px; padding-left: 14px; } .ext-filter span { padding-left: 12px; font-size: 10px; } }

/* ---------- Guide des états ---------- */
.guide-link { font-size: 12px; margin-left: 6px; vertical-align: middle; }
.cond-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 22px; }
.cond { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.cond .badge { justify-self: start; margin-top: 2px; }
.cond strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.cond p { margin: 0; font-size: 13.5px; }
.cond.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.cond.is-current::after { content: "État de cette carte"; grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7D6224; }
@media (max-width: 640px) { .cond { grid-template-columns: 1fr; gap: 6px; } }
/* Carte d'accueil : visuel du catalogue (SVG ou PNG) */
.hero-card .card-svg, .hero-card .card-photo { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ---------- Panier : minimum de commande et progression livraison offerte ---------- */
.cart-note { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(201,162,77,.08); border: 1px solid rgba(201,162,77,.3); font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.cart-note strong { color: var(--navy); }
.cart-note-warn { background: #FBF0DD; border-color: #E8C98A; }
.cart-note-ok { background: #E7F1EA; border-color: #B9D8C2; }
.cart-note-ok strong { color: #2F6B43; }
.ship-bar { height: 6px; border-radius: 3px; background: var(--pearl); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #E6CB87); border-radius: 3px; transition: width .5s var(--ease); }
.ship-free { color: #2F6B43 !important; font-weight: 700; }

/* ---------- Statistiques (administration) ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-grid-sm .kpi { background: var(--ivory); padding: 12px 14px; }
.kpi-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.kpi-value { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--navy); line-height: 1.15; }
.kpi-grid-sm .kpi-value { font-size: 18px; }
.kpi-sub { font-size: 12px; color: var(--steel); }
.kpi.ok .kpi-value { color: #2F6B43; } .kpi.bad .kpi-value { color: #A33; }
.kpi.warn { border-color: #E8C98A; background: #FFFBF1; } .kpi.warn .kpi-value { color: #7A5212; }
.calc { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.calc td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.calc tr.sub td { font-weight: 700; color: var(--navy); }
.calc tr.total td { font-weight: 800; color: var(--navy); border-bottom: 0; font-size: 15px; padding-top: 12px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpi-grid, .kpi-grid-sm { grid-template-columns: 1fr 1fr; } .kpi-value { font-size: 19px; } }

/* ---------- Suivi de commande ---------- */
.footer-links [data-track] { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-links [data-track]:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.track-steps { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; gap: 0; }
.track-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--steel); position: relative; }
.track-steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--pearl); z-index: 0; }
.track-steps li:first-child::before { display: none; }
.track-steps .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--pearl); position: relative; z-index: 1; }
.track-steps li.done { color: var(--navy); } .track-steps li.done .dot { background: var(--gold); border-color: var(--gold); } .track-steps li.done::before, .track-steps li.current::before { background: var(--gold); }
.track-steps li.current { color: var(--navy); font-weight: 700; } .track-steps li.current .dot { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,77,.2); }
@media (max-width: 640px) { .track-steps li { font-size: 10px; } }
/* ---------- Étiquette (aperçu de démonstration) ---------- */
.mini-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.label-panel { width: min(520px, 100%); padding: 30px 30px 24px; }
.label-head h2 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 4px; }
.ship-label { margin-top: 16px; border: 2px dashed var(--navy); border-radius: 10px; padding: 18px; background: #fff; font-size: 13px; }
.sl-demo { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: #A33; margin-bottom: 12px; }
.sl-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sl-row span { color: var(--steel); }
.sl-bars { display: flex; justify-content: center; gap: 2px; height: 64px; margin: 16px 0 6px; }
.sl-bars i { display: block; background: #111; }
.sl-bars i:nth-child(3n) { background: transparent; }
.sl-track { text-align: center; font-family: ui-monospace, Menlo, monospace; letter-spacing: .1em; font-weight: 700; }
/* ---------- Guide photo (administration) ---------- */
.photo-guide { margin: 0 0 12px; border: 1px solid rgba(201,162,77,.4); background: rgba(201,162,77,.07); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.photo-guide summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.photo-guide ol { margin: 10px 0 2px; padding-left: 20px; color: var(--ink-2); }
.photo-guide li { margin-bottom: 5px; }

/* ===== Commande WhatsApp ===== */
.btn-wa { background: var(--navy); border-color: var(--navy); color: var(--white); gap: 10px; text-decoration: none; }
.btn-wa svg { color: #3DD37A; flex: none; }
.btn-wa:hover { background: #1B2C52; }
.demo-flag { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: 10px; background: rgba(201,162,77,.08); color: var(--ink-2); font-size: 13px; }
.demo-flag::before { content: "DÉMO"; display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.recap-box { margin: 0 0 16px; text-align: left; }
.recap-box small { color: var(--steel); }
.wa-preview { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.wa-preview summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 13px; }
.wa-preview pre { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; word-break: break-word; font: 13px/1.55 var(--sans); color: var(--ink-2); }
.confirm-mark.wa-mark { color: #1E9E55; }
.confirm-mark.wa-mark svg { width: 34px; height: 34px; }
.wa-num { display: flex; gap: 10px; align-items: center; }
.wa-num input { flex: 1; }
@media (max-width: 640px) { .co-actions .btn-wa { width: 100%; justify-content: center; } }
.co-main, .co-summary { min-width: 0; }
.relay-search input { min-width: 0; }
@media (max-width: 960px) { .co-body { grid-template-columns: minmax(0, 1fr); } }

/* ===== Recherche dans la base TCGdex (assistant d'ajout) ===== */
.tcg-box { margin-bottom: 18px; }
.tcg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.tcg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, transform .2s; }
.tcg-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.tcg-item.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,162,77,.35); }
.tcg-item.is-loading { opacity: .5; pointer-events: none; }
.tcg-item img { width: 100%; aspect-ratio: 63 / 88; object-fit: contain; border-radius: 6px; background: #EEF1F6; }
.tcg-item span { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.tcg-item small { font-size: 11px; color: var(--steel); }
.tcg-picked { align-items: center; gap: 14px; }
.tcg-picked img { width: 64px; border-radius: 6px; flex: none; }

/* ---------- Visuels de cartes : affichés en entier, jusqu'au bord exact de la carte ----------
   L'image (recadrée automatiquement au chargement, voir card-art.js) n'est plus rognée par
   son cadre : pas de fond ni de coins imposés, l'ombre suit la forme réelle de la carte. */
.cf-inner.has-photo, .face.has-photo { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.cf-card.is-center .cf-inner.has-photo { box-shadow: none; }
.cf-inner.has-photo .card-photo, .face.has-photo .card-photo, .hero-card .card-photo, .cart-thumb .card-photo {
  object-fit: contain; filter: drop-shadow(0 14px 22px rgba(16, 29, 58, .28)) drop-shadow(0 2px 4px rgba(16, 29, 58, .18));
}
.cf-card.is-center .cf-inner.has-photo .card-photo { filter: drop-shadow(0 18px 26px rgba(16, 29, 58, .30)) drop-shadow(0 3px 6px rgba(16, 29, 58, .18)); }
.cart-thumb .card-photo { filter: none; }
/* Reflet et ombrage limités à la carte (l'image garde ses coins arrondis d'origine) */
.cf-inner.has-photo .cf-sheen, .cf-inner.has-photo .cf-shade, .cf-inner.has-photo::after, .face.has-photo::after { border-radius: 4.6% / 3.3%; }
.hero-card:has(.card-photo) { box-shadow: none; overflow: visible; border-radius: 0; }
.hero-card .card-photo { width: 100%; height: 100%; display: block; }
.hero-card:has(.card-photo)::after { display: block; z-index: 2; pointer-events: none; -webkit-mask: var(--card-mask) center / contain no-repeat; mask: var(--card-mask) center / contain no-repeat; }
/* Reflets / ombrage découpés selon la forme réelle de la carte (image servant de masque) */
.cf-inner.has-photo .cf-sheen, .cf-inner.has-photo .cf-shade, .cf-inner.has-photo::after, .face.has-photo::after {
  -webkit-mask: var(--card-mask) center / contain no-repeat; mask: var(--card-mask) center / contain no-repeat; border-radius: 0;
}

/* ---------- Répertoire : un bloc ouvert prend toute la place ----------
   Les autres blocs sont masqués, le bloc choisi reste seul et centré, ses extensions
   s'affichent juste dessous, sans cadre autour (pas de marge perdue). */
.ext-directory.has-open .bloc-card:not(.is-open) { display: none; }
.ext-directory.has-open .bloc-card.is-open { flex: 0 0 min(260px, 70%); cursor: pointer; }
.bloc-panel { margin-top: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.bloc-panel .bloc-panel-head { display: flex; position: relative; justify-content: center; min-height: 40px; align-items: center; margin-bottom: 14px; }
.bloc-panel-head small { font-size: 12px; color: var(--steel); }
.bloc-back {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px;
  border: 1px solid rgba(16,29,58,.18); background: var(--white); color: var(--navy);
  font: 600 13px var(--sans); cursor: pointer; transition: border-color .2s, background .2s;
}
.bloc-back:hover { border-color: var(--gold); background: var(--ivory); }
.bloc-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; justify-content: stretch; }
.bloc-panel-grid .ext-card { flex: none; width: 100%; background: var(--white); }
.bloc-panel-grid .ext-card:hover { background: var(--ivory); }
@media (min-width: 1100px) { .bloc-panel-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (max-width: 640px) {
  .bloc-panel-head { flex-direction: column; gap: 6px; min-height: 0; }
  .bloc-back { position: static; transform: none; }
  .bloc-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
/* Peu d'extensions : colonnes de taille normale, centrées */
.bloc-panel-grid.is-few { grid-template-columns: repeat(var(--n), minmax(0, 240px)); justify-content: center; }
@media (max-width: 640px) { .bloc-panel-grid.is-few { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* Nombre impair d'extensions : la dernière est centrée, pas de trou à droite */
  .bloc-panel-grid .ext-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
}
/* Carte d'accueil : reflet lumineux bien visible qui balaie la carte (forme exacte de la carte) */
.hero-card:has(.card-photo)::after {
  background:
    linear-gradient(110deg, transparent 32%, rgba(255,255,255,.0) 38%, rgba(255,255,255,.85) 47%, rgba(255,255,255,.35) 51%, transparent 60%),
    linear-gradient(110deg, transparent 20%, rgba(180,220,255,.18) 40%, rgba(255,200,240,.18) 55%, transparent 75%);
  background-size: 260% 100%, 200% 100%; mix-blend-mode: soft-light; opacity: 1;
  animation: heroSheen 5.5s ease-in-out infinite;
}
.hero-card:has(.card-photo)::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.32) 48%, transparent 56%);
  background-size: 260% 100%; mix-blend-mode: screen; animation: heroSheen 5.5s ease-in-out infinite;
  -webkit-mask: var(--card-mask) center / contain no-repeat; mask: var(--card-mask) center / contain no-repeat;
}
@keyframes heroSheen { 0% { background-position: 130% 0, 100% 0; } 55%, 100% { background-position: -30% 0, 0% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-card:has(.card-photo)::after, .hero-card:has(.card-photo)::before { animation: none; background-position: 40% 0, 50% 0; } }
/* Mélange normal (les modes de fusion sont ignorés dans une scène 3D) */
.hero-card:has(.card-photo)::after {
  mix-blend-mode: normal;
  background: linear-gradient(110deg, transparent 36%, rgba(255,255,255,.08) 41%, rgba(255,255,255,.55) 47%, rgba(255,255,255,.18) 51%, transparent 57%);
  background-size: 260% 100%;
}
.hero-card:has(.card-photo)::before {
  mix-blend-mode: normal;
  background: linear-gradient(110deg, transparent 25%, rgba(170,215,255,.10) 42%, rgba(255,190,235,.10) 56%, transparent 72%);
  background-size: 200% 100%;
}
/* Carte d'accueil : reflet plus large et lumineux + halo qui suit la souris */
.hero-card:has(.card-photo)::after {
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.10) 38%, rgba(255,255,255,.62) 46%, rgba(255,255,255,.62) 49%, rgba(255,255,255,.12) 56%, transparent 64%);
  background-size: 300% 100%; animation: heroSheen2 6s cubic-bezier(.45,.05,.25,1) infinite;
}
.hero-card:has(.card-photo)::before {
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.42), rgba(255,255,255,.08) 28%, transparent 55%);
  background-size: 100% 100%; animation: none; opacity: var(--glare, .55); transition: opacity .4s;
}
@keyframes heroSheen2 { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-card:has(.card-photo)::after { animation: none; background-position: 50% 0; } }
/* Fiche : rythme vertical régulier entre extension, nom et prix (même écart visuel) */
.product-info .product-ext { margin: 0; line-height: 1.2; }
.product-info h2 { margin: 12px 0 0; line-height: 1.08; text-wrap: balance; }
.product-info .product-price { margin: 12px 0 22px; line-height: 1.1; }
@supports (text-box: trim-both cap alphabetic) {
  /* Navigateurs récents : l'écart se mesure du haut des capitales à la ligne de base */
  .product-info .product-ext, .product-info h2, .product-info .product-price { text-box: trim-both cap alphabetic; }
  .product-info h2 { margin-top: 16px; }
  .product-info .product-price { margin-top: 16px; }
}

/* ---------- Photos de l'exemplaire : bien visibles dès l'ouverture de la fiche ---------- */
.photos-btn { position: relative; overflow: hidden; }
.photos-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.photos-btn.is-nudge { animation: photosNudge 1.1s cubic-bezier(.36,.07,.19,.97) 2; }
.photos-btn.is-nudge::after { animation: photosShine 1.1s ease-out 2; }
@keyframes photosNudge {
  0%, 100% { transform: translateY(0) scale(1); }
  15% { transform: translateY(-4px) scale(1.04); }
  30% { transform: translateY(0) scale(1); }
  42% { transform: rotate(-2deg); } 54% { transform: rotate(2deg); } 66% { transform: rotate(-1deg); } 78% { transform: rotate(0); }
}
@keyframes photosShine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
.pm-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pm-thumb { position: relative; width: 58px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid rgba(16,29,58,.14); border-radius: 8px; overflow: hidden; background: var(--white); cursor: zoom-in; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(16,29,58,.78); color: #fff; font-size: 9px; font-weight: 600; text-align: center; letter-spacing: .02em; }
.pm-thumb:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 18px -10px rgba(16,29,58,.5); }
.pm-more { display: grid; place-items: center; font: 700 13px var(--sans); color: var(--navy); cursor: pointer; }
.state-photo-link { font-weight: 600; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .photos-btn.is-nudge, .photos-btn.is-nudge::after { animation: none; } }

/* Choix de la version (Holo / Reverse…) dans la fiche produit */
.variant-pick { margin: -6px 0 22px; }
.variant-title { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 112px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.variant-opt:hover { border-color: var(--gold-soft); }
.variant-opt.is-on { border-color: var(--gold); background: #FFFBF2; box-shadow: 0 0 0 3px rgba(201,162,77,.18); }
.variant-name { font-weight: 700; font-size: 14px; }
.variant-meta { font-size: 12px; color: var(--ink-2); }
@media (max-width: 640px) { .variant-opt { flex: 1 1 0; min-width: 0; } }

/* Carrousel : clic direct sur une carte + flèches sur ordinateur */
.cf .cf-card { cursor: pointer; }
.cf.is-grabbing, .cf.is-grabbing .cf-card { cursor: grabbing; }
.cf-nav {
  position: absolute; top: 50%; z-index: 2000; width: 48px; height: 48px; margin-top: -24px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(16,29,58,.12);
  background: rgba(255,255,255,.92); color: var(--navy); cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(16,29,58,.45); backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}
.cf-prev { left: max(16px, calc(50% - 560px)); }
.cf-next { right: max(16px, calc(50% - 560px)); }
.cf-nav:hover { background: var(--white); transform: scale(1.07); }
.cf-nav:active { transform: scale(.96); }
.cf-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .cf-nav { display: none; } }
.cf-hint .hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .cf-hint .hint-touch { display: none; } .cf-hint .hint-mouse { display: inline; } }

/* Prix de la carte du milieu, sous le carrousel */
.cf-price { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -18px auto 0; position: relative; min-height: 46px; text-align: center; }
.cf-price-name { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cf-price-name small { color: var(--steel); font-weight: 500; margin-left: 4px; }
.cf-price-val { font-family: var(--display, var(--sans)); font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: .01em; }
.cf-price.is-in { animation: cfPriceIn .35s var(--ease); }
@keyframes cfPriceIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-price.is-in { animation: none; } }

/* En-tête d'extension : plus de ligne grise */
.ext-rule { display: none; }
/* Séparateur entre deux extensions : fine ligne dorée, fondue aux deux bouts, au milieu de l'espace */
.ext-section + .ext-section { position: relative; }
.ext-section + .ext-section::before {
  content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  width: min(240px, 60vw); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(201,162,77,0) 0%, var(--gold) 30%, var(--gold) 70%, rgba(201,162,77,0) 100%);
}
@media (max-width: 640px) { .ext-section + .ext-section::before { top: 10px; } }

/* Demande de photos (fiche + panier) */
.photo-req { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 10px; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.photo-req input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold, #c9a227); flex: none; }
.photo-req:has(input:checked) { border-color: var(--gold, #c9a227); background: color-mix(in srgb, var(--gold, #c9a227) 8%, transparent); }
.photo-req-sm { margin: 6px 0 8px; padding: 0; border: 0; font-size: 12.5px; background: none !important; }
.photo-req-sm input { width: 16px; height: 16px; }
.photo-req-hint { font-size: 12.5px; color: var(--steel); }

/* Point de retrait saisi par le client (lien vers le site officiel Mondial Relay) */
.relay-steps { display: grid; gap: 10px; justify-items: start; margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; }
.relay-steps p { margin: 0; font-size: 14px; }
.relay-manual input.is-invalid { border-color: #c0392b; }
