/* ============================================================
   LE FIL NOIR — design sombre premium
   ============================================================ */
:root {
  --bg: #0b0b0d;
  --bg-soft: #121216;
  --bg-card: #16161b;
  --line: rgba(201, 162, 39, 0.22);
  --gold: #c9a227;
  --gold-soft: #e3c766;
  --champagne: #f0e9d8;
  --text: #ece7da;
  --muted: #9a958a;
  --danger: #e05c5c;
  --ok: #6fcf97;
  --radius: 14px;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 162, 39, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201, 162, 39, 0.05), transparent 60%);
}

h1, h2, h3, .brand { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; }

a { color: var(--gold-soft); }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-size: 1.5rem; color: var(--champagne); text-decoration: none;
  display: flex; align-items: baseline; gap: 10px;
}
.brand .dot { color: var(--gold); }
.brand small {
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.price-tag {
  font-size: 0.85rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.price-tag b { color: var(--gold-soft); font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border-radius: 999px; padding: 12px 26px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #171307;
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.25);
}
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4); }
.btn-ghost {
  background: transparent; color: var(--champagne);
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-soft); }
.btn-dark { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 90px 0 60px; }
.hero .kicker {
  letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.75rem;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--champagne); line-height: 1.12; }
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero p.lead { max-width: 620px; margin: 22px auto 34px; color: var(--muted); font-size: 1.05rem; }
.hero-steps {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px;
}
.hero-steps span {
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
}
.hero-steps b { color: var(--gold-soft); font-weight: 600; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 8px; justify-content: center; margin: 10px 0 34px; flex-wrap: wrap; }
.stepper .s {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 7px 15px; border-radius: 999px; border: 1px solid transparent;
}
.stepper .s.active { color: #171307; background: var(--gold); font-weight: 700; }
.stepper .s.done { color: var(--gold-soft); border-color: var(--line); }

/* ---------- Cards / sections ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-card), #121216);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.step-section { display: none; animation: fade 0.35s ease; }
.step-section.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-section h2 { font-size: 1.7rem; color: var(--champagne); margin-bottom: 6px; }
.step-section .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }

.row { display: grid; gap: 24px; }
.row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(255, 255, 255, 0.015);
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(201, 162, 39, 0.05); }
.dropzone .big { font-size: 2rem; color: var(--gold); }
.dropzone p { color: var(--muted); margin-top: 8px; font-size: 0.92rem; }
.preview-img {
  max-width: 100%; max-height: 340px; border-radius: 10px;
  border: 1px solid var(--line); display: block; margin: 0 auto;
}

/* ---------- Analyse IA ---------- */
.analysis-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font-size: 0.9rem; color: var(--text);
}
.analysis-box .lbl { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: rgba(201, 162, 39, 0.1); color: var(--gold-soft);
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem;
}
textarea.prompt-edit {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 0.82rem; line-height: 1.5;
}
textarea.prompt-edit:focus { outline: none; border-color: var(--gold); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.25); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; margin: 14px 0; min-height: 24px; }
.status-line.error { color: var(--danger); }
.status-line.ok { color: var(--ok); }
.status-line.warning { color: #8b5a16; }
.account-gate { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #f4f2ed; }
.account-gate p { margin: 0; font-size: .85rem; }
.account-page { padding-top: 48px; padding-bottom: 60px; max-width: 960px; }
.account-page h1 { font-size: 1.8rem; margin-bottom: 10px; }
.account-page .hint { margin: 12px 0 20px; }
.account-page form { max-width: 450px; }
.account-page .field { margin-bottom: 14px; }
.account-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.account-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.account-image { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.account-image img { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; }
.account-image b, .account-image span { padding: 0 4px; font-size: .8rem; }
.creations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.creations-grid figure { margin: 0; padding: 8px; background: #f5f3ee; border: 1px solid var(--line); border-radius: 8px; }
.creations-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: white; }
.creations-grid figcaption { padding: 7px 2px 0; font-size: .72rem; color: var(--muted); }

.generated-wrap { text-align: center; }
.generated-wrap img {
  max-width: 100%; max-height: 420px; border-radius: 12px;
  border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(201, 162, 39, 0.15);
}
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare figure { text-align: center; }
.compare figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.compare img { max-width: 100%; max-height: 300px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Placement ---------- */
.option-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.opt {
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  border-radius: 10px; padding: 9px 18px; cursor: pointer; font-size: 0.9rem;
  transition: all 0.15s;
}
.opt:hover { border-color: var(--gold); }
.opt.selected { background: rgba(201, 162, 39, 0.15); border-color: var(--gold); color: var(--gold-soft); font-weight: 600; }
.swatch { width: 16px; height: 16px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(255,255,255,0.25); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 0.88rem;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.tab.active { background: var(--gold); color: #171307; font-weight: 700; border-color: var(--gold); }

.mockup-wrap {
  position: relative; width: min(420px, 100%); margin: 0 auto;
  user-select: none;
}
.mockup-wrap svg.tshirt { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5)); }
.design-layer {
  position: absolute; cursor: grab; touch-action: none;
  border: 1px dashed transparent;
}
.design-layer:hover, .design-layer.dragging { border-color: var(--gold); }
.design-layer img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }
.resize-handle {
  position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px;
  background: var(--gold); border-radius: 50%; cursor: nwse-resize;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.print-zone {
  position: absolute; border: 1px dashed rgba(201, 162, 39, 0.35); border-radius: 6px; pointer-events: none;
}
.placement-hint { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

#viewer3d {
  width: min(520px, 100%); height: 460px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(600px 300px at 50% 20%, #1a1a20, #0b0b0d);
}
#viewer3d canvas { display: block; }

/* ---------- Atelier de fabrication du relief ---------- */
.relief-workbench { margin-top: 34px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(201,162,39,.055), rgba(22,22,27,.88) 48%); }
.relief-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.relief-heading h3 { font-size: 1.35rem; }
.relief-kicker { display: block; margin-bottom: 4px; color: var(--gold-soft); font-size: .66rem; font-weight: 700; letter-spacing: .2em; }
.relief-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--gold-soft); font-size: .7rem; letter-spacing: .08em; white-space: nowrap; }
.relief-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.relief-workbench .field { margin-bottom: 0; }
.relief-workbench .field label { letter-spacing: .06em; }
.relief-workbench .field input, .relief-workbench .field select { width: 100%; padding: 11px 12px; color: var(--text); background: #101014; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font: inherit; }
.relief-workbench .field input:focus, .relief-workbench .field select:focus { outline: none; border-color: var(--gold); }
.relief-toggle { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; cursor: pointer; }
.relief-toggle input { accent-color: var(--gold); width: 17px; height: 17px; margin-top: 4px; }
.relief-toggle span, .relief-toggle small { display: block; }
.relief-toggle b { font-size: .88rem; }
.relief-toggle small, .relief-preview small { display: block; color: var(--muted); font-size: .78rem; }
.relief-actions, .relief-exports { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.relief-actions { justify-content: space-between; margin-top: 20px; }
.relief-export:disabled { opacity: .4; cursor: not-allowed; }
.relief-preview { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; align-items: center; gap: 20px; margin-top: 14px; padding: 14px; border-radius: 10px; background: rgba(0,0,0,.2); }
.relief-preview img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#29292c 0 25%, #1c1c1f 0 50%) 50% / 16px 16px; }
.relief-preview span { color: var(--gold-soft); font-size: .64rem; letter-spacing: .16em; }
.relief-preview b { display: block; margin: 4px 0; font-size: 1.05rem; }
@media (max-width: 760px) { .relief-workbench { padding: 18px; } .relief-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .relief-actions { align-items: flex-start; flex-direction: column; } }
@media (max-width: 420px) { .relief-controls { grid-template-columns: 1fr; } .relief-heading { align-items: flex-start; flex-direction: column; } }

/* ---------- Formulaire commande ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 0.95rem;
  font-family: var(--font-body);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }

.recap { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px; font-size: 0.9rem; }
.recap .line { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.recap .line b { color: var(--text); font-weight: 600; }
.recap .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 1.05rem; }
.recap .total b { color: var(--gold-soft); }
.recap img { max-width: 120px; border-radius: 8px; border: 1px solid var(--line); margin-top: 10px; }

/* ---------- Modal reglages ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; width: min(520px, 100%); max-height: 90vh; overflow: auto;
}
.modal h3 { color: var(--champagne); margin-bottom: 16px; }

/* ---------- Success ---------- */
.success-wrap { text-align: center; padding: 100px 0; }
.success-wrap .big-check {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px;
  border: 2px solid var(--ok); color: var(--ok); font-size: 2.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Admin ---------- */
.admin-login { max-width: 380px; margin: 120px auto; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card .v { font-size: 1.6rem; font-family: var(--font-display); color: var(--gold-soft); }
.stat-card .k { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

table.orders { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.orders th {
  text-align: left; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.orders td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
table.orders tr:hover td { background: rgba(201, 162, 39, 0.04); }
.badge {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: 0.06em;
}
.badge.pending { background: rgba(154,149,138,0.15); color: var(--muted); }
.badge.paid { background: rgba(111,207,151,0.12); color: var(--ok); }
.badge.in_production { background: rgba(201,162,39,0.15); color: var(--gold-soft); }
.badge.shipped { background: rgba(110,168,254,0.12); color: #8ec2ff; }
.badge.cancelled { background: rgba(224,92,92,0.12); color: var(--danger); }

.order-detail img { max-width: 220px; border-radius: 10px; border: 1px solid var(--line); margin: 6px 12px 6px 0; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 14px; font-size: 0.88rem; margin: 10px 0; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); }

footer.site {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 30px 0;
  text-align: center; color: var(--muted); font-size: 0.82rem;
}

.muted { color: var(--muted); }
.mt { margin-top: 18px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Refonte éditoriale : atelier Le Fil Noir ---------- */
:root {
  --bg: #eeede7;
  --bg-soft: #e7e5dd;
  --bg-card: #f8f7f2;
  --line: rgba(33, 37, 31, .13);
  --gold: #b15f49;
  --gold-soft: #8f4837;
  --champagne: #181c18;
  --text: #242722;
  --muted: #73766e;
  --danger: #b84237;
  --ok: #4c7757;
  --radius: 18px;
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}
html { scroll-padding-top: 86px; }
body { color: var(--text); background-color: var(--bg); background-image: radial-gradient(900px 560px at 93% 0%, rgba(160, 167, 140, .14), transparent 70%), radial-gradient(720px 460px at 0% 54%, rgba(190, 115, 83, .055), transparent 70%); }
.container { width: min(1160px, 90vw); }
header.site { background: rgba(238, 237, 231, .88); border-color: rgba(33, 37, 31, .11); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #20241f; font: 800 1rem var(--font-display); letter-spacing: -.055em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #f4f0e8; background: #222720; border-radius: 50%; font-size: .65rem; letter-spacing: -.08em; }
.brand-mark span { color: #dd8b6b; }
.main-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; margin-right: 30px; }
.main-nav a, footer.site a { color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 600; transition: color .18s; }
.main-nav a:hover, footer.site a:hover { color: var(--gold-soft); }
.header-actions { gap: 14px; }
.price-tag { color: var(--muted); border-color: var(--line); font-size: .76rem; }
.price-tag b { color: var(--champagne); }
.btn { border-radius: 8px; font-weight: 700; }
.btn-gold { color: #fffaf6; background: #a64f3c; box-shadow: 0 7px 20px rgba(140, 62, 43, .17); }
.btn-gold:hover:not(:disabled) { background: #8c3f30; box-shadow: 0 10px 24px rgba(140, 62, 43, .2); }
.btn-ghost { color: var(--champagne); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { color: var(--gold-soft); border-color: var(--gold); }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(35px, 7vw, 95px); padding: clamp(54px, 9vw, 104px) 0 70px; text-align: left; }
.hero-copy { padding: 10px 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--gold-soft); font-size: .67rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow-line { width: 22px; height: 1px; background: var(--gold); }
.hero h1 { max-width: 650px; color: #1d211d; font-size: clamp(3.35rem, 7.1vw, 6rem); font-weight: 600; letter-spacing: -.087em; line-height: .99; }
.hero h1 em, .atelier-intro h2 em, .story-heading h2 em { color: var(--gold-soft); font-weight: 500; font-style: normal; }
.hero p.lead { max-width: 470px; margin: 24px 0 28px; color: #666a62; font-size: 1.02rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-cta { padding: 15px 21px; font-size: .87rem; }
.hero-note { color: var(--muted); font-size: .7rem; }
.hero-proof { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 52px; color: var(--muted); font-size: .65rem; letter-spacing: .015em; }
.hero-proof b { color: var(--gold-soft); font-size: .61rem; letter-spacing: .06em; }
.hero-proof i { width: 3px; height: 3px; border-radius: 50%; background: #aaa79e; }
.hero-art { position: relative; display: grid; min-height: 490px; align-items: center; justify-items: center; overflow: hidden; isolation: isolate; border-radius: 3px; color: #f1eee7; background: #30382f; box-shadow: 0 25px 65px rgba(37, 42, 34, .13); }
.hero-art::before, .hero-art::after { position: absolute; z-index: -1; border: 1px solid rgba(232, 226, 209, .09); border-radius: 50%; content: ''; }
.hero-art::before { width: 490px; height: 490px; }
.hero-art::after { width: 360px; height: 360px; }
.hero-art-glow { position: absolute; z-index: -1; width: 270px; height: 300px; border-radius: 50%; background: rgba(181, 107, 82, .2); filter: blur(75px); }
.hero-art-label, .hero-art-caption { position: absolute; right: 22px; left: 22px; display: flex; justify-content: space-between; color: rgba(239, 236, 226, .64); font-size: .52rem; letter-spacing: .15em; }
.hero-art-label { top: 19px; }
.hero-art-caption { bottom: 19px; }
.hero-shirt { width: min(76%, 365px); overflow: visible; filter: drop-shadow(0 23px 22px rgba(5, 8, 5, .3)); transform: rotate(-3deg); animation: shirt-rise .85s ease-out both; }
@keyframes shirt-rise { from { opacity: .2; transform: translateY(14px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-3deg); } }
.hero-stamp { position: absolute; right: 6%; bottom: 14%; display: flex; width: 92px; height: 92px; align-items: center; justify-content: center; flex-direction: column; color: #252821; background: #e6c8a7; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; box-shadow: 0 9px 25px rgba(0,0,0,.17); transform: rotate(10deg); }
.hero-stamp span { font-size: .43rem; font-weight: 700; letter-spacing: .12em; }
.hero-stamp b { margin: 2px 0; font-size: 1rem; line-height: .9; text-align: center; }
.intro-strip { max-width: 840px; margin: 6px auto 88px; text-align: center; }
.intro-strip p { margin: 0; color: var(--muted); font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.85rem); letter-spacing: -.055em; line-height: 1.45; }
.intro-strip p b { color: var(--champagne); font-weight: 700; }
.intro-strip > span { display: block; max-width: 680px; margin: 17px auto 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.atelier-intro { max-width: 700px; margin: 0 auto 32px; text-align: center; }
.atelier-intro .eyebrow { justify-content: center; }
.atelier-intro h2, .story-heading h2 { color: var(--champagne); font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 600; letter-spacing: -.07em; line-height: 1.08; }
.atelier-intro > p:last-child { margin-top: 14px; color: var(--muted); font-size: .89rem; }
.stepper { gap: 5px; margin: 0 0 15px; }
.stepper .s { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); border-radius: 7px; font-size: .65rem; letter-spacing: .01em; text-transform: none; }
.stepper .s b { color: #a5a59a; font-size: .6rem; }
.stepper .s.active { color: #fffaf6; background: #31372f; }
.stepper .s.active b, .stepper .s.done b { color: #df9679; }
.stepper .s.done { color: var(--gold-soft); border-color: rgba(177,95,73,.2); }
.card { padding: clamp(22px, 4vw, 42px); background: rgba(250, 249, 245, .94); border: 1px solid rgba(33,37,31,.1); border-radius: 12px; box-shadow: 0 18px 58px rgba(36,40,31,.06); }
.step-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.step-index { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; color: var(--gold-soft); background: rgba(177,95,73,.08); border: 1px solid rgba(177,95,73,.17); border-radius: 50%; font-size: .68rem; font-weight: 700; }
.step-section h2 { margin-bottom: 4px; color: var(--champagne); font-size: 1.55rem; letter-spacing: -.045em; }
.step-section .hint { margin-bottom: 12px; font-size: .83rem; line-height: 1.65; }
.dropzone { padding: 34px 20px; border: 1px dashed rgba(62,67,56,.28); border-radius: 10px; background: #f4f3ee; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(177,95,73,.045); }
.upload-symbol { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 12px; color: var(--gold-soft); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 1.15rem; }
.dropzone p { margin-top: 5px; font-size: .81rem; }
.dropzone .drop-title { color: var(--champagne); font-size: .94rem; font-weight: 700; }
.dropzone p span:not(.muted) { color: var(--gold-soft); font-weight: 700; }
.dropzone .muted { display: inline-block; margin-top: 7px; color: #898c82; font-size: .69rem; }
.preview-img { max-height: 270px; padding: 7px; background: white; border: 1px solid var(--line); object-fit: contain; }
.style-picker { margin-top: 37px; }
.style-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 14px; }
.style-title .eyebrow { margin-bottom: 8px; font-size: .57rem; }
.style-title h3 { color: var(--champagne); font: 700 1.16rem var(--font-display); letter-spacing: -.04em; }
.style-title > span { color: var(--muted); font-size: .67rem; }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style-card { position: relative; display: flex; min-width: 0; padding: 9px 9px 12px; align-items: flex-start; flex-direction: column; overflow: hidden; color: var(--text); background: #f6f5f0; border: 1px solid rgba(33,37,31,.11); border-radius: 9px; cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, background .18s; }
.style-card:hover { transform: translateY(-2px); border-color: rgba(177,95,73,.46); }
.style-card.selected { background: #fbf8f1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(177,95,73,.09); }
.style-card b { margin: 10px 0 1px; font-size: .8rem; }
.style-card small { color: var(--muted); font-size: .64rem; line-height: 1.4; }
.style-check { position: absolute; top: 16px; right: 16px; display: grid; width: 19px; height: 19px; place-items: center; color: white; background: #a64f3c; border-radius: 50%; font-size: .65rem; opacity: 0; transform: scale(.7); transition: .18s; }
.style-card.selected .style-check { opacity: 1; transform: scale(1); }
.style-art { position: relative; display: flex; width: 100%; height: 76px; align-items: center; justify-content: center; gap: 3px; overflow: hidden; background: #e6e2d8; border-radius: 5px; }
.style-art::before { position: absolute; width: 41px; height: 50px; border: 2px solid #343832; border-radius: 48% 48% 39% 39%; content: ''; transform: rotate(-8deg); }
.style-art::after { position: absolute; width: 51px; height: 22px; border-top: 1px solid #343832; border-bottom: 1px solid #343832; content: ''; transform: rotate(-21deg); }
.style-art i { z-index: 1; width: 2px; height: 28px; background: #343832; transform: rotate(14deg); }
.style-art i:nth-child(2) { height: 42px; transform: rotate(-11deg); }
.style-art i:nth-child(3) { height: 21px; transform: rotate(29deg); }
.style-art-manga { background: #e6d8d1; }
.style-art-manga::before { width: 43px; height: 47px; border-radius: 53% 47% 45% 45%; border-width: 3px; }
.style-art-manga::after { width: 56px; transform: rotate(-38deg); border-top-width: 2px; }
.style-art-lino { background: #d9dfd3; }
.style-art-lino::before { border-width: 5px; background: #394039; box-shadow: inset 0 0 0 3px #e6e2d8; }
.style-art-lino::after { width: 57px; height: 30px; border: 0; background: repeating-linear-gradient(135deg, transparent 0 5px, #343832 6px 8px); }
.style-art-sketch { background: #e9e6dd; }
.style-art-sketch::before { border-style: dashed; transform: rotate(5deg); }
.style-art-sketch::after { transform: rotate(11deg); }
.create-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 27px; padding-top: 19px; border-top: 1px solid var(--line); }
.create-bar > span { color: var(--muted); font-size: .72rem; }
.create-bar .btn { padding: 13px 19px; font-size: .83rem; }
.creation-progress { display: grid; max-width: 740px; grid-template-columns: 70px 1fr; align-items: center; gap: 22px; margin: 34px auto; padding: 24px; background: #f0efe9; border: 1px solid var(--line); border-radius: 11px; }
.creation-progress > div > b { color: var(--champagne); font-size: .9rem; }
.creation-progress p { margin: 4px 0 13px; color: var(--muted); font-size: .78rem; }
.creation-progress small { color: var(--muted); font-size: .68rem; }
.progress-track { width: 100%; height: 3px; margin-bottom: 8px; overflow: hidden; background: #deddd5; border-radius: 5px; }
.progress-track i { display: block; width: 18%; height: 100%; background: var(--gold); transition: width .45s ease; }
.creation-progress.is-active .progress-track i { width: 66%; animation: progress-pulse 1.8s ease-in-out infinite alternate; }
.creation-progress.is-complete .progress-track i { width: 100%; }
@keyframes progress-pulse { to { width: 84%; } }
.creation-orbit { position: relative; display: block; width: 60px; height: 60px; border: 1px solid rgba(177,95,73,.23); border-radius: 50%; animation: spin 8s linear infinite; }
.creation-orbit::before, .creation-orbit::after { position: absolute; border: 1px solid rgba(177,95,73,.25); border-radius: 50%; content: ''; }
.creation-orbit::before { inset: 8px -5px; transform: rotate(58deg); }
.creation-orbit::after { inset: -5px 8px; transform: rotate(-42deg); }
.creation-orbit i { position: absolute; width: 5px; height: 5px; background: #a64f3c; border-radius: 50%; }
.creation-orbit i:nth-child(1) { top: 3px; left: 22px; }
.creation-orbit i:nth-child(2) { right: 3px; bottom: 18px; background: #7e8c72; }
.creation-orbit i:nth-child(3) { bottom: 7px; left: 7px; background: #d9af85; }
.creation-progress.is-complete .creation-orbit { animation-play-state: paused; }
.analysis-box { margin: 0 auto 22px; max-width: 740px; color: var(--text); background: #f6f5ef; border-color: var(--line); }
.analysis-label { margin-bottom: 7px; color: var(--gold-soft); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.analysis-box #analysisDesc { font-size: .84rem; line-height: 1.6; }
.chip { color: #4c5548; background: #e7ebe1; border-color: #d5ddcf; font-size: .7rem; }
.generated-wrap { text-align: center; }
.generated-wrap img { max-width: min(100%, 500px); max-height: 460px; padding: 8px; background: #fff; border: 1px solid rgba(33,37,31,.1); border-radius: 10px; box-shadow: 0 15px 38px rgba(31,33,28,.08); }
.compare { gap: 22px; }
.compare figure { padding: 13px; background: #f3f2ec; border: 1px solid var(--line); border-radius: 9px; }
.compare img { width: 100%; max-height: 380px; object-fit: contain; background: #fff; }
.compare figcaption { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.option-row { align-items: center; }
.opt { color: var(--text); background: #f3f2ec; border-color: var(--line); border-radius: 8px; }
.opt.selected { color: var(--gold-soft); background: rgba(177,95,73,.08); border-color: var(--gold); }
.tabs { margin: 24px 0 15px; }
.tab { color: var(--muted); border-color: var(--line); }
.tab.active { color: #fffaf6; background: #31372f; border-color: #31372f; }
.mockup-wrap { padding: 15px; background: radial-gradient(ellipse at 50% 58%, #d9d8cf, #efeee8 71%); border-radius: 12px; }
.mockup-wrap svg.tshirt { filter: drop-shadow(0 16px 18px rgba(33,36,30,.14)); }
.print-zone { border-color: rgba(177,95,73,.4); }
.placement-hint { color: var(--muted); font-size: .72rem; }
#viewer3d { border-color: var(--line); background: radial-gradient(ellipse at 50% 35%, #e5e4dc, #c9cbc2); }
.relief-workbench { margin-top: 26px; padding: 21px; background: #f1f0ea; border-color: var(--line); border-radius: 10px; }
.relief-badge { color: var(--gold-soft); border-color: rgba(177,95,73,.22); }
.relief-workbench .field input, .relief-workbench .field select { color: var(--text); background: #fbfaf6; border-color: var(--line); }
.relief-preview { background: #e8e7df; }
.field input, .field textarea, .field select { color: var(--text); background: #fbfaf6; border-color: var(--line); }
.field label { color: var(--muted); }
.recap { color: var(--text); background: #f1f0ea; border-color: var(--line); }
.recap .line { color: var(--muted); }
.recap .line b { color: var(--text); }
.recap .total b { color: var(--gold-soft); }
.story-section { margin: 105px 0 40px; padding: 62px clamp(20px, 5vw, 58px); background: #e5e4dc; border: 1px solid rgba(33,37,31,.08); border-radius: 12px; }
.story-heading { margin-bottom: 35px; }
.story-heading .eyebrow { margin-bottom: 15px; }
.story-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-grid article { padding: 21px 20px 18px 0; border-top: 1px solid rgba(33,37,31,.18); }
.story-number { color: var(--gold-soft); font-size: .63rem; font-weight: 700; letter-spacing: .16em; }
.story-grid h3 { margin: 12px 0 7px; color: var(--champagne); font-size: .94rem; letter-spacing: -.035em; }
.story-grid p { max-width: 290px; color: var(--muted); font-size: .76rem; line-height: 1.75; }
.faq { max-width: 800px; margin-top: 74px; }
.faq > .eyebrow { margin-bottom: 11px; }
.faq h2 { margin-bottom: 17px; color: var(--champagne); font-size: 1.5rem; letter-spacing: -.05em; }
.faq details { border-top: 1px solid rgba(33,37,31,.15); }
.faq details:last-child { border-bottom: 1px solid rgba(33,37,31,.15); }
.faq summary { position: relative; padding: 16px 34px 16px 0; color: var(--text); cursor: pointer; font-size: .81rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 5px; color: var(--gold-soft); content: '+'; font-size: 1.15rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 680px; padding: 0 25px 18px 0; color: var(--muted); font-size: .76rem; line-height: 1.75; }
footer.site { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 35px; padding: 28px 0; border-color: rgba(33,37,31,.12); color: var(--text); }
footer.site .container { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer-tagline { color: var(--muted); }
footer.site a { padding-left: 14px; border-left: 1px solid var(--line); }
.status-line { font-size: .8rem; }
.status-line.ok { color: var(--ok); }
.step-section { scroll-margin-top: 90px; }
#stepper { scroll-margin-top: 90px; }
.creation-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 740px; margin: 24px auto; }
.creation-comparison figure { min-width: 0; margin: 0; }
.creation-comparison figcaption { margin-bottom: 8px; color: var(--champagne); font-size: .78rem; font-weight: 700; }
.creation-comparison figure > img, .creation-result { display: block; width: 100%; aspect-ratio: 1; padding: 8px; object-fit: contain; background: #fff; border: 1px solid rgba(33,37,31,.1); border-radius: 10px; }
.creation-result { display: grid; place-items: center; background: #f1f0ea; }
.creation-result p { padding: 12px; color: var(--muted); text-align: center; font-size: .78rem; }
.creation-result .generated-wrap { width: 100%; height: 100%; }
.creation-result .generated-wrap img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 0; background: white; border: 0; border-radius: 4px; box-shadow: none; }
@media (max-width: 700px) { #stepper { scroll-margin-top: 75px; } .creation-comparison { gap: 8px; } .creation-comparison figcaption { font-size: .68rem; } .creation-result p { font-size: .68rem; } }
:focus-visible { outline: 3px solid rgba(177,95,73,.55); outline-offset: 3px; }
@media (max-width: 900px) { .hero { gap: 30px; padding-top: 60px; } .hero-art { min-height: 410px; } .hero-proof { gap: 7px; margin-top: 35px; font-size: .58rem; } .main-nav { gap: 16px; margin-right: 18px; } }
@media (max-width: 700px) { .container { width: min(100% - 32px, 540px); } .header-inner { min-height: 65px; } .main-nav { display: none; } .header-actions { margin-left: auto; } .price-tag { padding: 4px 9px; } .hero { grid-template-columns: 1fr; gap: 30px; padding: 54px 0 50px; } .hero h1 { font-size: clamp(3.1rem, 14vw, 5rem); } .hero p.lead { margin: 17px 0 21px; } .hero-proof { margin-top: 27px; } .hero-art { min-height: 370px; } .hero-shirt { width: min(73%, 300px); } .intro-strip { margin: 5px auto 64px; } .stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; } .stepper .s { display: flex; justify-content: center; flex-direction: column; gap: 3px; padding: 8px 3px; text-align: center; } .stepper .s b { font-size: .57rem; } .stepper .s { font-size: .54rem; } .card { padding: 19px 15px; } .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .style-art { height: 65px; } .style-title { align-items: flex-start; flex-direction: column; } .create-bar { align-items: stretch; flex-direction: column; } .create-bar > span { text-align: center; } .creation-progress { grid-template-columns: 46px 1fr; gap: 13px; padding: 18px 13px; } .creation-orbit { width: 42px; height: 42px; } .creation-orbit::before { inset: 6px -4px; } .creation-orbit::after { inset: -4px 6px; } .creation-orbit i:nth-child(1) { top: 2px; left: 15px; } .story-section { margin-top: 65px; padding: 35px 20px; } .story-grid { grid-template-columns: 1fr; gap: 8px; } .story-grid article { padding: 15px 0; } .story-grid p { max-width: none; } .faq { margin-top: 48px; } footer.site { align-items: center; flex-direction: column; gap: 8px; } footer.site a { padding: 0; border: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
.category-picker { margin-top: 28px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.category-card { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 12px; color: var(--text); background: #f6f5f0; border: 1px solid rgba(33,37,31,.11); border-radius: 9px; cursor: pointer; text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.category-card:hover { transform: translateY(-1px); border-color: rgba(177,95,73,.46); }
.category-card.selected { background: #fbf8f1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(177,95,73,.09); }
.category-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--gold-soft); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 1.08rem; }
.category-card b, .category-card small { display: block; }
.category-card b { margin-bottom: 3px; font-size: .76rem; }
.category-card small { color: var(--muted); font-size: .62rem; line-height: 1.4; }
.style-picker { margin-top: 30px; }
.style-sample { display: block; width: 100%; height: 148px; object-fit: cover; background: #ede9df; border-radius: 6px; }
.style-sample.dragon-sample { object-fit: contain; background: #f5f2ea; padding: 6px; }
.style-card { padding: 8px 8px 12px; }
.style-card-copy { display: block; padding: 0 4px; }
.style-card b { display: block; margin-top: 9px; }
.style-check { top: 17px; right: 16px; box-shadow: 0 1px 5px rgba(20,20,20,.16); }
.style-sample-note { margin: 10px 2px 0; color: var(--muted); font-size: .68rem; }
.preserve-field { margin-top: 26px; }
.preserve-field label { display: block; color: var(--champagne); font-weight: 700; font-size: .95rem; }
.preserve-field label span { color: var(--muted); font-size: .7rem; font-weight: 400; }
.preserve-field p { margin: 6px 0 10px; color: var(--muted); font-size: .75rem; }
.preserve-field textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: .85rem; }
.category-card:focus-visible, .style-card:focus-visible { outline-offset: 3px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .style-sample { height: 132px; } }
@media (max-width: 700px) { .category-grid { gap: 8px; } .category-card { min-height: 69px; gap: 9px; padding: 10px; } .category-icon { width: 31px; height: 31px; flex-basis: 31px; } .category-card small { font-size: .59rem; } .style-sample { height: 120px; } }
@media (max-width: 390px) { .category-grid { grid-template-columns: 1fr; } .category-card { min-height: 58px; } .style-sample { height: 102px; } }

/* Les illustrations sont montrées en entier autour de leur photo de référence. */
.style-grid { position: relative; gap: 14px; }
.style-connectors { display: none; }
.style-source { margin: 0; padding: 12px; text-align: center; background: #f0eee7; border: 1px solid var(--line); border-radius: 10px; }
.style-source-photo { display: grid; place-items: center; height: 180px; overflow: hidden; border-radius: 6px; background: #e6e3da; }
.style-source-photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.style-source figcaption b, .style-source figcaption span { display: block; }
.style-source figcaption b { margin-top: 9px; color: var(--champagne); font-size: .8rem; }
.style-source figcaption span { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.style-sample { height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
@media (min-width: 851px) {
  .style-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: 'one . two' 'three source four' 'five . six'; column-gap: clamp(35px, 6vw, 95px); row-gap: 18px; align-items: center; }
  .style-connectors { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; color: #c9b7aa; pointer-events: none; }
  .style-source, .style-card { position: relative; z-index: 1; }
  .style-source { grid-area: source; }
  .style-card[data-style='gravure'] { grid-area: one; }
  .style-card[data-style='manga'] { grid-area: two; }
  .style-card[data-style='linogravure'] { grid-area: three; }
  .style-card[data-style='croquis'] { grid-area: four; }
  .style-card[data-style='ligne_continue'] { grid-area: five; }
  .style-card[data-style='stencil'] { grid-area: six; }
  .style-source-photo { height: clamp(180px, 24vw, 300px); }
}
@media (max-width: 850px) {
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-source { grid-column: 1 / -1; }
  .style-source-photo { height: 200px; }
}

/* Objets et profil */
.studio-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.studio-colors label span { display: inline-flex; align-items: center; gap: 7px; }
.color-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.24); flex: none; }
.admin-color-list { display: grid; gap: 8px; margin: 16px 0; max-width: 500px; }
.admin-color-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; }
.admin-color-row input[type=color] { height: 42px; width: 50px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.admin-color-row input[type=text], .showcase-form input, .showcase-form select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.showcase-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
.admin-showcase { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.admin-showcase img { width: 100%; height: 130px; object-fit: contain; background: #edece6; border-radius: 7px; }
.admin-showcase p { font-size: .8rem; margin: 5px 0; }
.showcase-section { margin: 85px 0; }
.showcase-section[hidden] { display: none; }
.showcase-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.showcase-heading h2 { font-size: clamp(1.8rem,3vw,2.6rem); letter-spacing: -.04em; }
.showcase-heading p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.showcase-controls { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.showcase-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.2rem; }
.showcase-figure { background: #efeee8; border-radius: 14px; padding: 18px; }
.showcase-figure img { display: block; width: 100%; height: min(55vw, 520px); min-height: 240px; object-fit: contain; }
.showcase-figure figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
@media(max-width: 700px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; row-gap: 8px; }
  .main-nav { display: flex; order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
  .main-nav a { font-size: .72rem; }
  .showcase-form { grid-template-columns: 1fr; }
  .showcase-section { margin: 55px 0; }
}
.text-link, .studio-back { display: inline-block; color: #a4533f; font-size: .78rem; font-weight: 700; text-decoration: none; }
.text-link { margin-top: 20px; }
.objects-page, .studio-page { padding-bottom: 70px; }
.objects-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding: 78px 0 90px; }
.objects-hero h1, .studio-intro h1, .profile-hero h1 { color: #2d352d; font-size: clamp(2.8rem, 5.3vw, 5.1rem); line-height: .99; letter-spacing: -.065em; }
.objects-hero h1 em, .profile-hero h1 em { color: #b15f49; font-style: normal; font-weight: 500; }
.objects-hero > div > p:not(.eyebrow), .studio-intro > div > p:not(.eyebrow), .profile-hero > div > p:not(.eyebrow) { max-width: 460px; margin-top: 22px; color: #777e73; line-height: 1.75; font-size: .91rem; }
.objects-hero-art { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #dcded1; }
.objects-hero-art::before { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid rgba(48,56,47,.15); border-radius: 50%; }
.hero-keyring { position: absolute; left: 20%; top: 15%; width: 180px; height: 242px; display: grid; place-items: center; transform: rotate(-13deg); background: #30382f; border-radius: 90px; color: #f4f0e6; font-size: 2.6rem; font-weight: 800; box-shadow: 0 25px 35px #34403738; }
.hero-keyring > span:last-child span, .hero-business-card strong span { color: #d98d71; }
.hero-keyring-hole { position: absolute; top: 23px; width: 21px; height: 21px; background: #dcded1; border: 3px solid #c4c9bb; border-radius: 50%; }
.hero-business-card { position: absolute; right: 14%; bottom: 18%; width: 230px; height: 145px; padding: 23px; transform: rotate(12deg); border-radius: 8px; background: #fbf9f1; box-shadow: 0 23px 40px #34403732; }
.hero-business-card small, .hero-business-card span { display: block; color: #a45b47; font-size: .48rem; letter-spacing: .17em; }
.hero-business-card b { display: block; margin: 17px 0 13px; color: #30382f; line-height: 1.06; font-size: 1.2rem; }
.objects-section { padding: 0 0 50px; }
.objects-heading, .profile-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.objects-heading h2, .objects-future h2, .profile-section h2 { color: #30382f; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.05em; }
.objects-heading > p, .profile-section-heading p:not(.eyebrow) { max-width: 300px; color: #7b8176; font-size: .8rem; line-height: 1.6; }
.object-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.object-card { display: block; overflow: hidden; color: inherit; text-decoration: none; background: #f8f7f2; border: 1px solid #e1dfd5; border-radius: 13px; transition: transform .2s, box-shadow .2s; }
.object-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px #30382f14; }
.object-card-art { display: grid; min-height: 260px; place-items: center; overflow: hidden; }
.keyring-art { background: #e5e7dc; }
.keyring-art > div { position: relative; width: 130px; height: 180px; display: grid; place-items: center; transform: rotate(-12deg); background: #30382f; border-radius: 65px; color: #f6f3e9; font-size: 1.5rem; box-shadow: 0 15px 28px #30382f36; }
.keyring-art i { position: absolute; top: 20px; width: 16px; height: 16px; border: 2px solid #b9bfb0; border-radius: 50%; background: #e5e7dc; }
.keyring-art b span, .business-art strong span { color: #dc9277; }
.business-art { background: #eadcd2; }
.business-art > div { width: 210px; height: 130px; padding: 19px; transform: rotate(8deg); background: #30382f; border-radius: 7px; color: white; box-shadow: 0 18px 30px #5d433f2e; }
.business-art small, .business-art i { display: block; color: #df9a7f; font-size: .45rem; font-style: normal; letter-spacing: .15em; }
.business-art strong { display: block; margin: 15px 0 10px; line-height: 1.05; }
.object-card-copy { padding: 24px; }
.object-card-copy > span { color: #b15f49; font-size: .6rem; font-weight: 700; letter-spacing: .15em; }
.object-card-copy h3 { margin: 11px 0 7px; color: #30382f; font-size: 1.35rem; letter-spacing: -.04em; }
.object-card-copy p { min-height: 45px; color: #777e73; font-size: .8rem; line-height: 1.6; }
.object-card-copy > b { display: inline-block; margin-top: 16px; color: #a4533f; font-size: .76rem; }
.objects-future { padding: 32px; background: #30382f; border-radius: 13px; }
.objects-future h2 { color: #fbf8f0; }
.objects-future > p:not(.eyebrow) { max-width: 650px; margin: 12px 0 20px; color: #bdc2b6; font-size: .8rem; line-height: 1.7; }
.objects-future > div { display: flex; gap: 8px; flex-wrap: wrap; }
.objects-future > div span { padding: 8px 12px; border: 1px solid #687165; border-radius: 30px; color: #eee9df; font-size: .7rem; }
.studio-page { padding-top: 36px; }
.studio-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 39px 0 32px; }
.studio-intro h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.studio-intro h1 span { color: #b15f49; }
.studio-intro > div > p:not(.eyebrow) { margin-top: 12px; }
.studio-badge { padding: 8px 12px; color: #8e594a; background: #f2e6dc; border-radius: 30px; font-size: .6rem; font-weight: 700; letter-spacing: .1em; }
.studio-auth { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px; background: #f5f3ec; border: 1px solid var(--line); border-radius: 12px; }
.studio-auth p { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.studio-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: start; }
.studio-editor, .studio-preview-panel { padding: 27px; background: #f8f7f2; border: 1px solid #e0dfd6; border-radius: 13px; }
.studio-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; }
.studio-section-head > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: #ac5a45; background: #f3e8df; border-radius: 50%; font-size: .62rem; font-weight: 700; }
.studio-section-head h2 { color: #30382f; font-size: 1.05rem; }
.studio-section-head p, .studio-image-heading p { margin-top: 4px; color: #7b8176; font-size: .72rem; }
.studio-editor .field { margin-bottom: 16px; }
.studio-options { margin: 18px 0; border: 0; padding: 0; }
.studio-options legend, .studio-image-heading b { margin-bottom: 9px; color: #30382f; font-size: .77rem; font-weight: 700; }
.studio-options > div { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-options label { cursor: pointer; }
.studio-options input { position: absolute; opacity: 0; }
.studio-options span { display: block; padding: 9px 13px; border: 1px solid #deddd3; border-radius: 7px; font-size: .72rem; }
.studio-options input:checked + span { border-color: #b15f49; color: #a4533f; background: #f7ede6; }
.studio-options input:focus-visible + span { outline: 3px solid rgba(177,95,73,.55); outline-offset: 2px; }
.studio-design-choices label { flex: 1 1 135px; }
.studio-design-choices label span { height: 100%; min-height: 64px; padding: 12px; }
.studio-design-choices b, .studio-design-choices small { display: block; }
.studio-design-choices small { margin-top: 5px; color: #747b70; font-size: .65rem; line-height: 1.4; }
.studio-photo-fields { margin: 20px 0; padding: 17px; border: 1px solid #deddd3; border-radius: 10px; background: #eeeee6; }
.studio-photo-fields > b { color: #30382f; font-size: .82rem; }
.studio-photo-fields > p { margin: 7px 0 14px; color: #737b70; font-size: .73rem; line-height: 1.6; }
.studio-photo-label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 700; }
.studio-photo-label span { display: block; margin-top: 3px; color: #737b70; font-size: .65rem; font-weight: 400; }
.studio-photo-fields input[type=file] { width: 100%; font-size: .72rem; }
.studio-photo-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: #737b70; font-size: .7rem; }
.studio-image-heading { display: flex; justify-content: space-between; gap: 12px; margin: 25px 0 10px; }
.studio-image-heading a { color: #a4533f; font-size: .7rem; white-space: nowrap; }
.studio-images { display: flex; gap: 8px; overflow-x: auto; padding: 3px; }
.studio-image-choice { width: 65px; height: 65px; flex: 0 0 65px; overflow: hidden; padding: 3px; background: white; border: 1px solid #deddd3; border-radius: 7px; cursor: pointer; }
.studio-image-choice.selected { border: 2px solid #b15f49; }
.studio-image-choice img { width: 100%; height: 100%; object-fit: contain; }
.studio-image-none { font-size: .62rem; color: #777e73; }
.studio-save { width: 100%; margin-top: 25px; }
.studio-preview-panel { position: sticky; top: 95px; }
.studio-preview-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #888d80; font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.studio-preview-stage { overflow: hidden; border-radius: 9px; background: #eae8df; }
.studio-preview-stage canvas { display: block; width: 100%; height: auto; }
.studio-preview-note { margin-top: 18px; }
.studio-preview-note b { font-size: .83rem; color: #30382f; }
.studio-preview-note p { margin-top: 5px; color: #7b8176; font-size: .71rem; line-height: 1.6; }
.account-page { max-width: 1120px; }
.account-login-card { max-width: 560px; margin: 25px auto; padding: 42px; }
.account-login-card h1 span { color: #b15f49; }
.profile-hero { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding: 25px 0 35px; }
.profile-hero h1 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.profile-hero > div > p:not(.eyebrow) { margin-top: 13px; }
.profile-email { display: inline-block; margin-top: 12px; color: #a4533f; font-size: .76rem; }
.profile-hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex-shrink: 0; }
.profile-summary { display: grid; grid-template-columns: repeat(4, 1fr); background: #30382f; border-radius: 12px; }
.profile-summary > div { padding: 23px; border-right: 1px solid #525b50; }
.profile-summary > div:last-child { border: 0; }
.profile-summary span, .profile-summary b, .profile-summary small { display: block; }
.profile-summary span { color: #d39b83; font-size: .57rem; font-weight: 700; letter-spacing: .12em; }
.profile-summary b { margin: 8px 0 3px; color: white; font-size: 1.5rem; }
.profile-summary small { color: #b8bfb4; font-size: .67rem; }
.profile-nav { display: flex; gap: 24px; margin: 30px 0 5px; border-bottom: 1px solid #deddd3; overflow-x: auto; }
.profile-nav a { padding: 13px 0; color: #596157; font-size: .75rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.profile-section { padding: 45px 0 10px; scroll-margin-top: 90px; }
.profile-section-heading p:not(.eyebrow) { margin-top: 8px; }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.profile-project { overflow: hidden; color: inherit; text-decoration: none; background: #f8f7f2; border: 1px solid #deddd3; border-radius: 9px; }
.profile-project > img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #eae8df; }
.profile-project > span { display: grid; gap: 7px; padding: 14px; }
.profile-project small { color: #b15f49; font-size: .58rem; font-weight: 700; letter-spacing: .1em; }
.profile-project b { color: #30382f; font-size: .86rem; overflow-wrap: anywhere; }
.profile-project span span { color: #a4533f; font-size: .69rem; }
.profile-empty { padding: 30px; background: #f4f3ed; border: 1px dashed #d3d1c5; border-radius: 9px; }
.profile-empty b { color: #30382f; }
.profile-empty p, .profile-credit p { margin: 7px 0; color: #7b8176; font-size: .75rem; line-height: 1.6; }
.profile-empty a { color: #a4533f; font-size: .75rem; font-weight: 700; }
.profile-credit { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 28px; padding: 20px; border: 1px solid #deddd3; border-radius: 9px; }
.profile-credit b { font-size: .85rem; }
.account-order { padding: 16px; margin-bottom: 8px; background: #f6f5ef; border: 1px solid #e1e0d7; border-radius: 8px; }
.account-order p { margin-top: 5px; color: #7b8176; font-size: .75rem; }
@media (max-width: 760px) {
  .objects-hero, .studio-layout { grid-template-columns: 1fr; gap: 22px; }
  .objects-hero { padding: 48px 0 60px; }
  .objects-hero-art { min-height: 320px; }
  .object-cards { grid-template-columns: 1fr; }
  .objects-heading, .profile-section-heading, .profile-hero { align-items: start; flex-direction: column; }
  .studio-intro { align-items: start; flex-direction: column; }
  .studio-preview-panel { position: static; }
  .studio-layout { display: flex; flex-direction: column-reverse; }
  .studio-editor, .studio-preview-panel { width: 100%; padding: 20px; }
  .profile-summary { grid-template-columns: 1fr 1fr; }
  .profile-summary > div:nth-child(2) { border-right: 0; }
  .profile-summary > div:nth-child(-n+2) { border-bottom: 1px solid #525b50; }
  .profile-hero-actions { flex-direction: row; }
  .profile-credit { align-items: start; flex-direction: column; }
  .account-login-card { padding: 25px; }
  .studio-auth { align-items: start; flex-direction: column; }
}

/* ============================================================
   Parcours simplifié : choix d'objet, panier, boutique 3D
   ============================================================ */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; color: #fffaf6; background: #31372f; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.cart-link b { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; color: #31372f; background: #e6c8a7; border-radius: 10px; font-size: .68rem; }
.cart-link.has-items b { color: #fff; background: #a64f3c; }
.cart-link:hover { background: #20251f; }
.stepper a.s { text-decoration: none; }
.stepper a.s:hover { color: var(--gold-soft); }

/* Styles : grille de 10 cartes autour de la photo source */
.style-new { position: absolute; top: 16px; left: 16px; padding: 3px 7px; color: #fff; background: #31372f; border-radius: 20px; font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.style-card-new .style-sample { padding: 10px; }
@media (min-width: 851px) {
  .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: none; column-gap: 14px; row-gap: 14px; align-items: stretch; }
  .style-connectors { display: none; }
  .style-source { grid-area: auto; grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; }
  .style-card[data-style] { grid-area: auto; }
  .style-source-photo { height: clamp(220px, 26vw, 340px); }
}

/* Étape 3 : choix de l'objet */
.saved-badge { display: inline-block; margin-left: 4px; padding: 2px 8px; color: var(--ok); background: rgba(76,119,87,.1); border-radius: 20px; font-size: .7rem; font-weight: 700; }
.pick-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: center; }
.compare-compact { grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-compact figure { padding: 8px; }
.compare-compact img { max-height: 220px; }
.object-picker { display: grid; gap: 10px; }
.object-choice { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 12px 16px 12px 12px; color: inherit; background: #f6f5f0; border: 1px solid rgba(33,37,31,.12); border-radius: 11px; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.object-choice:hover, .object-choice:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(48,56,47,.08); }
.object-choice > span:last-child { color: var(--gold-soft); font-size: 1.2rem; }
.object-choice-copy b, .object-choice-copy small, .object-choice-copy em { display: block; }
.object-choice-copy b { color: var(--champagne); font-size: 1rem; }
.object-choice-copy small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.object-choice-copy em { margin-top: 6px; color: var(--gold-soft); font-size: .78rem; font-style: normal; font-weight: 700; }
.object-choice-art { position: relative; display: grid; width: 92px; height: 92px; place-items: center; overflow: hidden; border-radius: 9px; background: #e5e7dc; }
.object-choice-art img { position: relative; z-index: 1; object-fit: contain; }
.oc-tshirt::before { content: ''; position: absolute; width: 70px; height: 74px; background: #30382f; clip-path: polygon(30% 0, 70% 0, 100% 18%, 88% 36%, 78% 30%, 78% 100%, 22% 100%, 22% 30%, 12% 36%, 0 18%); }
.oc-tshirt img { width: 32px; height: 32px; margin-top: 8px; filter: invert(1); }
.oc-keyring::before { content: ''; position: absolute; width: 56px; height: 70px; background: #fbf8f0; border: 3px solid #30382f; border-radius: 28px; box-shadow: 0 6px 10px rgba(0,0,0,.12); }
.oc-keyring img { width: 38px; height: 38px; margin-top: 6px; }
.oc-card::before { content: ''; position: absolute; width: 78px; height: 50px; background: #fbf8f0; border-radius: 4px; box-shadow: 0 6px 12px rgba(0,0,0,.14); transform: rotate(-6deg); }
.oc-card img { width: 30px; height: 30px; transform: translate(16px, 0) rotate(-6deg); }
@media (max-width: 760px) { .pick-layout { grid-template-columns: 1fr; } .object-choice { grid-template-columns: 72px 1fr auto; } .object-choice-art { width: 72px; height: 72px; } }

/* Atelier objets : couleurs, 3D, quantité */
.tabs-compact { margin: 0; gap: 4px; }
.tabs-compact .tab { padding: 5px 12px; font-size: .7rem; }
.studio-preview-top { align-items: center; }
.studio-3d { aspect-ratio: 1; background: radial-gradient(ellipse at 50% 38%, #f1efe8, #d5d4ca); touch-action: none; }
.studio-3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.studio-options.studio-colors-field span { display: inline-flex; padding: 0; border: 0; border-radius: 0; font-size: inherit; }
.studio-options.studio-colors-field legend { display: flex; align-items: center; }
.studio-options.studio-colors-field .filament-count { margin-left: 8px; padding: 2px 8px; border-radius: 20px; color: var(--ok); background: rgba(76,119,87,.1); border-radius: 20px; font-size: .66rem; }
.studio-options.studio-colors-field .filament-count.is-full { color: #8f4837; background: rgba(177,95,73,.12); }
.studio-colors-field > p { margin: 0 0 12px; font-size: .72rem; line-height: 1.5; }
.color-roles { display: grid; gap: 12px; }
.color-role { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.studio-options.studio-colors-field .color-role-label { padding-top: 7px; color: #30382f; font-size: .72rem; font-weight: 700; }
.color-role-options { display: flex; flex-wrap: wrap; gap: 6px; }
.color-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--text); background: #fbfaf6; border: 1px solid #deddd3; border-radius: 20px; font: inherit; font-size: .7rem; cursor: pointer; }
.color-chip[aria-checked='true'] { color: #8f4837; background: #f7ede6; border-color: #b15f49; box-shadow: 0 0 0 1px #b15f49; }
.color-chip:disabled { opacity: .35; cursor: not-allowed; }
.color-chip-same { font-style: italic; }
#studioColorsStatus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.studio-options.studio-colors-field .filament-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; background: #efeee7; border-radius: 20px; font-size: .68rem; }
.studio-options.studio-colors-field .color-warning { display: block; flex-basis: 100%; color: #8f4837; font-size: .7rem; }
.studio-order { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.studio-order .field { max-width: 170px; margin: 0; }
.studio-price { text-align: right; }
.studio-price span, .studio-price small { display: block; color: var(--muted); font-size: .66rem; }
.studio-price b { display: block; color: #30382f; font-size: 1.5rem; letter-spacing: -.03em; }
.studio-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .color-role { grid-template-columns: 1fr; } .color-role-label { padding: 0; } .studio-actions { grid-template-columns: 1fr; } }

/* Panier */
.cart-page, .shop-page { padding: 36px 0 70px; }
.cart-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 20px 0 28px; }
.cart-intro h1, .shop-hero h1 { color: #2d352d; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.065em; }
.cart-intro h1 span { color: #b15f49; }
.cart-intro > div > p:not(.eyebrow), .shop-hero > div > p:not(.eyebrow) { max-width: 520px; margin-top: 14px; color: #777e73; font-size: .9rem; line-height: 1.7; }
.flow-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flow-steps li { display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--muted); background: #f3f2ec; border: 1px solid var(--line); border-radius: 8px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.flow-steps li b { display: grid; width: 18px; height: 18px; place-items: center; background: #fff; border-radius: 50%; font-size: .6rem; }
.flow-steps li.is-active { color: #fff; background: #31372f; border-color: #31372f; }
.flow-steps li.is-active b { color: #31372f; }
.flow-steps li.is-done { color: var(--ok); }
.cart-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px; align-items: start; }
.cart-items-panel, .cart-summary-panel, .order-panel { padding: 26px; background: #f8f7f2; border: 1px solid #e0dfd6; border-radius: 13px; }
.cart-summary-panel { position: sticky; top: 95px; }
.cart-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid #e6e4db; border-radius: 10px; }
.cart-item.is-unavailable { opacity: .6; border-style: dashed; }
.cart-thumb { width: 84px; height: 84px; overflow: hidden; border-radius: 8px; background: #eae8df; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb-tshirt { background: #30382f; }
.cart-thumb-tshirt img { padding: 14px; filter: invert(1); }
.cart-copy small { color: #b15f49; font-size: .58rem; font-weight: 700; letter-spacing: .1em; }
.cart-copy b { display: block; margin: 3px 0; color: #30382f; font-size: .9rem; overflow-wrap: anywhere; }
.cart-copy p { color: var(--muted); font-size: .72rem; }
.cart-edit { color: #a4533f; font-size: .7rem; font-weight: 700; }
.cart-controls { display: grid; justify-items: end; gap: 6px; }
.cart-controls input { width: 70px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; text-align: center; }
.cart-line-price { color: #30382f; font-size: .95rem; }
.cart-remove { padding: 0; color: var(--muted); background: none; border: 0; font: inherit; font-size: .68rem; text-decoration: underline; cursor: pointer; }
.cart-continue { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.cart-continue .text-link { margin: 0; }
.cart-totals { display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .82rem; }
.cart-totals > div { display: flex; justify-content: space-between; }
.cart-totals span { color: var(--muted); }
.cart-grand b { color: #30382f; font-size: 1.3rem; }
.cart-submit { width: 100%; }
.cart-submit-note { margin-top: 8px; font-size: .7rem; text-align: center; }
.order-panel { max-width: 760px; margin: 0 auto; }
.order-state { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.order-state-icon { display: grid; width: 56px; height: 56px; place-items: center; color: #fff; background: #31372f; border-radius: 50%; font-size: 1.4rem; }
.order-panel[data-status='review'] .order-state-icon { animation: spin 2.4s linear infinite; background: #7e8c72; }
.order-panel[data-status='approved'] .order-state-icon, .order-panel[data-status='paid'] .order-state-icon { background: var(--ok); }
.order-panel[data-status='awaiting_validation'] .order-state-icon { background: #c38a4f; }
.order-panel[data-status='rejected'] .order-state-icon, .order-panel[data-status='cancelled'] .order-state-icon { background: var(--danger); }
.order-state .eyebrow { margin-bottom: 8px; }
.order-state h2 { color: #30382f; font-size: 1.5rem; letter-spacing: -.04em; }
.order-state p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.order-lines { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.order-lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 14px; background: #fff; border: 1px solid #e6e4db; border-radius: 9px; font-size: .82rem; }
.order-lines small { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; }
.order-lines small.is-ok { color: var(--ok); }
.order-lines small.is-manual { color: #a0693a; }
.order-total { display: flex; justify-content: space-between; margin-top: 14px; font-size: .9rem; }
.order-total b { color: #30382f; font-size: 1.2rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .cart-intro { flex-direction: column; align-items: start; } .cart-layout { grid-template-columns: 1fr; } .cart-summary-panel { position: static; } .flow-steps { flex-wrap: wrap; } }
@media (max-width: 520px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-thumb { width: 64px; height: 64px; } .cart-controls { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; } .cart-line-price { justify-self: end; } }

/* Compte : commandes */
a.account-order { display: block; color: inherit; text-decoration: none; transition: border-color .18s; }
a.account-order:hover { border-color: var(--gold); }
.account-order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-badge { padding: 3px 9px; color: var(--muted); background: #ecebe4; border-radius: 20px; font-size: .64rem; font-weight: 700; white-space: nowrap; }
.order-badge-approved, .order-badge-paid { color: var(--ok); background: rgba(76,119,87,.12); }
.order-badge-awaiting_validation, .order-badge-review { color: #a0693a; background: rgba(195,138,79,.14); }
.order-badge-rejected, .order-badge-cancelled { color: var(--danger); background: rgba(184,66,55,.1); }
.account-order-action { display: inline-block; margin-top: 8px; color: #a4533f; font-size: .74rem; font-weight: 700; }

/* Boutique 3D */
.shop-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 20px 0 30px; }
.shop-hero h1 em { color: #b15f49; font-style: normal; font-weight: 500; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shop-tag { padding: 7px 13px; color: var(--text); background: #f3f2ec; border: 1px solid var(--line); border-radius: 20px; font: inherit; font-size: .74rem; cursor: pointer; }
.shop-tag.selected { color: #fff; background: #31372f; border-color: #31372f; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card { display: block; overflow: hidden; padding: 0; color: inherit; background: #f8f7f2; border: 1px solid #e1dfd5; border-radius: 13px; font: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.shop-card:hover, .shop-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 40px #30382f14; }
.shop-card-media { position: relative; display: grid; aspect-ratio: 1; place-items: center; background: #e9e8e0; }
.shop-card-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-card-media.is-empty { color: #a5a59a; font-size: 2rem; font-weight: 800; }
.shop-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; color: #fff; background: rgba(49,55,47,.86); border-radius: 20px; font-size: .62rem; font-weight: 700; }
.shop-card-copy { display: grid; gap: 4px; padding: 14px 16px 16px; }
.shop-card-copy b { color: #30382f; font-size: .95rem; }
.shop-card-copy em { color: #a4533f; font-size: .9rem; font-style: normal; font-weight: 700; }
.shop-card-copy small { color: var(--muted); font-size: .68rem; }
.product-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; color: var(--text); background: #f8f7f2; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.product-dialog::backdrop { background: rgba(28,32,27,.55); backdrop-filter: blur(3px); }
.product-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; color: #30382f; background: #fff; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; }
.product-media { padding: 18px; background: radial-gradient(ellipse at 50% 38%, #f1efe8, #d9d8ce); }
.product-viewer, .product-photo { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.product-viewer { touch-action: none; }
.product-viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.product-photo { object-fit: contain; background: #fff; }
.product-tabs { margin-top: 10px; }
.product-copy { padding: 34px 28px 28px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tags a { color: #a4533f; font-size: .72rem; font-weight: 700; text-decoration: none; }
.product-copy h2 { margin: 10px 0 6px; color: #30382f; font-size: 1.7rem; letter-spacing: -.04em; }
.product-price { color: #a4533f; font-size: 1.3rem; }
.product-copy > p { margin-top: 14px; color: #686e64; font-size: .85rem; line-height: 1.7; white-space: pre-line; }
.product-specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0; font-size: .78rem; }
.product-specs dt { color: var(--muted); }
.product-buy { display: flex; align-items: end; gap: 12px; }
.product-buy .field { width: 100px; margin: 0; }
@media (max-width: 760px) { .shop-hero { flex-direction: column; align-items: start; } .product-layout { grid-template-columns: 1fr; } .product-copy { padding: 22px; } }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -6px 0 20px; }
.admin-nav a { color: #a4533f; font-size: .8rem; font-weight: 700; text-decoration: none; }
.stat-card.has-alert { border-color: #c38a4f; background: #fbf3ea; }
.badge.review, .badge.awaiting_validation { background: rgba(195,138,79,.15); color: #a0693a; }
.badge.approved { background: rgba(76,119,87,.12); color: var(--ok); }
.badge.rejected { background: rgba(184,66,55,.1); color: var(--danger); }
.product-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 18px 0 10px; align-items: end; }
.product-form-wide { grid-column: 1 / -1; }
.product-form textarea { width: 100%; }
.product-form-actions { display: flex; gap: 10px; grid-column: 1 / -1; }
.admin-products { display: grid; gap: 10px; margin-top: 18px; }
.admin-product { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 10px; background: #fff; border: 1px solid #e6e4db; border-radius: 10px; }
.admin-product.is-draft { opacity: .7; border-style: dashed; }
.admin-product-media { width: 80px; height: 80px; overflow: hidden; border-radius: 8px; background: #eae8df; }
.admin-product-media img { width: 100%; height: 100%; object-fit: contain; }
.admin-product-copy p, .admin-product-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.admin-product-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.admin-model-preview { display: grid; gap: 8px; justify-items: end; margin-top: 16px; }
.admin-model-stage { width: 100%; height: 420px; border-radius: 10px; background: radial-gradient(ellipse at 50% 38%, #f1efe8, #d9d8ce); }
.admin-model-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.admin-decision { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px; background: #fbf3ea; border: 1px solid #e8d2bb; border-radius: 10px; }
.admin-decision-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-decision-actions input { min-width: 230px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .8rem; }
.admin-items { display: grid; gap: 10px; margin-top: 16px; }
.admin-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px; background: #fff; border: 1px solid #e6e4db; border-radius: 10px; }
.admin-item-media { display: flex; gap: 6px; }
.admin-item-media img { width: 110px; height: 110px; object-fit: contain; background: #eae8df; border-radius: 7px; }
.admin-item-copy small { color: #b15f49; font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.admin-item-copy b { display: block; margin: 2px 0 4px; }
.admin-item-copy p { margin: 2px 0; font-size: .78rem; }
.admin-filaments { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-filament { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; background: #efeee7; border-radius: 20px; font-size: .7rem; }
.admin-review { margin-top: 8px; padding: 9px 11px; border-radius: 8px; font-size: .76rem; }
.admin-review ul { margin: 4px 0 0 16px; }
.admin-review-ok { background: rgba(76,119,87,.09); }
.admin-review-manual { background: rgba(195,138,79,.12); }
@media (max-width: 760px) { .product-form { grid-template-columns: 1fr; } .admin-product { grid-template-columns: 60px 1fr; } .admin-product-media { width: 60px; height: 60px; } .admin-product-actions { grid-column: 1 / -1; justify-content: start; } .admin-decision { flex-direction: column; align-items: stretch; } .admin-item { grid-template-columns: 1fr; } }

.admin-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.admin-scope label { cursor: pointer; }
.admin-scope input { position: absolute; opacity: 0; }
.admin-scope span { display: block; height: 100%; padding: 11px 13px; background: #fbfaf6; border: 1px solid var(--line); border-radius: 8px; }
.admin-scope input:checked + span { background: #f7ede6; border-color: #b15f49; box-shadow: 0 0 0 1px #b15f49; }
.admin-scope b, .admin-scope small { display: block; }
.admin-scope small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
#adminFabricationPreview { max-width: 320px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; }
@media (max-width: 600px) { .admin-scope { grid-template-columns: 1fr; } }

.split-panel { padding: 14px; background: #fbf3ea; border: 1px solid #e8d2bb; border-radius: 10px; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.split-modes { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; }
.split-modes label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.split-panel > p { margin: 8px 0 10px; font-size: .74rem; }
.split-list { display: grid; gap: 6px; }
.split-row { display: grid; grid-template-columns: auto 1fr 110px auto; gap: 10px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid #e6e4db; border-radius: 8px; }
.split-row.is-off { opacity: .5; }
.split-row input[type=number], .split-copy input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .82rem; }
.split-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; }
@media (max-width: 600px) { .split-row { grid-template-columns: auto 1fr; } .split-row input[type=number] { grid-column: 2; } }

.promo-form { margin-top: 16px; padding: 14px; background: #fff; border: 1px dashed #d8cbbd; border-radius: 9px; }
.promo-form label { display: block; margin-bottom: 6px; color: #30382f; font-size: .78rem; font-weight: 700; }
.promo-form > div { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.promo-applied { margin-top: 8px; color: var(--ok); font-size: .78rem; font-weight: 700; }
.order-promo b { color: var(--ok); font-size: 1rem; }
.admin-promo-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 14px 0; }
.admin-promo-form input { width: 100%; }
.admin-promos { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-promos th, .admin-promos td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-promos td:last-child { text-align: right; white-space: nowrap; }
.admin-promos code { font-weight: 700; }
.admin-promos tr.is-off { opacity: .55; }
@media (max-width: 700px) { .admin-promo-form { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Identité 2026 : monogramme « f. » en fil continu
   ============================================================ */
.brand { gap: 11px; }
img.brand-mark { display: block; width: 34px; height: 34px; padding: 0; background: none; border-radius: 10px; box-shadow: 0 6px 16px rgba(20, 24, 19, .18); transition: transform .25s ease; }
.brand:hover img.brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-name { font: 800 1.06rem var(--font-display); letter-spacing: -.045em; text-transform: lowercase; }
.brand-name::after { content: '.'; color: #d9764f; }
.brand small { margin-left: 4px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 20px; font-size: .55rem; letter-spacing: .14em; }

/* « L'IA réfléchit » : image analysée, scan, trait qui se dessine */
.creation-progress { grid-template-columns: 190px 1fr; gap: 26px; padding: 22px; background: linear-gradient(135deg, #f6f4ee, #ecebe4); border-radius: 16px; }
.ai-visual { position: relative; width: 190px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #1b1f1a; box-shadow: 0 18px 40px rgba(28, 32, 26, .18), inset 0 0 0 1px rgba(255,255,255,.06); }
.ai-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .55; transition: opacity .6s, filter .6s, transform 6s ease; }
.ai-visual img:not([src]), .ai-visual img[src=""] { display: none; }
.ai-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 19px 19px; mix-blend-mode: screen; }
.ai-scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(226,134,95,.38) 70%, rgba(255,214,190,.9) 98%, transparent); opacity: 0; }
.ai-points i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffd6be; box-shadow: 0 0 0 4px rgba(226,134,95,.25), 0 0 14px rgba(255,200,170,.8); opacity: 0; transform: scale(.4); }
.ai-points i:nth-child(1) { top: 30%; left: 36%; } .ai-points i:nth-child(2) { top: 31%; left: 62%; } .ai-points i:nth-child(3) { top: 52%; left: 49%; } .ai-points i:nth-child(4) { top: 70%; left: 30%; } .ai-points i:nth-child(5) { top: 68%; left: 70%; }
.ai-pen { position: absolute; inset: 14%; width: 72%; height: 72%; opacity: 0; }
.ai-pen path { fill: none; stroke: #fbf6ee; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(255,214,190,.6)); }
.ai-done { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800; background: radial-gradient(circle, rgba(76,119,87,.85), rgba(76,119,87,.55)); opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s; }
.creation-progress.is-active[data-stage='analysis'] .ai-scan { opacity: 1; animation: ai-scan 2.2s cubic-bezier(.45,.05,.55,.95) infinite; }
.creation-progress.is-active[data-stage='analysis'] .ai-points i { animation: ai-point 2.6s ease-in-out infinite; }
.creation-progress.is-active[data-stage='analysis'] .ai-visual img { transform: scale(1.08); }
.ai-points i:nth-child(2) { animation-delay: .4s !important; } .ai-points i:nth-child(3) { animation-delay: .8s !important; } .ai-points i:nth-child(4) { animation-delay: 1.2s !important; } .ai-points i:nth-child(5) { animation-delay: 1.6s !important; }
.creation-progress.is-active[data-stage='render'] .ai-visual img { opacity: .18; filter: grayscale(1) blur(2px); }
.creation-progress.is-active[data-stage='render'] .ai-pen { opacity: 1; }
.creation-progress.is-active[data-stage='render'] .ai-pen path { animation: ai-draw 3.2s ease-in-out infinite; }
.creation-progress[data-stage='complete'] .ai-done { opacity: 1; transform: scale(1); }
.creation-progress[data-stage='error'] .ai-visual img { opacity: .25; }
@keyframes ai-scan { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes ai-point { 0%, 100% { opacity: 0; transform: scale(.4); } 40%, 60% { opacity: 1; transform: scale(1); } }
@keyframes ai-draw { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ai-copy > b { display: block; margin-top: 10px; color: var(--champagne); font-size: 1.05rem; letter-spacing: -.02em; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 8px; color: #fffaf6; background: #1d211c; border-radius: 30px; font-size: .7rem; font-weight: 700; }
.ai-chip i { width: 8px; height: 8px; border-radius: 50%; background: #e2865f; box-shadow: 0 0 0 0 rgba(226,134,95,.6); }
.creation-progress.is-active .ai-chip i { animation: ai-pulse 1.4s ease-out infinite; }
.creation-progress[data-stage='complete'] .ai-chip i { background: #86c596; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(226,134,95,.65); } 100% { box-shadow: 0 0 0 9px rgba(226,134,95,0); } }
.ai-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; list-style: none; }
.ai-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 20px; font-size: .68rem; font-weight: 600; }
.ai-steps li span { width: 7px; height: 7px; border-radius: 50%; background: #cfcdc4; }
.creation-progress.is-active[data-stage='analysis'] [data-ai='analysis'], .creation-progress.is-active[data-stage='render'] [data-ai='render'] { color: #1d211c; border-color: #e2865f; }
.creation-progress.is-active[data-stage='analysis'] [data-ai='analysis'] span, .creation-progress.is-active[data-stage='render'] [data-ai='render'] span { background: #e2865f; animation: ai-pulse 1.4s ease-out infinite; }
.creation-progress[data-stage='render'] [data-ai='analysis'] span, .creation-progress[data-stage='complete'] [data-ai] span { background: var(--ok); }
.creation-progress[data-stage='complete'] [data-ai] { color: var(--ok); }
.progress-track { height: 5px; background: #dedcd3; }
.progress-track i { background: linear-gradient(90deg, #e2865f, #f3b896, #e2865f); background-size: 200% 100%; animation: ai-shimmer 1.6s linear infinite; border-radius: 5px; }
@keyframes ai-shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) { .creation-progress { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ai-visual { width: 160px; } .ai-steps { justify-content: center; } }

/* Pictos d'objets : mockups SVG avec l'illustration du client posée dessus */
.object-choice-art { background: radial-gradient(circle at 50% 40%, #f3f1ea, #e2e0d6) ; }
.object-choice-art::before { content: ''; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; clip-path: none; background: center / 100% 100% no-repeat; transform: none; }
.oc-tshirt::before { background-image: url('/assets/objects/tshirt.svg'); }
.oc-keyring::before { background-image: url('/assets/objects/keyring.svg'); }
.oc-card::before { background-image: url('/assets/objects/card.svg'); }
.object-choice-art img, .object-art-mock img { position: absolute; margin: 0; object-fit: contain; }
.oc-tshirt img { top: 40%; left: 50%; width: 30%; height: 30%; transform: translateX(-50%); filter: invert(1); mix-blend-mode: screen; }
.oc-keyring img { top: 37%; left: 50%; width: 34%; height: 34%; transform: translateX(-50%) rotate(-9deg); mix-blend-mode: multiply; }
.oc-card img { top: 37%; left: 17%; width: 27%; height: 27%; transform: rotate(-7deg); mix-blend-mode: multiply; }
.object-choice:hover .object-choice-art::before { transform: scale(1.05); transition: transform .3s ease; }
.object-art { background: radial-gradient(circle at 50% 35%, #f1efe7, #dcdfd2); }
.object-art-warm { background: radial-gradient(circle at 50% 35%, #f5ece4, #e5d5c8); }
.object-art-mock { position: relative; display: block; width: 210px; aspect-ratio: 1; transition: transform .35s ease; }
.object-art-mock::before { content: ''; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; clip-path: none; transform: none; background: center / 100% 100% no-repeat; }
.object-art-mock.oc-tshirt::before { background-image: url('/assets/objects/tshirt.svg'); }
.object-art-mock.oc-keyring::before { background-image: url('/assets/objects/keyring.svg'); }
.object-art-mock.oc-card::before { background-image: url('/assets/objects/card.svg'); }
.object-art-mock img { position: absolute; object-fit: contain; }
.object-card:hover .object-art-mock { transform: translateY(-6px) rotate(-2deg); }
.objects-hero-art { background: radial-gradient(circle at 40% 30%, #eceee4, #d4d8c9); }
.objects-hero-art::before { display: none; }
.objects-hero-art .object-art-mock { position: absolute; }
.hero-mock-a { width: 250px; left: 6%; top: 10%; transform: rotate(-6deg); }
.hero-mock-b { width: 190px; right: 8%; top: 6%; }
.hero-mock-c { width: 230px; right: 14%; bottom: 4%; }
@media (max-width: 760px) { .hero-mock-a { width: 190px; } .hero-mock-b { width: 150px; } .hero-mock-c { width: 180px; right: 4%; } }

/* Mockup t-shirt : photo réelle du vêtement (fournie dans l'admin) sous l'illustration */
.side-switch { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.side-switch .opt { padding: 6px 14px; font-size: .74rem; }
.mockup-wrap .shirt-photo { position: absolute; left: 15px; top: 15px; width: calc(100% - 30px); aspect-ratio: 400 / 460; object-fit: contain; pointer-events: none; filter: drop-shadow(0 16px 20px rgba(33,36,30,.16)); }
.mockup-wrap.has-photo svg.tshirt { visibility: hidden; }
.mockup-wrap.has-photo .print-zone { border-color: rgba(166,79,60,.35); }
.mockup-wrap.has-photo.is-light .design-layer img { mix-blend-mode: multiply; }
.mockup-wrap.no-print .design-layer, .mockup-wrap.no-print .print-zone { display: none; }
#garmentModel { margin-bottom: 0; color: var(--champagne); font-weight: 700; }

.admin-garment { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 10px; background: #fff; border: 1px solid #e6e4db; border-radius: 10px; }
.admin-garment.is-draft { opacity: .6; border-style: dashed; }
.admin-garment-photos { display: flex; gap: 6px; }
.admin-garment-photos figure { position: relative; display: grid; width: 92px; height: 104px; margin: 0; place-items: center; overflow: hidden; background: #e3e1d8; border-radius: 8px; }
.admin-garment-photos img { width: 100%; height: 100%; object-fit: contain; }
.admin-garment-photos span { color: var(--muted); font-size: .62rem; }
.admin-garment-photos figcaption { position: absolute; left: 5px; bottom: 4px; padding: 1px 6px; color: #fff; background: rgba(0,0,0,.45); border-radius: 10px; font-size: .58rem; }
.admin-garment-copy p { display: flex; align-items: center; gap: 6px; margin: 3px 0; color: var(--muted); font-size: .78rem; }
.admin-garment-copy a { font-size: .76rem; font-weight: 700; }
@media (max-width: 760px) { .admin-garment { grid-template-columns: 1fr; } }
.mockup-wrap:not(.is-light) .design-layer img { filter: invert(1); }
.field input[type=color] { width: 72px; height: 44px; padding: 4px; cursor: pointer; }

/* Casquette : photo par vue, zone imprimable, illustration contenue dans la zone */
.option-label { align-self: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.cap-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 12px; }
.cap-view { display: grid; grid-template-columns: 54px auto; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; color: var(--text); background: #f3f2ec; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .8rem; font-weight: 700; text-align: left; cursor: pointer; }
.cap-view img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 7px; }
.cap-view small { display: block; color: var(--muted); font-size: .66rem; font-weight: 500; }
.cap-view[aria-checked='true'] { color: var(--gold-soft); background: rgba(177,95,73,.08); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cap-stage { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin: 0 auto; background: radial-gradient(ellipse at 50% 55%, #d9d8cf, #efeee8 70%); border-radius: 14px; user-select: none; touch-action: none; }
.cap-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(33,36,30,.18)); }
.cap-zone { position: absolute; border: 1.5px dashed rgba(226,134,95,.85); border-radius: 8px; }
.cap-zone-label { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); padding: 2px 8px; color: #fff; background: rgba(166,79,60,.92); border-radius: 10px; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.cap-design { position: absolute; aspect-ratio: 1; cursor: grab; border: 1px dashed transparent; }
.cap-design:hover, .cap-design.dragging { border-color: rgba(255,255,255,.6); }
.cap-design img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: invert(1); }
.cap-stage.is-light .cap-design img { filter: none; mix-blend-mode: multiply; }
.cap-design .resize-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #e2865f; border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize; }
.oc-cap::before { background-image: none !important; }
.oc-cap img { top: 50%; left: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); }
.oc-cap { background: center / 92% no-repeat url('/assets/garments/casquette-noire-face.webp'), radial-gradient(circle at 50% 40%, #f3f1ea, #e2e0d6); }
.oc-cap img { top: 30%; width: 30%; height: 30%; transform: translate(-50%, 0); filter: invert(1); }
.cart-thumb-cap { background: #1d1d1f; }
.cart-thumb-cap img { padding: 14px; filter: invert(1); }

.cart-bundle b, .cart-bundle span { color: var(--ok) !important; }
.bundle-hint { margin: 0 0 12px; padding: 10px 12px; color: #6f4a2f; background: #f7ede4; border: 1px dashed #e0c2a8; border-radius: 8px; font-size: .76rem; line-height: 1.5; }
.price-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; color: #fff; background: #a64f3c; border-radius: 12px; font-size: .7rem; font-weight: 700; }
.object-choice-copy em[data-bundle]::after { content: attr(data-bundle); margin-left: 8px; padding: 2px 7px; color: var(--ok); background: rgba(76,119,87,.1); border-radius: 10px; font-size: .64rem; font-weight: 700; }

.bundle-editor { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.bundle-editor > p { margin: 4px 0 10px; font-size: .76rem; }
.bundle-tiers { display: grid; gap: 6px; margin-bottom: 10px; }
.bundle-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; }
.bundle-tier input { width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

.side-switch .opt { display: inline-flex; align-items: center; gap: 6px; }
.side-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfcdc4; }
.side-dot.on { background: #e2865f; box-shadow: 0 0 0 3px rgba(226,134,95,.2); }
.side-print { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 12px; color: var(--muted); font-size: .78rem; }

.text-issues { margin-top: 16px; padding: 12px 14px; color: #8f3b2c; background: #fbebe6; border: 1px solid #ecc3b6; border-radius: 9px; font-size: .78rem; line-height: 1.5; }
.text-issues p + p { margin-top: 4px; }
.studio-editor input[aria-invalid='true'] { border-color: #c2553f; box-shadow: 0 0 0 2px rgba(194,85,63,.15); }

/* Impression de modèles clients */
.print-page { padding: 36px 0 70px; }
.print-material { margin: 0 0 22px; padding: 16px 18px; background: #f3f1ea; border-left: 4px solid #e2865f; border-radius: 8px; }
.print-material b { color: #30382f; }
.print-material p { margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.print-drop { display: block; cursor: pointer; text-align: center; }
.print-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.print-layout .studio-preview-panel { position: sticky; top: 95px; }
.print-viewer { aspect-ratio: 1; background: radial-gradient(ellipse at 50% 38%, #f1efe8, #d9d8ce); border-radius: 10px; }
.print-size { display: grid; grid-template-columns: 1fr 100px; gap: 12px; align-items: center; }
.print-size input[type=range] { accent-color: #a64f3c; }
.print-estimate { display: grid; gap: 6px; margin: 18px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; }
.print-estimate > div { display: flex; justify-content: space-between; gap: 10px; }
.print-estimate span { color: var(--muted); }
.print-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.print-total b { color: #30382f; font-size: 1.35rem; }
.print-sign-head { margin-top: 26px; }
.print-agreement { padding: 14px; background: #fbf3ea; border: 1px solid #e8d2bb; border-radius: 10px; }
.print-agreement > p { color: #5c4a3c; font-size: .8rem; line-height: 1.6; }
@media (max-width: 860px) { .print-layout { grid-template-columns: 1fr; } .print-layout .studio-preview-panel { position: static; } }
.admin-print { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; }
.admin-print p { margin: 3px 0; }
.admin-item-copy .admin-print b { display: inline; font-size: inherit; margin: 0; }
.admin-print-note { color: #a64f3c; }
.admin-print-previews { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.admin-print-previews img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }
.admin-print-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-print-actions label { display: flex; gap: 6px; align-items: center; }
.admin-print-actions input { width: 90px; }

/* Héros : vraie photo du t-shirt + illustration réelle */
.hero-art { min-height: 520px; color: #30382f; background: radial-gradient(120% 90% at 55% 35%, #f6f3ec 0%, #e8e3d8 55%, #dcd6c8 100%); border-radius: 18px; box-shadow: 0 30px 70px rgba(37, 42, 34, .12); }
.hero-art::before, .hero-art::after { display: none; }
.hero-tee { position: relative; width: min(74%, 380px); margin: 18px 0 0 8%; animation: shirt-rise .85s ease-out both; }
.hero-tee-shirt { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 30px rgba(30, 30, 26, .28)); }
.hero-tee-print { position: absolute; left: 34%; top: 25%; width: 32%; height: auto; opacity: .94; mix-blend-mode: screen; }
.hero-source { position: absolute; left: 7%; top: 9%; width: 118px; margin: 0; padding: 7px 7px 9px; background: #fffdf8; border-radius: 10px; box-shadow: 0 16px 34px rgba(30, 30, 26, .18); transform: rotate(-5deg); animation: shirt-rise .85s .15s ease-out both; }
.hero-source img { display: block; width: 100%; height: auto; aspect-ratio: 36 / 44; object-fit: cover; border-radius: 6px; }
.hero-source figcaption { margin-top: 6px; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-align: center; text-transform: uppercase; color: #5f645a; }
.hero-arrow { position: absolute; left: calc(7% + 112px); top: 13%; width: 96px; color: #a64f3c; }
.hero-art-tag { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 13px; font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: #30382f; background: rgba(255, 253, 248, .82); border: 1px solid rgba(48, 56, 47, .1); border-radius: 999px; backdrop-filter: blur(6px); }
.hero-art-tag span { width: 7px; height: 7px; border-radius: 50%; background: #a64f3c; }
@media (max-width: 900px) { .hero-art { min-height: 440px; } }
@media (max-width: 700px) {
  .hero-art { min-height: 400px; }
  .hero-tee { width: min(68%, 290px); margin: 10px 0 34px 14%; }
  .hero-source { width: 84px; left: 5%; top: 6%; padding: 5px 5px 7px; }
  .hero-source figcaption { font-size: .54rem; }
  .hero-arrow { left: calc(5% + 80px); top: 9%; width: 66px; }
  .hero-art-tag { right: 12px; bottom: 12px; font-size: .6rem; }
}

/* Admin : fenêtres contextuelles, vêtements et couleurs */
body.modal-open { overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.modal-x { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: rgba(127,127,127,.12); }
.admin-modal-form .product-form-actions { display: flex; justify-content: flex-end; gap: 10px; grid-column: 1 / -1; margin-top: 4px; }
.admin-section-actions { display: flex; justify-content: flex-end; margin: 4px 0 14px; }
.garment-photo-pick { display: grid; place-items: center; height: 120px; margin-bottom: 6px; border: 1px dashed var(--line); border-radius: 10px; background: rgba(127,127,127,.06); overflow: hidden; }
.garment-photo-pick img { max-width: 100%; max-height: 100%; object-fit: contain; }
.garment-photo-pick span { font-size: .75rem; opacity: .6; }
.admin-color-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.admin-color-card { display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.admin-color-card b { display: block; }
.admin-color-card small { opacity: .65; font-size: .72rem; }
.admin-color-swatch { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.admin-color-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.admin-danger { color: var(--danger, #c0392b); }
.color-edit-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.color-edit-preview input[type=color] { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.color-edit-preview b { display: block; }
.color-edit-preview span { font-size: .8rem; opacity: .65; font-family: ui-monospace, monospace; }

/* Admin : prix des vêtements modifiables directement */
.garment-defaults { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 12px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.garment-defaults > div { display: grid; margin-right: auto; }
.garment-defaults small { opacity: .65; font-size: .74rem; }
.garment-defaults label, .garment-price-row label { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.price-input { display: inline-flex; align-items: center; gap: 4px; }
.price-input input { width: 92px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: transparent; color: inherit; }
.garment-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.garment-price-row small { opacity: .6; font-size: .72rem; }
