:root {
  /* variables historiques : utilisees par le rendu des slides, ne pas modifier */
  --dark: #1C1923;
  --red: #C21725;
  --gray1: #65616D;
  --gray2: #736F7C;
  --gray3: #7C7885;
  --line: #D8D6DD;
  --border: #DFDDE4;
  --bg: #FAF9FC;
  --white: #FFFFFF;

  /* interface Groupe SEB */
  --seb-red: #D2402F;
  --seb-red-btn: #C8372A;
  --seb-red-dark: #A82B1E;
  --seb-red-tint: #FCEEEB;
  --ui-ink: #2F2A28;
  --ui-muted: #6E6561;
  --ui-line: #E7E2DE;
  --ui-line-strong: #D5CDC8;
  --ui-bg: #F6F4F2;
  --ui-card: #FFFFFF;
  --ui-green: #2E7D4F;
  --ui-green-tint: #E8F4EC;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(47,42,40,.06);
  --shadow-md: 0 1px 3px rgba(47,42,40,.05), 0 12px 32px rgba(47,42,40,.07);
  --shadow-lg: 0 4px 12px rgba(47,42,40,.08), 0 18px 44px rgba(47,42,40,.14);
  --ui-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--ui-font);
  background: var(--ui-bg);
  color: var(--ui-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

:focus-visible { outline: 3px solid rgba(210,64,47,.5); outline-offset: 2px; }

.skipLink {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ui-ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; text-decoration: none; transition: top .15s;
}
.skipLink:focus { top: 12px; }

/* ---- en-tete ---- */
.topbar {
  background: var(--ui-card);
  border-top: 5px solid var(--seb-red);
  border-bottom: 1px solid var(--ui-line);
}
.topbarInner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brandLockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sebMark { height: 58px; width: auto; display: block; flex: 0 0 auto; }
.brandText h1 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--ui-ink); }
.brandText span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ui-muted); }
.brandStrip {
  display: flex; align-items: center; gap: 24px;
  padding-left: 24px; border-left: 1px solid var(--ui-line);
}
.brandStrip img { height: 26px; width: auto; max-width: 96px; object-fit: contain; display: block; opacity: .9; }
.brandStrip img.cropWide { width: 92px; height: 30px; max-width: none; object-fit: cover; }

/* ---- barre de progression ---- */
.stepper {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ui-line);
}
.stepper ol {
  list-style: none; margin: 0 auto; padding: 10px 24px; max-width: 1180px;
  display: flex; align-items: center; gap: 0;
}
.step { display: flex; align-items: center; flex: 0 1 auto; }
.step + .step::before {
  content: ""; width: clamp(24px, 6vw, 72px); height: 2px; margin: 0 14px;
  background: var(--ui-line-strong); border-radius: 2px; transition: background .25s;
}
.step.done + .step::before, .step.current::before { background: var(--seb-red); }
.step a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ui-muted); font-size: 14px; font-weight: 600;
  pointer-events: none; border-radius: 999px; padding: 2px 6px 2px 2px;
}
.stepNum {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ui-line-strong); background: #fff; color: var(--ui-muted);
  font-size: 13.5px; font-weight: 700; transition: background .2s, border-color .2s, color .2s;
}
.step.current a { color: var(--ui-ink); pointer-events: auto; }
.step.current .stepNum { background: var(--seb-red-btn); border-color: var(--seb-red-btn); color: #fff; }
.step.done a { color: var(--ui-ink); pointer-events: auto; }
.step.done a:hover .stepLabel { text-decoration: underline; }
.step.done .stepNum { background: var(--ui-green); border-color: var(--ui-green); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; }

/* ---- panneaux ---- */
.panel {
  background: var(--ui-card);
  border: 1px solid var(--ui-line);
  border-radius: var(--radius);
  padding: 28px 32px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  animation: panelIn .35s ease both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panelHead { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.panelNum {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--seb-red-tint); color: var(--seb-red-dark);
  font-size: 17px; font-weight: 800;
}
.panel.done .panelNum { background: var(--ui-green-tint); color: var(--ui-green); font-size: 0; }
.panel.done .panelNum::before { content: "✓"; font-size: 18px; }
.panel h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.005em; }
.panelHint { margin: 3px 0 0; font-size: 14px; color: var(--ui-muted); }

/* ---- import ---- */
.dropzone {
  border: 2px dashed var(--ui-line-strong);
  border-radius: 14px;
  padding: 40px 20px 36px;
  text-align: center;
  background: #FCFBFA;
  color: var(--ui-muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.dropzone:hover, .dropzone.drag, .dropzone:focus-visible {
  border-color: var(--seb-red);
  background: var(--seb-red-tint);
}
.dropzone.drag { transform: scale(1.01); }
.dzIcon { color: var(--seb-red); display: block; margin: 0 auto 10px; }
.dzTitle { font-size: 16px; color: var(--ui-ink); }
.dzTitle strong { color: var(--seb-red-dark); }
.dzSub { margin-top: 4px; font-size: 13px; }

.fileCard {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px 20px; border: 1px solid var(--ui-line); border-radius: 12px;
  background: #FAF8F7;
}
.fileIcon { color: var(--ui-green); flex: 0 0 auto; }
.fileMeta { flex: 1 1 200px; min-width: 0; }
.fileCard .btn-ghost { margin-left: auto; }
.fileName { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chipRow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--ui-muted);
  background: var(--ui-bg); border: 1px solid var(--ui-line);
}
.chip strong { color: var(--ui-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.chip.accent { background: var(--seb-red-tint); border-color: #F3CFC8; color: var(--seb-red-dark); }
.chip.accent strong { color: var(--seb-red-dark); }

.loadingLine { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ui-muted); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2.5px solid var(--ui-line-strong); border-top-color: var(--seb-red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.errorLine {
  display: none; margin-top: 14px; padding: 12px 14px;
  background: #FDEDEA; border-left: 4px solid var(--seb-red); color: #8A2418;
  border-radius: 8px; font-size: 14px;
}

/* ---- canal et periodes ---- */
.controlsRow { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 36px; }
.fieldLabel {
  display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted);
}
.fieldLabelRow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fieldLabelRow .fieldLabel { margin-bottom: 8px; }
.counter {
  font-size: 12.5px; font-weight: 700; color: var(--seb-red-dark);
  background: var(--seb-red-tint); padding: 2px 10px; border-radius: 999px;
}
.selectWrap { position: relative; }
.selectWrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 12px 42px 12px 14px; font: inherit; font-size: 15px; color: var(--ui-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%236E6561' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--ui-line-strong); border-radius: 10px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.selectWrap select:hover { border-color: var(--ui-muted); }
.selectWrap select:focus { outline: none; border-color: var(--seb-red); box-shadow: 0 0 0 4px rgba(210,64,47,.15); }

.periodToolbar { margin-bottom: 10px; display: flex; gap: 14px; }
.linkBtn {
  background: none; border: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--seb-red-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: transparent; transition: text-decoration-color .15s;
}
.linkBtn:hover { text-decoration-color: currentColor; }

#periodsList {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px; max-height: 248px; overflow-y: auto; padding: 2px;
}
.period-item { position: relative; display: block; cursor: pointer; }
.period-item input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.period-item span {
  display: block; text-align: center; padding: 9px 10px; font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  background: #fff; border: 1.5px solid var(--ui-line-strong); border-radius: 10px;
  transition: border-color .12s, background .12s, color .12s, transform .12s;
}
.period-item:hover span { border-color: var(--ui-muted); }
.period-item input:focus-visible + span { outline: 3px solid rgba(210,64,47,.5); outline-offset: 2px; }
.period-item input:checked + span {
  border-color: var(--seb-red); background: var(--seb-red-tint);
  color: var(--seb-red-dark); font-weight: 700;
}
.period-item input:checked + span::before { content: "✓ "; }

.optional { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ui-line); }
.optional summary {
  cursor: pointer; font-size: 14.5px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.optional summary::-webkit-details-marker { display: none; }
.optional summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ui-muted); border-bottom: 2px solid var(--ui-muted);
  transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
.optional[open] summary::before { transform: rotate(45deg); }
.tag {
  font-size: 11.5px; font-weight: 600; color: var(--ui-muted); background: var(--ui-bg);
  border: 1px solid var(--ui-line); padding: 1px 8px; border-radius: 999px;
}
.optionalText { margin: 12px 0 14px; font-size: 13.5px; color: var(--ui-muted); max-width: 70ch; }
.inlineSummary { margin-left: 12px; font-size: 13.5px; color: var(--ui-green); font-weight: 600; }

/* ---- boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-primary { background: var(--seb-red-btn); color: #fff; box-shadow: 0 4px 14px rgba(200,55,42,.28); }
.btn-primary:not(:disabled):hover { background: #B02D21; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200,55,42,.36); }
.btn-primary:not(:disabled):active { transform: translateY(0); }
.btn-primary:disabled { background: #E9CCC7; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ui-ink); border-color: var(--ui-line-strong); }
.btn-secondary:not(:disabled):hover { border-color: var(--ui-ink); transform: translateY(-1px); }
.btn-secondary:disabled { color: #A89F9A; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--seb-red-dark); border-color: var(--ui-line-strong); padding: 9px 18px; font-size: 13.5px; flex: 0 0 auto; }
.btn-ghost:hover { border-color: var(--seb-red); background: var(--seb-red-tint); }
.btn.loading { pointer-events: none; }
.btn.loading svg { display: none; }
.btn.loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite;
}

.actionRow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 26px; }
.actionHint { font-size: 13.5px; color: var(--ui-muted); }

/* ---- apercu ---- */
.previewToolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; }
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: #F0EDEA; border-radius: 999px; }
.segLabel { padding: 0 10px 0 12px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ui-muted); }
.segBtn {
  border: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--ui-muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.segBtn:hover { color: var(--ui-ink); }
.segBtn.active { background: #fff; color: var(--seb-red-dark); box-shadow: var(--shadow-sm); }

.searchBox { position: relative; display: block; }
.searchBox svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ui-muted); pointer-events: none; }
.searchBox input {
  width: min(320px, 100%); padding: 10px 16px 10px 38px; font: inherit; font-size: 14px;
  border: 1.5px solid var(--ui-line-strong); border-radius: 999px; background: #fff; color: var(--ui-ink);
}
.searchBox input:focus { outline: none; border-color: var(--seb-red); box-shadow: 0 0 0 4px rgba(210,64,47,.15); }

.note {
  font-size: 13.5px; color: var(--ui-muted); background: #FAF8F7; border: 1px solid var(--ui-line);
  border-left: 4px solid var(--seb-red); border-radius: 8px; padding: 10px 14px; margin: 14px 0 0;
}

.thumbGrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-top: 22px;
}
.thumbCard {
  cursor: pointer; background: #fff; border: 1px solid var(--ui-line); border-radius: 14px; padding: 10px 10px 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.thumbCard:hover, .thumbCard:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #F0B9B0; }
.thumbCaption {
  margin-top: 10px; padding: 0 2px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ui-ink); min-width: 0;
}
.thumbRef {
  flex: 0 0 auto; font-family: Consolas, "Courier New", monospace; font-size: 12px; font-weight: 700;
  color: var(--seb-red-dark); background: var(--seb-red-tint); padding: 2px 8px; border-radius: 6px;
}
.thumbName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emptyState { grid-column: 1 / -1; text-align: center; color: var(--ui-muted); padding: 34px; font-size: 15px; }

.exportBar {
  position: sticky; bottom: 16px; z-index: 10; margin-top: 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.94); border: 1px solid var(--ui-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.exportBtns { display: flex; flex-wrap: wrap; gap: 10px; }
.exportStatus { flex: 1; min-width: 220px; font-size: 13.5px; color: var(--ui-muted); }
.exportStatus.ok { color: var(--ui-green); font-weight: 600; }
.exportStatus.err { color: #A3222F; font-weight: 600; }

/* ---- pied de page ---- */
.siteFooter {
  max-width: 1180px; margin: 0 auto; padding: 22px 24px 40px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-top: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-muted);
}
.siteFooter img { height: 22px; width: auto; opacity: .85; }

@media (max-width: 900px) {
  .controlsRow { grid-template-columns: 1fr; gap: 24px; }
  .brandStrip { display: none; }
}
@media (max-width: 640px) {
  .topbarInner { padding: 12px 16px; }
  .sebMark { height: 48px; }
  .brandText h1 { font-size: 20px; }
  .stepper ol { padding: 8px 16px; }
  .step:not(.current) .stepLabel { display: none; }
  .step + .step::before { margin: 0 8px; width: 20px; }
  .wrap { padding: 18px 14px 40px; }
  .panel { padding: 20px 18px 22px; }
  .fileCard .btn-ghost { width: 100%; margin-left: 0; }
  .exportBar { bottom: 8px; }
  .exportBtns, .exportBtns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---- rendu de la slide (Template PPT plan d'activite, 13.333 x 7.5 po) ----
   Les tailles de police sont posees en ligne (cqw) a partir des pt du gabarit. */
.slide {
  position: relative;
  width: 100%;
  aspect-ratio: 13.333 / 7.5;
  background: #FFFFFF;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  color: #1C1C1C;
}
.abs { position: absolute; }
.slide .t { margin: 0; font-weight: 700; line-height: 1.15; overflow: hidden; }
.slide .img { display: flex; align-items: center; justify-content: center; }
.slide .img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* en-tete */
.headerLine { background: #1C1C1C; }
.brandLogo { justify-content: flex-start; }
.brandLogo img { object-position: left center; }
.slide .brandText, .productLine, .groupeSeb, .title, .activation { display: flex; align-items: center; white-space: nowrap; }
.slide .brandText { color: #1C1C1C; letter-spacing: 0.1cqw; }
.productLine { justify-content: center; color: #1C1C1C; letter-spacing: 0.104cqw; }
.groupeSeb { justify-content: flex-end; color: #1C1C1C; letter-spacing: 0.104cqw; }
.title { color: #1C1C1C; }
.activation { letter-spacing: 0.156cqw; justify-content: flex-end; }

/* photo */
.photoFrame {
  background: #FFFFFF; border: 0.05cqw solid #E1E1DC; border-radius: 1.03cqw;
  display: flex; align-items: center; justify-content: center;
}
.photoImg { max-width: 92%; max-height: 92%; object-fit: contain; }
.photoFallback {
  display: none; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: var(--gray3); font-size: 1.1cqw;
}

/* bloc prix */
.pricePanel { border-radius: 0.69cqw; color: #FFFFFF; }
.pricePanel .t { color: #FFFFFF; display: flex; align-items: center; white-space: nowrap; }
.pricePanel .pLabel { letter-spacing: 0.1cqw; opacity: 0.92; align-items: flex-end; }
.pricePanel .pValue.strike { text-decoration: line-through; text-decoration-thickness: 0.13cqw; opacity: 0.95; }
.pricePanel .pFinal { line-height: 1; }
.pricePanel .pDivider { background: rgba(255, 255, 255, 0.45); }
.pricePanel .pBadge {
  background: #FFFFFF; border-radius: 0.71cqw;
  align-items: center; justify-content: center; gap: 0.5cqw;
}
.pricePanel .pBadge .pctNum { font-weight: 800; }
.pricePanel .pBadge .pctLbl { font-weight: 700; }

/* arguments */
.uspLine { height: 0; }
.uspBadge {
  display: flex; align-items: center; justify-content: center; color: #FFFFFF; border-radius: 0.4cqw;
}
.uspTitle { color: #1C1C1C; white-space: nowrap; text-overflow: ellipsis; }
.uspDesc { color: #3B3B38; font-weight: 400; line-height: 1.17; }

/* pied */
.footerBox { background: #FFFFFF; border: 0.05cqw solid #E1E1DC; border-radius: 0.59cqw; }
.footerDiv { background: #E1E1DC; }
.footerLabel, .footerValue { display: flex; align-items: center; white-space: nowrap; }
.footerValue { color: #1C1C1C; }
.footNote { display: flex; align-items: center; color: var(--gray3); font-weight: 400; }
.pageNumber { display: flex; align-items: center; justify-content: flex-end; }

/* bandeau gauche (page de garde, sommaire, separateurs) */
.railSlide { background: #FFFFFF; }
.dividerArea { z-index: 0; }
.railSeb img, .railLogo img { object-fit: contain; }
.coverTitle, .summaryTitle { display: flex; align-items: center; color: #1C1C1C; white-space: nowrap; }
.coverSubtitle { display: flex; align-items: center; white-space: nowrap; }
.dividerLabel {
  display: flex; align-items: center; justify-content: flex-start; color: #FFFFFF;
  line-height: 1.04; white-space: nowrap; overflow: visible;
}
.sumRow { display: flex; align-items: center; gap: 0.8cqw; color: #1C1C1C; font-weight: 700; }
.sumRow .sumLabel { white-space: nowrap; }
.sumRow .sumDots { flex: 1; border-bottom: 0.22cqw dotted #1C1C1C; transform: translateY(25%); min-width: 2cqw; }
.sumRow .sumPage { white-space: nowrap; }


/* ---- modale grand apercu ---- */
.modal {
  position: fixed; inset: 0; background: rgba(28,24,22,.8);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 30px;
}
.modal.hidden { display: none; }
.modalInner { width: min(1400px, 100%); }
.modalSlideHolder { width: 100%; box-shadow: 0 24px 70px rgba(0,0,0,.5); border-radius: 4px; overflow: hidden; }
.modalBar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  color: #fff; margin-top: 14px; font-size: 14px;
}
.modalBar .navBtns { display: flex; gap: 8px; }
.modalBar .navBtns button {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
  transition: background .15s;
}
.modalBar .navBtns button:hover { background: rgba(255,255,255,.28); }
.modalBar .navBtns #previewModalClose { background: #fff; color: var(--ui-ink); border-color: #fff; }
.modalBar .navBtns #previewModalClose:hover { background: #F0EDEA; }


/* ---- export PDF via impression navigateur ---- */
#printArea { display: none; }
.printPage { width: 100%; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  .modal { display: none !important; }
  #printArea { display: block !important; }
  .printPage { page-break-after: always; width: 100%; }
  .printPage:last-child { page-break-after: auto; }
  .printPage .slide { border: none; border-radius: 0; }
  @page { size: 338.667mm 190.5mm; margin: 0; }
}
/* ---- case client (interface) ---- */
.clientPanel {
  margin: 4px 0 16px; padding: 14px 18px; border: 1px solid var(--ui-line); border-radius: 12px; background: #FAF8F7;
}
.switchRow { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ui-ink); cursor: pointer; }
.switchRow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switchTrack {
  flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: var(--ui-line-strong);
  position: relative; transition: background .15s;
}
.switchTrack::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s;
}
.switchRow input:checked + .switchTrack { background: var(--seb-red-btn); }
.switchRow input:checked + .switchTrack::after { transform: translateX(16px); }
.switchRow input:focus-visible + .switchTrack { outline: 3px solid rgba(210,64,47,.5); outline-offset: 2px; }
.clientPaste { margin-top: 12px; padding-top: 12px; }
.clientPaste textarea {
  width: 100%; font: 13px/1.5 Consolas, "Courier New", monospace; padding: 10px 12px; resize: vertical;
  border: 1.5px solid var(--ui-line-strong); border-radius: 10px; background: #fff; color: var(--ui-ink);
}
.clientPaste textarea:focus { outline: none; border-color: var(--seb-red); box-shadow: 0 0 0 4px rgba(210,64,47,.15); }
.clientPasteBar { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.clientPasteBar .inlineSummary { margin-left: 0; }

/* ---- case client (slide) ---- */
.clientBox { border: 0.05cqw solid #E1E1DC; border-radius: 0.6cqw; }
.clientDiv { background: #E1E1DC; }
.clientLabel { display: flex; align-items: center; letter-spacing: 0.08cqw; white-space: nowrap; }
.clientValue { display: flex; align-items: center; color: #1C1C1C; white-space: nowrap; }
.clientValue.empty { color: #A9A5A0; font-weight: 400; font-style: italic; }
