.event-row {
  cursor: pointer;
  border-radius: 10px;
  transition: background .18s ease, transform .18s ease;
}

.event-row:hover,
.event-row:focus-visible {
  background: #fbf7eb;
  transform: translateX(3px);
  outline: none;
}

.event-row > em {
  color: #9a7214;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.status.completed {
  background: #e9eee9;
  color: #41705a;
}

.event-details-dialog {
  width: min(700px, 94vw);
  max-height: 90vh;
}

.event-details-dialog form {
  max-height: 90vh;
  overflow: auto;
}

.event-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.event-dialog-heading h2,
.event-dialog-heading p { margin: 0; }
.event-dialog-heading p { color: var(--muted); margin-top: 5px; }

.event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.event-detail-grid > div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 10px;
  background: #f7f5f0;
}

.event-detail-grid small { color: var(--muted); }
.event-progress { border-top: 1px solid var(--line); padding-top: 20px; }
.event-progress h3 { margin: 0 0 13px; }
.event-progress ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.event-progress li { position: relative; padding: 24px 8px 10px; font-size: 11px; color: var(--muted); border-top: 3px solid #ddd; }
.event-progress li::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #ddd; top: -7px; left: 0; }
.event-progress li.done { border-color: #27845d; color: #27845d; }
.event-progress li.done::before { background: #27845d; }
.event-progress li.current { border-color: var(--gold); color: #8f6710; }
.event-progress li.current::before { background: var(--gold); }

.gift-process-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  margin: 14px 0 20px;
  background: #fff7dd;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
}

.gift-process-note span { color: #675f4e; line-height: 1.45; }

.gift-order-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.gift-order-tracker[hidden] { display: none; }
.gift-order-tracker h2 { margin: 0 0 5px; font-size: 21px; }
.gift-order-tracker > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.gift-order-tracker ol,
.gift-confirmation-dialog ol { display: flex; list-style: none; margin: 0; padding: 0; }
.gift-order-tracker li,
.gift-confirmation-dialog li { position: relative; min-width: 105px; padding-top: 23px; color: #999; font-size: 11px; text-align: center; border-top: 3px solid #ddd; }
.gift-order-tracker li::before,
.gift-confirmation-dialog li::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: -7px; left: calc(50% - 6px); background: #ddd; }
.gift-order-tracker li.active,
.gift-confirmation-dialog li.active { color: #8a6411; border-color: var(--gold); font-weight: 800; }
.gift-order-tracker li.active::before,
.gift-confirmation-dialog li.active::before { background: var(--gold); box-shadow: 0 0 0 4px #fff3c9; }

.gift-confirmation-dialog { width: min(620px, 92vw); text-align: center; }
.gift-confirmation-dialog > div { padding: 34px; }
.gift-confirmation-dialog h2 { margin: 8px 0; }
.gift-confirmation-dialog > div > p:not(.eyebrow) { color: var(--muted); }
.gift-confirmation-dialog > div > b { display: inline-block; margin: 8px 0 26px; padding: 8px 13px; background: #f4f1e9; border-radius: 8px; }
.gift-confirmation-dialog ol { justify-content: center; margin: 12px 0 28px; }
.confirmation-check { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #e2f3e9; color: #27845d; font-size: 30px; font-weight: 800; }

.document-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.document-page-head > div > p:last-child { color: var(--muted); }
.upload-document-button { display: inline-flex; align-items: center; cursor: pointer; margin: 0 0 4px; white-space: nowrap; }
.upload-document-button input { display: none; }
.document-list > button { cursor: pointer; }
.document-list > button:hover { background: #fbf8ef; }
.document-storage-note { color: var(--muted); font-size: 12px; text-align: center; }

.document-viewer-dialog {
  width: min(980px, 96vw);
  max-width: none;
  height: min(780px, 92vh);
}

.document-viewer-shell { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.document-viewer-shell > header,
.document-viewer-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.document-viewer-shell > header { position: relative; border-bottom: 1px solid var(--line); }
.document-viewer-shell > header h2 { margin: 0; font-size: 20px; }
.document-viewer-shell > header .close { position: static; width: 40px; height: 40px; border-radius: 50%; background: #f1eee7; display: grid; place-items: center; cursor: pointer; }
.document-viewer-shell > footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.document-viewer-shell > footer a { text-decoration: none; }
.document-preview { min-height: 0; background: #e8e5de; padding: 20px; display: grid; place-items: center; overflow: auto; }
.document-preview iframe { width: 100%; height: 100%; min-height: 520px; border: 0; background: #fff; box-shadow: 0 5px 28px #0002; }
.document-preview img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 5px 28px #0002; }
.document-preview #documentUnsupported { text-align: center; padding: 40px; background: #fff; border-radius: 12px; }

@media (max-width: 760px) {
  .event-detail-grid { grid-template-columns: 1fr; }
  .event-progress ul { grid-template-columns: 1fr 1fr; }
  .gift-order-tracker { display: block; }
  .gift-order-tracker ol { margin-top: 28px; overflow-x: auto; padding-top: 5px; }
  .gift-order-tracker li,
  .gift-confirmation-dialog li { min-width: 92px; }
  .document-page-head { display: block; }
  .upload-document-button { margin-top: 10px; }
  .document-viewer-dialog { width: 96vw; height: 90vh; }
  .document-viewer-shell > header,
  .document-viewer-shell > footer { padding: 14px; }
  .document-preview { padding: 10px; }
  .document-preview iframe { min-height: 460px; }
}

/* Édition des événements */
.event-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  margin-top: 18px;
}

.event-edit-grid label,
.event-description-label { margin: 8px 0; }
.event-edit-grid input[readonly],
.event-edit-grid select:disabled,
.event-description-label textarea[readonly] { background: #f7f5f0; border-color: transparent; color: var(--ink); opacity: 1; }
.event-details-dialog.editing .event-edit-grid input,
.event-details-dialog.editing .event-edit-grid select,
.event-details-dialog.editing .event-description-label textarea { background: #fff; border-color: var(--gold); }
.event-files { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.event-files > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.event-files h3 { margin: 0; }
.event-upload-button { display: inline-flex; align-items: center; margin: 0; cursor: pointer; font-size: 12px; padding: 9px 12px; }
.event-upload-button input { display: none; }
.event-upload-button:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.event-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.event-file-list > span { color: var(--muted); font-size: 13px; }
.event-file-list button { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: #f7f5f0; border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.event-file-list button small { color: #997019; }

/* Boutique dynamique et suivi des commandes */
.shop-page-head,
.shop-carousel-heading,
.shop-orders-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.shop-page-head > div > p:last-child,
.shop-carousel-heading p { color: var(--muted); }
#showOrdersButton span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 6px; border-radius: 50%; background: var(--gold); color: #111; font-size: 11px; }
.shop-orders-toggle i { display: inline-block; margin-left: 8px; font-style: normal; font-size: 18px; transition: transform .2s ease; }
.shop-orders-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.shop-orders-toggle[aria-expanded="true"] { border-color: var(--gold); background: #fff8df; }
.shop-carousel-heading { margin-bottom: 16px; }
.shop-carousel-heading h2,
.shop-orders-heading h2 { margin: 0 0 5px; font-size: 22px; }
.shop-carousel-heading p { margin: 0; }
.shop-carousel { position: relative; margin: 0 -14px; padding: 4px 58px; }
.shop-carousel-arrow { width: 46px; height: 68px; padding: 0; border: 1px solid #d8b24c; border-radius: 14px; background: #111; color: var(--gold2); font-size: 25px; cursor: pointer; box-shadow: 0 12px 28px #0003; }
.shop-edge-arrow { position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; transition: transform .2s ease, background .2s ease; }
.shop-edge-arrow:hover { transform: translateY(-50%) scale(1.05); background: #2a220f; }
.shop-edge-arrow-left { left: 4px; }
.shop-edge-arrow-right { right: 4px; }
.real-shop-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0 0 14px;
}
.real-shop-grid article { flex: 0 0 340px; scroll-snap-align: start; }
.product-mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 14px; }
.product-mini-gallery button { position: relative; border: 2px solid transparent; background: #f0ede6; border-radius: 7px; padding: 0; height: 58px; overflow: hidden; cursor: pointer; }
.product-mini-gallery button.active { border-color: var(--gold); }
.product-mini-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-mini-gallery button > span { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #111d; color: var(--gold2); font-size: 10px; font-weight: 850; }
.shop-product-image { transition: opacity .2s ease; }
.shop-orders { margin-bottom: 24px; }
.shop-order-list { display: grid; margin-top: 20px; }
.shop-order-list article { display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 15px 0; }
.shop-order-list article:first-child { border-top: 0; }
.shop-order-list article div { display: grid; gap: 4px; }
.shop-order-list small { color: var(--muted); }
.shop-order-list em { color: #2a7657; background: #e0f1e9; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; }
.shop-order-list strong { color: #8a6411; }
.order-reference { font-size: 11px; font-weight: 850; color: #977017; }
.empty-orders { padding: 32px; text-align: center; color: var(--muted); background: #f8f6f1; border-radius: 10px; }

.live-product-preview { position: relative; height: 340px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%,#4b4333,#151515 70%); display: grid; place-items: center; margin-bottom: 12px; perspective: 900px; }
.preview-product-composition { --logo-x: 0px; --logo-y: 0px; --logo-scale: .88; position: relative; width: 340px; height: 340px; }
.preview-product-composition #livePreviewProduct { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.live-print-zone { position: absolute; display: block; overflow: hidden; background: transparent; border: 1px dashed #d7aa3b99; border-radius: 7px; box-shadow: none; transform-origin: center; transition: left .22s ease, top .22s ease, transform .22s ease; }
.live-print-zone[hidden] { display: none; }
.preview-product-composition[data-product="mug"] .live-print-zone { left: 24%; top: 31%; width: 40%; height: 46%; }
.preview-product-composition[data-product="medal"] .live-print-zone { left: 29%; top: 30%; width: 42%; height: 42%; border-radius: 50%; }
.preview-product-composition[data-product="trophy"] .live-print-zone { left: 25%; top: 16%; width: 50%; height: 47%; border-radius: 18% 18% 32% 32%; }
.preview-product-composition[data-product="bottle"] .live-print-zone { left: 37%; top: 35%; width: 26%; height: 31%; border-radius: 10px; }
.preview-product-composition[data-product="tote"] .live-print-zone { left: 30%; top: 38%; width: 40%; height: 37%; border-radius: 8px; }
.preview-product-composition[data-product="lanyard"] .live-print-zone { left: 35%; top: 56%; width: 30%; height: 34%; border-radius: 5px; }
.preview-product-composition[data-product="generic"] .live-print-zone { left: 34%; top: 36%; width: 32%; height: 34%; border-radius: 7px; }
.preview-product-composition[data-view="left"] .live-print-zone { transform: translateX(-6px) skewY(-1.5deg) scaleX(.94); }
.preview-product-composition[data-view="right"] .live-print-zone { transform: translateX(6px) skewY(1.5deg) scaleX(.94); }
.preview-product-composition[data-view="low"] .live-print-zone { transform: translateY(5px) perspective(400px) rotateX(-7deg) scale(.96); }
.preview-product-composition[data-product="bottle"][data-view="left"] .live-print-zone,
.preview-product-composition[data-product="bottle"][data-view="right"] .live-print-zone { width: 22%; }
.preview-product-composition[data-product="lanyard"][data-view="left"] .live-print-zone { transform: translate(-7px,2px) rotate(4deg) scale(.92); }
.preview-product-composition[data-product="lanyard"][data-view="right"] .live-print-zone { transform: translate(7px,2px) rotate(-4deg) scale(.92); }
.live-print-zone #livePreviewLogo { position: absolute; left: calc(50% + var(--logo-x)); top: calc(45% + var(--logo-y)); width: 78%; height: 72%; object-fit: contain; transform: translate(-50%,-50%) scale(var(--logo-scale)); transform-origin: center; filter: drop-shadow(0 2px 3px #0008); cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.live-print-zone #livePreviewLogo.dragging { cursor: grabbing; }
.live-print-zone #livePreviewText { position: absolute; left: 8%; right: 8%; bottom: 6%; padding: 3px 5px; color: #f4ca57; background: #080808d9; border-radius: 3px; text-align: center; font-size: 10px; line-height: 1.2; font-weight: 850; word-break: break-word; }
.print-zone-label { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; border-radius: 999px; background: #050505bf; color: #e9bd48; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.preview-angle-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0 0 12px; }
.preview-angle-tabs button { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #f6f3ed; color: #5e5e5e; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.preview-angle-tabs button.active { border-color: #c99726; background: #fff3cc; color: #79570b; box-shadow: inset 0 -2px #d6a832; }
.preview-disclaimer { display: block; color: #686868; font-size: 12px; line-height: 1.45; margin: 0 0 15px; }
.preview-launch-button { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: center; text-align: left; border: 1px solid #5b4b27; border-radius: 12px; padding: 13px; background: #292720; color: #fff; cursor: pointer; }
.preview-launch-button > span { grid-row: 1/3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--gold2); color: #111; font-size: 23px; }
.preview-launch-button small { color: #bbb; font-weight: 500; line-height: 1.35; }
.logo-adjustments { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #faf8f3; }
.logo-adjustments > label { margin: 0 0 12px; }
.logo-adjustments input[type="range"] { width: 100%; padding: 0; accent-color: var(--gold); }
.logo-adjustments > div > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.position-pad { display: grid; grid-template-columns: 38px 38px 1fr 38px 38px; gap: 5px; }
.position-pad button { height: 36px; border: 1px solid #d8d3ca; border-radius: 7px; background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.position-pad button:hover { border-color: #c6972a; background: #fff6db; }
.logo-adjustments > small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.product-preview-dialog { width: min(1080px,96vw); max-height: 94vh; }
.product-preview-shell { position: relative; padding: 28px; }
.preview-studio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-right: 42px; margin-bottom: 20px; }
.preview-studio-header h2 { margin: 0 0 6px; font-size: 28px; }
.preview-studio-header > div > p:last-child { margin: 0; color: var(--muted); }
.preview-ready-badge { flex: none; padding: 8px 11px; border: 1px solid #d6a832; border-radius: 999px; background: #fff5d2; color: #79570b; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.preview-studio-layout { display: grid; grid-template-columns: 126px minmax(420px,1fr) 230px; gap: 18px; align-items: stretch; }
.preview-thumbnail-rail { display: flex; flex-direction: column; gap: 9px; }
.preview-thumbnail-rail > span { color: #6c6c6c; font-size: 12px; font-weight: 800; }
.preview-thumb-gallery { display: grid; gap: 9px; }
.preview-thumb { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; min-height: 82px; padding: 5px; border: 2px solid transparent; border-radius: 11px; background: #f3f0ea; color: #5f5f5f; text-align: left; cursor: pointer; }
.preview-thumb:hover,
.preview-thumb:focus-visible { border-color: #d6bd79; outline: none; }
.preview-thumb.active { border-color: var(--gold); background: #fff7dc; color: #6f5009; box-shadow: 0 7px 18px #8d6b1420; }
.preview-thumb > strong { font-size: 10px; line-height: 1.25; }
.preview-thumb-composition { --logo-x: 0px; --logo-y: 0px; --logo-scale: .88; position: relative; width: 74px; height: 74px; overflow: hidden; border-radius: 8px; background: #171717; }
.preview-thumb-product { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-thumb-zone { position: absolute; display: block; overflow: hidden; background: transparent; box-shadow: none; transform-origin: center; }
.preview-thumb-zone[hidden] { display: none; }
.preview-thumb-composition[data-product="mug"] .preview-thumb-zone { left: 30%; top: 31%; width: 40%; height: 46%; }
.preview-thumb-composition[data-product="medal"] .preview-thumb-zone { left: 29%; top: 30%; width: 42%; height: 42%; border-radius: 50%; }
.preview-thumb-composition[data-product="trophy"] .preview-thumb-zone { left: 25%; top: 16%; width: 50%; height: 47%; }
.preview-thumb-composition[data-product="bottle"] .preview-thumb-zone { left: 37%; top: 35%; width: 26%; height: 31%; }
.preview-thumb-composition[data-product="tote"] .preview-thumb-zone { left: 30%; top: 38%; width: 40%; height: 37%; }
.preview-thumb-composition[data-product="lanyard"] .preview-thumb-zone { left: 35%; top: 56%; width: 30%; height: 34%; border-radius: 2px; }
.preview-thumb-composition[data-view="left"] .preview-thumb-zone { transform: translateX(-1.5px) skewY(-1.5deg) scaleX(.94); }
.preview-thumb-composition[data-view="right"] .preview-thumb-zone { transform: translateX(1.5px) skewY(1.5deg) scaleX(.94); }
.preview-thumb-composition[data-view="low"] .preview-thumb-zone { transform: translateY(1.2px) perspective(100px) rotateX(-7deg) scale(.96); }
.preview-thumb-zone img { position: absolute; left: calc(50% + var(--logo-x)); top: calc(45% + var(--logo-y)); width: 78%; height: 72%; object-fit: contain; transform: translate(-50%,-50%) scale(var(--logo-scale)); }
.preview-thumb-zone span { position: absolute; left: 5%; right: 5%; bottom: 5%; padding: 1px; overflow: hidden; color: #f4ca57; background: #080808de; font-size: 3px; line-height: 1.1; font-weight: 850; text-align: center; white-space: nowrap; }
.preview-stage-column { min-width: 0; }
.preview-stage-column .live-product-preview { height: min(57vh,560px); min-height: 430px; margin: 0; }
.preview-stage-column .preview-product-composition { width: min(52vw,560px); height: min(52vw,560px); max-width: 100%; }
.preview-studio-summary { align-self: stretch; padding: 22px; border-radius: 14px; background: #171717; color: #fff; }
.preview-ai-mark { display: inline-block; padding: 6px 8px; border-radius: 6px; background: #30260d; color: var(--gold2); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.preview-studio-summary h3 { margin: 17px 0; font-size: 20px; }
.preview-studio-summary dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.preview-studio-summary dl > div { padding: 11px 0; border-top: 1px solid #333; }
.preview-studio-summary dt { color: #8e8e8e; }
.preview-studio-summary dd { margin-top: 4px; color: #fff; font-size: 13px; }
.preview-studio-summary > p { color: #aaa; font-size: 12px; line-height: 1.5; }
.preview-direct-controls { display: grid; gap: 10px; margin: 18px 0 4px; padding: 14px; border: 1px solid #3b3424; border-radius: 11px; background: #201c14; }
.preview-direct-controls > label { display: flex; justify-content: space-between; gap: 8px; color: #fff; font-size: 12px; font-weight: 750; }
.preview-direct-controls > label b { color: var(--gold2); }
.preview-direct-controls input[type="range"] { width: 100%; padding: 0; accent-color: var(--gold2); }
.preview-direct-controls > div { display: grid; grid-template-columns: 42px 1fr 42px; gap: 7px; }
.preview-direct-controls button { min-height: 38px; border: 1px solid #54451e; border-radius: 8px; background: #0e0e0e; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.preview-direct-controls button:hover { border-color: var(--gold2); color: var(--gold2); }
.preview-direct-controls small { color: #b8b09f; font-size: 10px; line-height: 1.4; }
.preview-studio-summary .gold-button { margin-top: 12px; }
.product-preview-shell > .preview-disclaimer { margin: 16px 0 0 144px; }
.full-preview-return { width: 100%; }
.shop-order-confirmation-dialog { width: min(610px,94vw); }
.shop-confirmation-shell { position: relative; padding: 30px; }
.shop-confirmation-shell > h2 { margin: 8px 0; }
.shop-confirmation-shell > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.shop-confirmation-reference { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #fff2ca; color: #85610d; }
.shop-order-process { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.shop-order-process li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.shop-order-process li > b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eeeae1; }
.shop-order-process li.active { border-color: #dbb64b; background: #fffae9; }
.shop-order-process li.active > b { background: var(--gold2); }
.shop-order-process span { display: grid; gap: 3px; font-weight: 800; }
.shop-order-process small { color: var(--muted); font-weight: 500; line-height: 1.35; }

@media (max-width: 760px) {
  .event-edit-grid { grid-template-columns: 1fr; }
  .event-files > div:first-child,
  .shop-page-head,
  .shop-carousel-heading,
  .shop-orders-heading { align-items: flex-start; flex-direction: column; }
  .shop-carousel { margin: 0 -8px; padding: 4px 38px; }
  .shop-carousel-arrow { width: 36px; height: 58px; border-radius: 11px; }
  .shop-edge-arrow-left { left: 0; }
  .shop-edge-arrow-right { right: 0; }
  .real-shop-grid article { flex-basis: min(84vw, 320px); }
  .shop-order-list article { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .shop-order-list article div { grid-column: 1/-1; }
  .shop-confirmation-shell { padding: 24px 18px; }
  .shop-confirmation-shell .dialog-actions { flex-direction: column; }
  .shop-confirmation-shell .dialog-actions button { width: 100%; }
  .live-product-preview { height: 300px; }
  .preview-product-composition { width: 300px; height: 300px; }
  .preview-angle-tabs { grid-template-columns: 1fr 1fr; }
  .product-preview-shell { padding: 22px 16px; }
  .preview-studio-header { display: block; padding-right: 35px; }
  .preview-ready-badge { display: inline-block; margin-top: 10px; }
  .preview-studio-layout { grid-template-columns: 1fr; }
  .preview-thumbnail-rail { order: 2; }
  .preview-thumb-gallery { grid-template-columns: repeat(4,1fr); }
  .preview-thumb { display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 0; padding: 4px; }
  .preview-thumb-composition { width: 100%; height: auto; aspect-ratio: 1; }
  .preview-stage-column { order: 1; }
  .preview-stage-column .live-product-preview { min-height: 300px; height: 42vh; }
  .preview-stage-column .preview-product-composition { width: min(88vw,420px); height: min(88vw,420px); }
  .preview-studio-summary { order: 3; }
  .product-preview-shell > .preview-disclaimer { margin: 14px 0 0; }
}

/* Mur social dans les espaces latéraux */
.social-side-wall { position: fixed; top: calc(50% + 70px); z-index: 3; width: min(410px,calc((100vw - 1240px)/2 - 22px)); display: grid; gap: 25px; transform: translateY(-50%); }
.social-side-left { left: 16px; }
.social-side-right { right: 16px; }
.social-wall-title { display: grid; gap: 4px; padding: 0 12px 2px; text-align: center; }
.social-wall-title span { color: #a77c19; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.social-wall-title b { color: #262626; font-size: 24px; }
.social-mini-card { position: relative; width: 100%; min-height: 405px; display: grid; grid-template-rows: auto 260px auto auto; align-content: start; gap: 13px; padding: 20px; overflow: hidden; border: 1px solid #ded9ce; border-radius: 22px; background: #fff; color: #171717; text-align: left; box-shadow: 0 22px 58px #211a0b24; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.social-side-left .social-mini-card:first-of-type { margin-left: 28px; width: calc(100% - 28px); }
.social-side-left .social-mini-card:last-of-type { width: calc(100% - 38px); }
.social-side-right .social-mini-card:first-of-type { width: calc(100% - 38px); }
.social-side-right .social-mini-card:last-of-type { margin-left: 28px; width: calc(100% - 28px); }
.social-mini-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg,#9c6c09,#f5cf68); transform-origin: left; animation: social-card-progress 9s linear infinite; }
.social-mini-card.is-refreshing { animation: social-card-refresh .42s ease; }
.social-mini-card:hover,
.social-mini-card:focus-visible { transform: translateY(-3px); border-color: #c6992c; outline: none; box-shadow: 0 20px 42px #211a0b2b; }
.social-platform { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .03em; }
.social-platform.instagram { background: linear-gradient(110deg,#7d2ace,#df285e,#ee8a20); }
.social-platform.facebook { background: #1877f2; }
.social-platform.youtube { background: #e32119; }
.social-platform.tiktok { background: #090909; box-shadow: inset 2px 0 #28f0ee,inset -2px 0 #ff2b63; }
.social-mini-visual,
.social-dialog-visual { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 10px; isolation: isolate; }
.social-mini-visual { height: 260px; }
.social-mini-visual::before,
.social-dialog-visual::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: repeating-radial-gradient(circle at 15% 20%,#d5a72c22 0 2px,transparent 3px 22px),linear-gradient(145deg,#050505,#2b210b); transform: rotate(-8deg); }
.social-visual-live::before { background: radial-gradient(circle at 75% 22%,#d9ad3c77,transparent 26%),linear-gradient(145deg,#050505,#3d210a); }
.social-visual-video::before { background: radial-gradient(circle,#492f08,#050505 66%); }
.social-visual-backstage::before { background: linear-gradient(120deg,#060606 12%,#4a3610 48%,#090909 80%); }
.social-visual-wedding::before { background: radial-gradient(circle at 70% 25%,#f8dc9877,transparent 30%),linear-gradient(145deg,#2b1712,#8b5c31); }
.social-visual-quidd::before { background: radial-gradient(circle at 20% 80%,#c89523aa,transparent 28%),linear-gradient(130deg,#030303,#302008); }
.social-visual-photo::before { background: radial-gradient(circle at 22% 20%,#e9b93e88,transparent 22%),linear-gradient(135deg,#20130a,#070707 65%); }
.social-visual-gala::before { background: linear-gradient(125deg,#050505 15%,#6b4b16 48%,#0a0a0a 82%); }
.social-visual-tiktok::before { background: radial-gradient(circle at 28% 35%,#28f0ee88,transparent 25%),radial-gradient(circle at 72% 62%,#ff2b6388,transparent 28%),linear-gradient(145deg,#050505,#171717); }
.social-mini-visual img { width: 145px; height: 145px; object-fit: contain; filter: drop-shadow(0 12px 12px #000b); }
.social-mini-visual b { position: absolute; left: 14px; bottom: 12px; color: #f4cd68; font-size: 12px; letter-spacing: .14em; }
.social-mini-visual i { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #e32119; color: #fff; font-style: normal; font-size: 18px; box-shadow: 0 8px 20px #0009; }
.social-mini-visual i[hidden] { display: none; }
.social-mini-card > strong { font-size: 19px; line-height: 1.3; }
.social-mini-card > small { color: #787878; font-size: 14px; line-height: 1.4; }
.social-live-card { grid-template-rows: auto 260px auto auto; }
.social-live-embed { width: 100%; height: 260px; overflow: hidden; border-radius: 12px; background: #080808; }
.social-live-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.tiktok-profile-embed { overflow: auto; background: #fff; }
.tiktok-profile-embed .tiktok-embed { min-width: 288px !important; max-width: 100% !important; margin: 0 !important; }
.social-live-open { align-self: end; color: #8b650d; font-size: 14px; font-weight: 800; text-decoration: none; }
.social-live-open:hover,.social-live-open:focus-visible { color: #111; text-decoration: underline; }
.instagram-live-embed { position:relative; background:radial-gradient(circle at 22% 15%,#fbcb55aa,transparent 30%),radial-gradient(circle at 82% 85%,#8b2bd6aa,transparent 34%),linear-gradient(145deg,#33145d,#ca2d6d 55%,#f0922f); }
.instagram-live-embed iframe { position:absolute; inset:0; z-index:2; background:#fff; }
.instagram-feed-fallback { position:absolute; inset:0; z-index:1; color:#fff; display:grid; place-items:center; align-content:center; gap:12px; padding:22px; text-align:center; text-decoration:none; }
.instagram-feed-fallback img { width:132px; height:132px; object-fit:contain; filter:drop-shadow(0 12px 18px #0008); }
.instagram-feed-fallback span { display:grid; gap:4px; }
.instagram-feed-fallback b { font-size:20px; }
.instagram-feed-fallback small { color:#fff; font-size:12px; line-height:1.35; }
@keyframes social-card-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes social-card-refresh { 0% { opacity: .55; transform: translateY(4px); } 100% { opacity: 1; transform: translateY(0); } }
.social-post-dialog { width: min(780px,94vw); }
.social-post-shell { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 390px; }
.social-dialog-visual { min-height: 390px; border-radius: 0; }
.social-dialog-visual img { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 16px 18px #000b); }
.social-dialog-visual b { position: absolute; left: 24px; bottom: 24px; color: #f4cc63; font-size: 18px; letter-spacing: .14em; }
.social-dialog-visual i { position: absolute; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #e32119e8; color: #fff; font-size: 25px; font-style: normal; box-shadow: 0 10px 28px #000b; }
.social-dialog-visual i[hidden] { display: none; }
.social-dialog-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px 34px 32px; }
.social-dialog-content .eyebrow { margin-top: 22px; }
.social-dialog-content h2 { margin: 0 0 13px; font-size: 28px; line-height: 1.08; }
.social-dialog-content > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.social-dialog-content > small { margin: 17px 0 24px; color: #8a8a8a; }
.social-dialog-content .gold-button { width: 100%; }
@media (max-width: 1899px) {
  .social-side-wall { display: none; }
}
@media (max-width: 680px) {
  .social-post-shell { grid-template-columns: 1fr; }
  .social-dialog-visual { min-height: 230px; }
  .social-dialog-visual img { width: 120px; height: 120px; }
  .social-dialog-content { padding: 28px 22px 24px; }
}

/* Bandeau premium et profil client */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 142px;
  bottom: 0;
  width: max(0px, calc((100vw - 1360px) / 2));
  pointer-events: none;
  opacity: .62;
  z-index: 0;
}
body::before {
  left: 0;
  border-right: 1px solid #b98a2638;
  background:
    radial-gradient(circle at 112% 16%, transparent 0 86px, #b98a2640 87px 88px, transparent 89px 119px, #b98a2624 120px 121px, transparent 122px),
    linear-gradient(145deg, transparent 42%, #b98a261f 42.4% 42.8%, transparent 43.2%);
}
body::after {
  right: 0;
  border-left: 1px solid #b98a2638;
  background:
    radial-gradient(circle at -12% 68%, transparent 0 100px, #b98a2640 101px 102px, transparent 103px 137px, #b98a2624 138px 139px, transparent 140px),
    linear-gradient(35deg, transparent 57%, #b98a261f 57.4% 57.8%, transparent 58.2%);
}
main { position: relative; z-index: 1; }
.client-header {
  height: 104px;
  overflow: visible;
  isolation: isolate;
}
.client-header::before,
.client-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: min(28vw, 430px);
  height: 22px;
  border-top: 1px solid #8a671b;
  opacity: .8;
  pointer-events: none;
  z-index: -1;
}
.client-header::before {
  left: 0;
  border-radius: 0 100% 0 0;
  background: linear-gradient(90deg, #d8a72933, transparent);
}
.client-header::after {
  right: 0;
  border-radius: 100% 0 0 0;
  background: linear-gradient(270deg, #d8a72933, transparent);
}
.client-header .brand img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #6d531e, 0 10px 30px #000;
}
.client-header .brand b { font-size: 20px; }
.client-header .brand span { font-size: 11px; }
.client-header .brand.client-brand-active { min-width: 172px; height: 76px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.client-header .brand.client-brand-active img { width: 158px; max-width: 158px; height: 68px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; filter: drop-shadow(0 5px 10px #0009); }
.client-header .brand.client-brand-active #headerBrandText { display: none; }
.client-header nav { margin-right: 115px; }
.header-socials { display: flex; align-items: center; gap: 7px; }
.header-socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #4b3c1d; border-radius: 10px; background: #14110b; color: #e1b846; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.header-socials a:hover,
.header-socials a:focus-visible { border-color: #d6a832; background: #211a0b; outline: none; transform: translateY(-2px); }
.header-socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-socials .social-fill { fill: currentColor; stroke: none; }
.mobile-socials { display: none; }
.header-medal {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 13px 12px #0009);
  pointer-events: none;
  z-index: 4;
}
body[data-contract="silver"] .header-medal { content:url("assets/products/medaille-jlcp-transparent.png"); filter:saturate(1.08) drop-shadow(0 13px 12px #0009); }
body[data-contract="bronze"] .header-medal { content:url("assets/products/medaille-jlcp-bronze.png"); filter:drop-shadow(0 0 9px #d9773238) drop-shadow(0 13px 12px #0009); }
body[data-contract="gold"] .header-medal { content:url("assets/products/medaille-jlcp-transparent.png"); filter:saturate(1.08) drop-shadow(0 13px 12px #0009); }
.client-header .profile {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.client-header .profile:hover,
.client-header .profile:focus-visible { border-color: #71591f; background: #17140d; outline: none; }
.client-header .profile > span:last-child b,
.client-header .profile > span:last-child small { display: block; }
.client-header .profile > span:last-child small { color: #999; }

@media (min-width: 1001px) {
  .client-header { height: 142px; }
  .client-header .brand { position: absolute; left: max(28px, calc((100vw - 1240px)/2)); top: 14px; }
  .client-header .header-socials { position: absolute; top: 34px; }
  .client-header .header-socials-left { left: auto; right: calc(50% + 68px); }
  .client-header .header-socials-right { left: calc(50% + 68px); }
  .client-header nav { position: absolute; left: 50%; bottom: 0; height: 50px; margin: 0; transform: translateX(-50%); }
  .client-header .header-medal { width: 96px; height: 96px; top: 0; }
  .client-header .notification-button { position: absolute; right: max(318px, calc((100vw - 650px)/2)); top: 27px; }
  .client-header .profile { position: absolute; right: max(82px, calc((100vw - 1110px)/2)); top: 17px; margin: 0; }
  .client-header .signout-button { position: absolute; right: max(28px, calc((100vw - 1240px)/2)); top: 27px; }
}

.hero { gap: 24px; padding-inline: 32px; }
.hero-copy { max-width: 430px; }
.hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.hero-whatsapp{display:grid;grid-template-columns:12px 1fr;column-gap:10px;width:min(100%,360px);padding:13px 16px;border-radius:10px;background:#123f8c;color:#fff;text-decoration:none;box-shadow:0 10px 24px rgba(18,63,140,.3);transition:transform .18s ease,background .18s ease}.hero-whatsapp:hover{background:#1953b8;transform:translateY(-1px)}.hero-whatsapp>span{grid-row:1/3;color:#39d67d;font-size:15px;line-height:1.1}.hero-whatsapp strong{font-size:14px;line-height:1.2}.hero-whatsapp small{margin-top:3px;color:#dce8ff;font-size:11px;line-height:1.3}
.hero-partner-grid { position: relative; z-index: 1; width: min(570px,54%); display: grid; grid-template-columns: 230px minmax(260px,1fr); gap: 18px; align-items: stretch; }
.hero-partner-grid .contract-medallion { min-width: 0; min-height: 205px; border: 1px solid #393939; border-radius: 16px; background: #171717; }
.hero-jlcp-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 4px 0; overflow: visible; position: relative; text-align: center; }
.hero-jlcp-card img { width: 190px; height: 170px; object-fit: contain; border-radius: 18px; }
.hero-jlcp-card div { position: relative; z-index: 1; line-height: 1.15; }
.hero-jlcp-card span,
.hero-jlcp-card b,
.hero-jlcp-card small { display: block; }
.hero-jlcp-card span { color: #fff; font-size: 15px; line-height: 1.1; font-weight: 850; letter-spacing: .09em; }
.hero-jlcp-card b { margin: 3px 0 0; color: var(--gold2); font-size: 13px; line-height: 1.1; letter-spacing: .12em; }
.hero-partner-grid .contract-medallion { width: auto; padding: 22px; }

.profile-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.profile-page-head > div > p:last-child { color: var(--muted); }
.profile-contract-badge { padding: 9px 13px; border: 1px solid #cf9f2b; border-radius: 999px; background: #fff5d7; color: #7e5d0e; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-card { padding: 26px; }
.profile-logo-card { grid-column: 1/-1; }
.profile-delivery-card { grid-column: 1/-1; }
.profile-card-heading { display: flex; align-items: flex-start; gap: 13px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.profile-card-heading > span { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #171717; color: var(--gold2); font-size: 11px; font-weight: 850; }
.profile-card-heading h2 { margin: 0 0 4px; font-size: 20px; }
.profile-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.profile-card label { margin: 10px 0; font-size: 13px; }
.profile-card input { width: 100%; }
.profile-card input[readonly] { background: #f1eee7; color: #777; }
.profile-logo-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: center; }
.profile-logo-controls > small { display: block; color: var(--muted); margin-top: -4px; }
.profile-logo-controls > p { max-width: 560px; color: var(--muted); line-height: 1.55; }
.profile-logo-uploader { position: relative; border: 1px dashed #b78a24; border-radius: 12px; padding: 18px; background: #fff9e8; color: #86620f; cursor: pointer; text-align: center; }
.profile-logo-uploader:hover { background: #fff3cd; }
.profile-logo-uploader input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-brand-preview { display: grid; gap: 9px; padding: 16px; border-radius: 15px; background: #090909; color: #fff; }
.profile-brand-preview > span { color: var(--gold2); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.profile-brand-preview > small { color: #cfc7b4; text-align: center; }
.profile-logo-transparent-stage { min-height: 150px; display: grid; place-items: center; padding: 12px; border-block: 1px solid #2f2918; background: radial-gradient(circle,#201b0e,#090909 72%); }
.profile-logo-transparent-stage img { grid-area: 1/1; width: 100%; max-width: 250px; height: 125px; object-fit: contain; filter: drop-shadow(0 7px 12px #000b); }
.profile-logo-transparent-stage p { grid-area: 1/1; max-width: 190px; margin: 0; color: #777; text-align: center; font-size: 13px; line-height: 1.45; }
.fixed-product-notice { display: grid; gap: 5px; margin: 0 0 15px; padding: 13px 14px; border: 1px solid #d9b44b; border-radius: 10px; background: #fff7dc; color: #6f510d; }
.fixed-product-notice[hidden] { display: none; }
.fixed-product-notice b { font-size: 14px; }
.fixed-product-notice span { font-size: 12px; line-height: 1.45; }
.same-address-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; padding: 12px 14px; background: #fff8e5; border-radius: 9px; }
.same-address-check input { width: auto; accent-color: var(--gold); }
.profile-save-bar { position: sticky; bottom: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 14px 18px; border-radius: 13px; background: #171717; color: #aaa; box-shadow: 0 16px 45px #0003; }
.profile-save-bar button { flex: none; }

@media (max-width: 1220px) {
  .client-header nav { margin-right: 0; }
  .header-medal { opacity: .92; }
  body::before,
  body::after { display: none; }
  .client-header .header-socials { display: none; }
  .hero-copy { max-width: 440px; }
  .hero-partner-grid { width: 52%; grid-template-columns: minmax(155px,1fr) minmax(210px,1fr); }
  .hero-jlcp-card { gap: 5px; }
  .hero-jlcp-card img { width: 130px; height: 115px; }
  .hero-jlcp-card span { font-size: 13px; }
  .hero-jlcp-card b { font-size: 12px; }
}
@media (max-width: 1000px) {
  .header-medal { display: none; }
  .client-header .brand img { width: 62px; height: 62px; }
  .client-header .brand.client-brand-active { min-width: 120px; width: 150px; height: 64px; padding: 0; }
  .client-header .brand.client-brand-active img { width: 142px; height: 58px; }
  .hero { align-items: stretch; }
  .hero-copy { max-width: 46%; }
  .hero-partner-grid { width: 54%; grid-template-columns: 1fr; }
  .hero-partner-grid .contract-medallion { min-height: 0; }
}
@media (max-width: 760px) {
  .client-header { height: 78px; }
  .client-header nav { top: 78px; }
  .client-header .brand img { width: 54px; height: 54px; }
  .client-header .brand b { font-size: 16px; }
  .client-header .brand span { font-size: 9px; }
  .client-header .brand.client-brand-active { width: 128px; min-width: 128px; height: 58px; }
  .client-header .brand.client-brand-active img { width: 120px; height: 50px; }
  .mobile-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px 11px 12px; border-top: 1px solid #393119; }
  .mobile-socials a { padding: 10px; border: 1px solid #4a3a18; border-radius: 8px; color: var(--gold2); text-decoration: none; text-align: center; font-size: 13px; font-weight: 750; }
  .hero-copy { max-width: none; }
  .hero-partner-grid { width: 100%; margin-top: 24px; grid-template-columns: 1fr; }
  .hero-jlcp-card { gap: 5px; }
  .hero-jlcp-card img { width: 150px; height: 135px; }
  .hero-jlcp-card span { font-size: 14px; }
  .hero-jlcp-card b { font-size: 12px; }
  .profile-layout,
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-logo-card,
  .profile-delivery-card { grid-column: auto; }
  .profile-logo-layout { grid-template-columns: 1fr; }
  .profile-page-head { align-items: flex-start; flex-direction: column; }
  .profile-save-bar { align-items: stretch; flex-direction: column; }
}
