:root {
  --navy: #101828;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --background: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e7ec;
  --text: #1d2939;
  --muted: #667085;
  --green: #15803d;
  --red: #b42318;
  --red-soft: #fef3f2;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 18px;
  color: white;
  background: var(--navy);
}

.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 850;
  text-decoration: none;
}

.brand {
  margin: 0 8px 28px;
}

.brand span,
.auth-brand span {
  color: #60a5fa;
}

.brand-camera { font-size: 25px; }

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  padding: 11px 13px;
  color: #cbd5e1;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: white;
  background: rgba(255,255,255,.1);
}

.sidebar nav a.disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
}

.sidebar-footer span {
  color: #94a3b8;
  font-size: 12px;
}

.main {
  min-width: 0;
  padding: 30px;
}

.topbar,
.panel-heading,
.user-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-menu {
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.user-menu form { margin: 0; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 28px 0 20px;
  padding: 28px;
  overflow: hidden;
  border-radius: 16px;
  color: white;
  background: linear-gradient(125deg, #172554, #2563eb);
}

.hero h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: #dbeafe;
  line-height: 1.55;
}

.hero-icon { font-size: 72px; }

.badge,
.count-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.danger {
  color: var(--red);
  background: var(--red-soft);
}

.count-badge,
.status-badge {
  color: #344054;
  background: #f2f4f7;
  text-transform: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.metrics a,
.metrics article,
.panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.metrics a,
.metrics article {
  display: grid;
  gap: 5px;
  padding: 18px;
  text-decoration: none;
}

.metrics a:hover {
  border-color: #bfdbfe;
  background: #fafdff;
}

.metrics span,
.metrics small {
  color: var(--muted);
  font-size: 12px;
}

.metrics strong {
  font-size: 28px;
}

.metrics strong.online {
  color: var(--green);
  font-size: 21px;
}

.panel {
  margin: 20px 0;
  padding: 22px;
}

.create-panel {
  margin-top: 28px;
}

.landscape-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}

.project-form {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.class-form {
  grid-template-columns: minmax(280px, 2fr) minmax(220px, 1fr) auto;
}

.stack-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  color: var(--text);
  background: white;
  font-size: 15px;
}

input:focus,
select:focus {
  outline: 3px solid #dbeafe;
  border-color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.button:hover { background: var(--blue-dark); }

.button.secondary {
  color: #344054;
  border-color: var(--border);
  background: white;
}

.button.secondary:hover {
  background: #f8fafc;
}

.button.danger {
  color: var(--red);
  border-color: #fecdca;
  background: white;
}

.button.danger:hover {
  background: var(--red-soft);
}

.button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.notice,
.form-error,
.empty-callout {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #1e40af;
}

.form-error {
  background: var(--red-soft);
  color: var(--red);
}

.empty-callout {
  margin-bottom: 0;
  color: #475467;
  background: #f2f4f7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

td small {
  color: var(--muted);
  line-height: 1.4;
}

.empty-cell {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 32%),
    var(--background);
}

.auth-shell {
  width: min(100%, 470px);
}

.auth-brand {
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.auth-card h1 {
  margin: 14px 0 8px;
  font-size: 27px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-card pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--red);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .landscape-form,
  .project-form {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .class-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar { min-height: auto; }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-footer { display: none; }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .main { padding: 18px; }

  .topbar,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-menu {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero { padding: 22px; }

  .hero-icon { display: none; }

  .metrics { grid-template-columns: 1fr 1fr; }

  .landscape-form,
  .project-form,
  .class-form {
    grid-template-columns: 1fr;
  }
}


textarea {
  width: 100%;
  min-height: 92px;
  padding: 9px 11px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  color: var(--text);
  background: white;
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

textarea:focus {
  outline: 3px solid #dbeafe;
  border-color: var(--blue);
}

.catalog-tabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  border-bottom: 1px solid var(--border);
}

.catalog-tabs a {
  padding: 11px 16px;
  border-radius: 9px 9px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.catalog-tabs a.active {
  color: var(--blue);
  background: white;
  border: 1px solid var(--border);
  border-bottom-color: white;
  margin-bottom: -1px;
}

.catalog-create-form {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.pack-create-form {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.catalog-create-form label small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.checkbox-label {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 9px;
  min-height: 43px;
}

.checkbox-label input,
.catalog-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.catalog-project-selector {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.catalog-project-selector label {
  width: min(100%, 520px);
}

.catalog-table {
  min-width: 1050px;
}

.catalog-table td:nth-child(1),
.catalog-table th:nth-child(1) {
  width: 74px;
  text-align: center;
}

.catalog-table td:nth-child(2),
.catalog-table th:nth-child(2) {
  width: 105px;
}

.catalog-table td:last-child {
  width: 100px;
}

.catalog-table td > strong,
.catalog-table td > small {
  display: block;
}

.catalog-table .money-input {
  width: 110px;
  min-height: 38px;
  padding: 7px 9px;
}

.catalog-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 62px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  text-align: center;
}

.catalog-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.mini-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-badge.pack {
  color: #b54708;
  background: #fff4e8;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 0;
}

@media (max-width: 1200px) {
  .catalog-create-form,
  .pack-create-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 650px) {
  .catalog-create-form,
  .pack-create-form {
    grid-template-columns: 1fr;
  }

  .catalog-project-selector {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}


.photo-context-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.photo-context-bar form { width: min(100%, 650px); }
.photo-context-bar label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.context-name { display: grid; gap: 4px; text-align: right; }
.context-name span { color: var(--muted); font-size: 13px; }
.photo-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-tools-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; }
.photo-tools-grid .panel { margin-top: 0; }
.inline-create-form { display: flex; align-items: end; gap: 12px; }
.inline-create-form label { width: 150px; }
.photo-import-form { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(250px,1.3fr) auto; align-items: end; gap: 12px; }
.helper-text { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.panel-actions form { margin: 0; }

.upload-progress {
  position: relative;
  height: 38px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
}
.upload-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: #bfdbfe; transition: width .2s ease; }
.upload-progress strong { position: relative; display: grid; place-items: center; height: 100%; padding: 0 12px; color: #1e3a8a; font-size: 12px; }
.upload-progress.error { border-color: #fecaca; background: #fef2f2; }
.upload-progress.error span { background: #fecaca; }
.upload-progress.error strong { color: var(--red); }

.student-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.student-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: inherit;
  background: white;
  text-decoration: none;
}
.student-card:hover { border-color: #93c5fd; box-shadow: 0 6px 18px rgba(37,99,235,.08); }
.student-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.student-thumb { display: grid; place-items: center; width: 76px; height: 70px; overflow: hidden; border-radius: 8px; color: var(--muted); background: #f2f4f7; font-size: 11px; text-align: center; }
.student-thumb img { width: 100%; height: 100%; object-fit: cover; }
.student-card-copy { display: grid; align-content: center; gap: 3px; min-width: 0; }
.student-card-copy strong { font-size: 14px; }
.student-card-copy span, .student-card-copy small { color: var(--muted); font-size: 11px; }
.student-card-copy code { width: fit-content; padding: 3px 6px; border-radius: 5px; background: #f2f4f7; font-size: 11px; font-weight: 800; }
.student-status { position: absolute; top: 8px; right: 8px; padding: 3px 6px; border-radius: 999px; color: #92400e; background: #fef3c7; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.student-status.validated { color: #166534; background: #dcfce7; }

.selected-student-panel { padding: 20px 22px; }
.selected-student-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.selected-student-summary p { margin-bottom: 0; color: var(--muted); }
.selected-student-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.selected-student-actions form { margin: 0; }
.large-code { padding: 9px 12px; border: 1px dashed #93c5fd; border-radius: 8px; color: #1e3a8a; background: #eff6ff; font-size: 17px; font-weight: 900; letter-spacing: .04em; }

.photo-bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.photo-bank-card { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: white; }
.photo-bank-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.photo-bank-image { display: grid; place-items: center; height: 190px; padding: 7px; background: #f2f4f7; }
.photo-bank-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-bank-copy { display: grid; gap: 7px; padding: 12px; }
.photo-bank-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.photo-bank-copy small { color: var(--muted); font-size: 11px; }
.photo-bank-copy form { margin: 0; }
.photo-assignment { display: block; padding: 8px; border-radius: 7px; color: var(--muted); background: #f2f4f7; font-size: 11px; line-height: 1.35; }
.photo-assignment.auto { color: #166534; background: #ecfdf3; }
.photo-assignment.occupied { color: #92400e; background: #fffbeb; }

.public-gallery-body { min-height: 100vh; background: #f5f7fb; }
.public-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(18px,5vw,72px); color: white; background: var(--navy); }
.public-gallery-header > div { display: grid; gap: 3px; text-align: right; }
.public-gallery-header span { color: #cbd5e1; font-size: 12px; }
.public-gallery-main { width: min(1400px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 60px; }
.public-gallery-intro { margin-bottom: 24px; }
.public-gallery-intro h1 { margin: 12px 0 8px; }
.public-gallery-intro p { max-width: 760px; color: var(--muted); line-height: 1.55; }
.public-photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; }
.public-photo-card { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 8px 25px rgba(16,24,40,.06); }
.public-photo-card img { display: block; width: 100%; height: 330px; object-fit: contain; background: #f2f4f7; }
.public-photo-card figcaption { padding: 11px 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.gallery-login-card input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

.access-card-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.access-card-print { display: grid; grid-template-columns: 37% 63%; min-height: 360px; overflow: hidden; border: 2px solid #f59e0b; border-radius: 10px; background: white; break-inside: avoid; }
.access-card-print.validated { border-color: #22c55e; }
.access-card-photo { display: grid; place-items: center; min-width: 0; padding: 8px; background: #eef2f6; }
.access-card-photo img { width: 100%; height: 100%; max-height: 345px; object-fit: cover; border-radius: 6px; }
.access-card-content { display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.access-card-brand { font-size: 18px; font-weight: 900; }
.access-card-brand span { color: var(--blue); }
.access-card-school { margin: 8px 0 4px; color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.access-card-content h2 { margin: 0 0 7px; font-size: 21px; }
.access-card-content > p { margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.access-card-access { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.access-card-access > div { display: grid; gap: 4px; }
.access-card-access small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.access-card-access strong { font-size: 23px; letter-spacing: .05em; }
.access-card-access img { width: 86px; height: 86px; }
.access-card-url { overflow-wrap: anywhere; font-size: 9px !important; }
.access-card-content footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }

@media (max-width: 1150px) {
  .photo-tools-grid { grid-template-columns: 1fr; }
  .photo-import-form { grid-template-columns: 1fr 1fr; }
  .photo-import-form .button { grid-column: 1 / -1; }
  .access-card-sheet { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .photo-context-bar, .selected-student-summary { align-items: stretch; flex-direction: column; }
  .context-name { text-align: left; }
  .photo-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-import-form, .inline-create-form { display: grid; grid-template-columns: 1fr; }
  .inline-create-form label { width: auto; }
  .selected-student-actions { justify-content: flex-start; }
  .public-gallery-header { align-items: flex-start; flex-direction: column; }
  .public-gallery-header > div { text-align: left; }
}

@media print {
  @page { size: A4 landscape; margin: 3mm; }
  .access-cards-page { background: white; }
  .access-cards-page .sidebar,
  .access-cards-page .topbar,
  .access-cards-page .notice,
  .access-cards-page .no-print { display: none !important; }
  .access-cards-page .app-shell { display: block; min-height: 0; }
  .access-cards-page .main { padding: 0; }
  .access-card-sheet { display: grid; grid-template-columns: 145mm 145mm; grid-auto-rows: 95mm; gap: 4mm 1mm; margin: 0; }
  .access-card-print { width: 145mm; height: 95mm; min-height: 95mm; border-radius: 0; box-shadow: none; page-break-inside: avoid; }
  .access-card-photo img { max-height: 91mm; }
  .access-card-content { padding: 5mm; }
  .access-card-content h2 { font-size: 16pt; }
  .access-card-access strong { font-size: 18pt; }
  .access-card-access img { width: 24mm; height: 24mm; }
  .access-card-print:nth-child(4n) { break-after: page; }
}


/* v0.5.0 — parcours parent et commandes */
.hidden { display: none !important; }

.public-photo-card { position: relative; }
.public-photo-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(15,23,42,.82);
  font-size: 11px;
  font-weight: 850;
}

.ordering-deadline {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 8px;
  color: #92400e !important;
  background: #fffbeb;
}

.public-order-form {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.public-order-section {
  padding: clamp(20px,3vw,32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 30px rgba(16,24,40,.05);
}

.public-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.public-section-heading h2 { margin: 9px 0 0; }
.live-order-total {
  flex: 0 0 auto;
  padding: 11px 15px;
  border-radius: 10px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 14px;
}
.live-order-total strong { font-size: 18px; }

.catalog-subtitle {
  margin: 26px 0 13px;
  font-size: 17px;
}

.public-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 16px;
}

.public-product-card {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.public-product-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #dbeafe;
}
.public-product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 10px;
  color: var(--muted);
  background: #f2f4f7;
  font-size: 12px;
  text-align: center;
}
.public-product-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}
.public-product-image span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.public-product-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 17px;
}
.public-product-copy h3 { margin: 0; font-size: 18px; }
.public-product-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.public-product-price { color: var(--blue); font-size: 20px; }
.public-product-fields {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 10px;
  margin-top: 6px;
}
.public-product-fields label,
.pack-photo-slots label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 11px;
  font-weight: 750;
}
.public-product-fields input,
.public-product-fields select,
.pack-photo-slots select {
  min-height: 39px;
  padding: 7px 9px;
}

.pack-rule {
  padding: 7px 9px;
  border-radius: 7px;
  color: #92400e !important;
  background: #fffbeb;
}
.public-pack-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.public-pack-toggle input { width: 18px; min-height: 18px; height: 18px; margin: 0; }
.pack-photo-slots {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.pack-photo-slots select:disabled { opacity: .55; cursor: not-allowed; }

.parent-details-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.parent-details-grid label,
.public-order-section > label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.payment-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.payment-choice:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #dbeafe;
}
.payment-choice input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; }
.payment-choice span { display: grid; gap: 4px; }
.payment-choice small { color: var(--muted); font-weight: 500; line-height: 1.35; }

.school-payment-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: #eff6ff;
}
.school-payment-note p { margin: 4px 0 0; color: #475467; line-height: 1.45; }

.terms-choice {
  display: flex !important;
  align-items: flex-start;
  grid-template-columns: none !important;
  gap: 10px !important;
  margin-top: 17px;
  font-weight: 600 !important;
}
.terms-choice input { width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; }
.public-order-submit { width: 100%; margin-top: 18px; min-height: 48px; font-size: 16px; }
.order-unavailable { margin-top: 34px; }

.public-confirmation-main {
  width: min(1150px,calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}
.confirmation-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.confirmation-check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: white;
  background: #16a34a;
  font-size: 32px;
  font-weight: 900;
}
.confirmation-hero h1 { margin: 8px 0 5px; }
.confirmation-hero p { margin: 0; color: var(--muted); }
.confirmation-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
}
.confirmation-summary,
.payment-instructions { margin-top: 0; }
.confirmation-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 9px;
  background: #f8fafc;
}
.confirmation-total strong { color: var(--blue); font-size: 22px; }
.payment-link-button { width: 100%; margin: 8px 0 10px; }
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Administration des commandes */
.orders-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 18px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}
.orders-toolbar form { width: min(100%,650px); }
.orders-toolbar label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.order-metrics { margin-top: 0; }

.payment-settings-form {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 15px;
}
.payment-settings-form > label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}
.payment-settings-form > label:last-of-type,
.payment-settings-form > button {
  grid-column: 1 / -1;
}
.settings-method {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
}
.settings-method > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.settings-method input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin: 0; }
.settings-method small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.compact-panel { padding: 17px 20px; }
.compact-panel p { margin: 0; color: var(--muted); }

.orders-table { min-width: 1250px; }
.table-link { color: var(--blue); text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.status-badge.order-new { color: #92400e; background: #fef3c7; }
.status-badge.order-confirmed { color: #1e40af; background: #dbeafe; }
.status-badge.order-in_production { color: #6b21a8; background: #f3e8ff; }
.status-badge.order-ready { color: #075985; background: #e0f2fe; }
.status-badge.order-delivered,
.status-badge.payment-paid,
.status-badge.payment-cheque_received,
.status-badge.payment-cash_received { color: #166534; background: #dcfce7; }
.status-badge.order-cancelled,
.status-badge.payment-cancelled { color: #991b1b; background: #fee2e2; }
.status-badge.payment-awaiting { color: #92400e; background: #fef3c7; }

.order-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 18px;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.order-detail-grid .panel { margin-top: 0; }
.order-data-list { display: grid; gap: 0; margin: 18px 0 0; }
.order-data-list > div {
  display: grid;
  grid-template-columns: 135px minmax(0,1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.order-data-list dt { color: var(--muted); font-size: 12px; }
.order-data-list dd { margin: 0; font-weight: 650; }
.customer-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffbeb;
}
.customer-note p { margin: 5px 0 0; color: #475467; white-space: pre-wrap; }
.order-status-form { display: grid; gap: 12px; margin-top: 15px; }
.order-status-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }

.order-detail-items { display: grid; gap: 12px; }
.order-detail-item {
  display: grid;
  grid-template-columns: minmax(220px,.8fr) minmax(300px,1.2fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.order-detail-item h3 { margin: 7px 0 3px; }
.order-detail-item p { margin: 0; color: var(--muted); font-size: 12px; }
.order-detail-item > strong { color: var(--blue); font-size: 18px; }
.order-item-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.order-photo-thumb {
  width: 78px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f2f4f7;
}
.order-photo-thumb img { display: block; width: 78px; height: 65px; object-fit: contain; }
.order-photo-thumb figcaption { padding: 4px; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 1000px) {
  .confirmation-grid,
  .order-detail-grid { grid-template-columns: 1fr; }
  .payment-choice-grid,
  .payment-settings-form { grid-template-columns: 1fr; }
  .payment-settings-form > label:last-of-type,
  .payment-settings-form > button { grid-column: auto; }
}

@media (max-width: 720px) {
  .public-section-heading,
  .confirmation-hero,
  .order-detail-heading { align-items: stretch; flex-direction: column; }
  .public-product-card { grid-template-columns: 1fr; }
  .public-product-image { min-height: 180px; }
  .parent-details-grid,
  .public-product-fields,
  .pack-photo-slots { grid-template-columns: 1fr; }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .button { width: 100%; }
  .order-detail-item { grid-template-columns: 1fr; }
  .order-data-list > div { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
  .public-confirmation-main .confirmation-actions,
  .public-gallery-header { display: none !important; }
  .public-confirmation-main { width: 100%; padding: 0; }
  .confirmation-grid { display: block; }
  .confirmation-grid .panel { box-shadow: none; break-inside: avoid; }
}


/* v0.5.2 — édition/suppression et paiements par école */
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.row-actions form { margin: 0; }

.edit-page-heading {
  display: flex;
  justify-content: flex-start;
  margin: 28px 0 18px;
}

.school-form {
  grid-template-columns: repeat(4,minmax(190px,1fr));
}

.school-payment-fieldset {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.school-payment-fieldset legend {
  padding: 0 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}
.school-payment-fieldset label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  min-width: auto;
  font-weight: 750;
}
.school-payment-fieldset input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.school-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.payment-school-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.payment-school-badge.disabled {
  color: #667085;
  background: #eaecf0;
}

.school-method-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0 18px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f8fafc;
}
.school-method-summary a {
  margin-left: auto;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.schools-table { min-width: 1050px; }

@media (max-width: 1050px) {
  .school-form { grid-template-columns: repeat(2,minmax(220px,1fr)); }
}

@media (max-width: 650px) {
  .school-form { grid-template-columns: 1fr; }
  .school-payment-fieldset {
    align-items: stretch;
    flex-direction: column;
  }
  .school-method-summary a {
    width: 100%;
    margin-left: 0;
  }
}


/* v0.5.3 — catalogue en haut, articles sous les photos, noms JPEG */
.payment-school-badge.warning {
  color: #92400e;
  background: #fef3c7;
}

.school-card-link-field {
  grid-column: 1 / -1;
}
.school-card-link-field small {
  color: var(--muted);
  font-weight: 500;
}
.school-card-link-preview {
  margin-left: 2px !important;
}

.pack-duplicate-note {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  color: #9a3412;
  background: #fff7ed;
}
.pack-duplicate-note small {
  color: #9a3412;
  font-weight: 500;
}

.public-offered-section {
  margin: 28px 0;
  padding: clamp(20px,3vw,30px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16,24,40,.05);
}

.offered-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 14px;
}

.offered-product-card {
  display: grid;
  grid-template-columns: 105px minmax(0,1fr);
  min-height: 155px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.offered-product-image {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  background: #f2f4f7;
  font-size: 11px;
}
.offered-product-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.offered-product-image span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.offered-product-card > div:last-child {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px;
}
.offered-product-card h3 { margin: 0; font-size: 16px; }
.offered-product-card p,
.offered-product-card small { margin: 0; color: var(--muted); line-height: 1.4; }
.offered-product-card > div:last-child > strong {
  margin-top: auto;
  color: var(--blue);
  font-size: 18px;
}

.public-photo-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(315px,1fr));
  gap: 18px;
}

.public-photo-order-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(16,24,40,.05);
}

.public-photo-order-card .public-photo-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.public-photo-order-card .public-photo-card img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  background: #f2f4f7;
}
.public-photo-order-card .public-photo-number {
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.photo-article-panel {
  padding: 15px;
  border-top: 1px solid var(--border);
}
.photo-article-panel h3 {
  margin: 0 0 11px;
  font-size: 14px;
}
.photo-article-list {
  display: grid;
  gap: 8px;
}
.photo-article-choice {
  display: grid;
  grid-template-columns: minmax(0,1fr) 68px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}
.photo-article-choice > span {
  display: grid;
  gap: 2px;
}
.photo-article-choice strong {
  color: #344054;
  font-size: 12px;
}
.photo-article-choice small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.photo-article-choice input {
  width: 68px;
  min-height: 38px;
  padding: 7px;
  text-align: center;
}

.settings-method {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
}
.settings-method > span {
  font-weight: 800;
}
.settings-method > small {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .offered-product-card {
    grid-template-columns: 90px minmax(0,1fr);
  }
  .public-photo-order-grid {
    grid-template-columns: 1fr;
  }
  .public-photo-order-card .public-photo-card img {
    height: auto;
    max-height: 70vh;
  }
}


/* v0.5.4 — validation de sélection, panier et coordonnées après validation */
.order-step-help {
  margin: -6px 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.photo-article-choice {
  grid-template-columns: minmax(0,1fr) 82px auto;
}
.photo-article-choice.selected {
  border-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 0 0 2px #dbeafe;
}
.article-quantity-field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.article-quantity-field input {
  width: 72px;
  min-height: 36px;
  padding: 6px;
  text-align: center;
}
.article-cart-button {
  min-width: 132px;
  white-space: nowrap;
}

.selection-validation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.selection-validation-button {
  min-height: 48px;
  padding-inline: 22px;
}

.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.public-cart-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.public-cart-table th,
.public-cart-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.public-cart-table th {
  color: #475467;
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
}
.public-cart-table tbody tr:last-child td {
  border-bottom: 0;
}
.public-cart-table code {
  color: #344054;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  color: #1e3a8a;
  background: #eff6ff;
  font-weight: 800;
}
.cart-total-line strong {
  font-size: 24px;
}

.cart-actions,
.final-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.final-order-actions .public-order-submit {
  width: auto;
  margin-top: 0;
}

@media (max-width: 780px) {
  .photo-article-choice {
    grid-template-columns: 1fr 76px;
  }
  .article-cart-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .selection-validation-actions,
  .cart-actions,
  .final-order-actions {
    flex-direction: column;
  }
  .selection-validation-actions .button,
  .cart-actions .button,
  .final-order-actions .button {
    width: 100%;
  }
}


/* v0.5.5 — galerie parent inspirée du modèle fourni */
.lumys-gallery-body {
  overflow-x: hidden;
  background: #f5f6f8;
}

.lumys-public-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 68px;
  box-shadow: 0 3px 14px rgba(16,24,40,.08);
}

.lumys-gallery-main {
  width: 100%;
  min-height: calc(100vh - 68px);
}

.lumys-order-form {
  min-height: calc(100vh - 68px);
}

.lumys-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(390px, .85fr);
  min-height: calc(100vh - 68px);
}

.lumys-photo-column {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  min-width: 0;
  padding: 20px;
  background: #eceff3;
}

.lumys-thumbnail-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 108px);
  padding-right: 12px;
  overflow-y: auto;
}

.lumys-thumbnail {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 9px;
  color: #475467;
  background: white;
  cursor: pointer;
  text-align: left;
}

.lumys-thumbnail:hover {
  border-color: #bfdbfe;
}

.lumys-thumbnail.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #dbeafe;
}

.lumys-thumbnail img {
  display: block;
  width: 100%;
  height: 94px;
  object-fit: contain;
  border-radius: 5px;
  background: #f2f4f7;
}

.lumys-thumbnail span {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-main-viewer {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: calc(100vh - 108px);
  padding: 54px 28px 60px;
  border-radius: 12px;
  background: #dfe3e8;
}

.lumys-main-viewer > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 230px);
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 14px 38px rgba(16,24,40,.18);
}

.lumys-main-viewer > p {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  margin: 0;
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.lumys-selected-photo-label {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 36px);
}

.lumys-selected-photo-label span {
  overflow: hidden;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-selected-photo-label small {
  color: #667085;
}

.lumys-products-column {
  position: sticky;
  top: 68px;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  height: calc(100vh - 68px);
  min-width: 0;
  border-left: 1px solid #d0d5dd;
  background: white;
}

.lumys-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.lumys-products-heading h2 {
  max-width: 270px;
  margin: 7px 0 0;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-inline-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: #111827;
  cursor: pointer;
  font-weight: 800;
}

.lumys-inline-cart strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #111827;
  background: white;
  font-size: 11px;
}

.lumys-products-scroll {
  min-height: 0;
  padding: 4px 18px 110px;
  overflow-y: auto;
}

.lumys-section-title {
  margin: 17px 0 10px;
  color: #344054;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lumys-product-list {
  display: grid;
  gap: 10px;
}

.lumys-product-row,
.lumys-pack-row {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) 132px;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lumys-product-row.selected,
.lumys-pack-row.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #dbeafe;
}

.lumys-product-picture {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 7px;
  color: #98a2b3;
  background: #f2f4f7;
  font-size: 10px;
}

.lumys-product-picture img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lumys-product-picture span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.lumys-product-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.lumys-product-copy h3 {
  margin: 0;
  color: #101828;
  font-size: 14px;
}

.lumys-product-copy p,
.lumys-product-copy small {
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.lumys-product-order {
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 7px;
}

.lumys-product-order > strong {
  color: var(--blue);
  font-size: 17px;
  text-align: right;
}

.lumys-stepper {
  display: grid;
  grid-template-columns: 31px 1fr 31px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
}

.lumys-stepper button {
  display: grid;
  place-items: center;
  min-height: 31px;
  border: 0;
  color: #344054;
  background: #f8fafc;
  cursor: pointer;
  font-size: 18px;
}

.lumys-stepper output {
  display: grid;
  place-items: center;
  min-height: 31px;
  font-weight: 800;
}

.lumys-add-button {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.lumys-product-row.selected .lumys-add-button,
.lumys-pack-row.selected .lumys-add-button {
  color: #1e3a8a;
  background: #dbeafe;
}

.lumys-pack-section {
  margin-top: 20px;
}

.lumys-pack-selectors {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 8px;
}

.lumys-pack-selectors label {
  display: grid;
  gap: 3px;
  color: #667085;
  font-size: 9px;
  font-weight: 750;
}

.lumys-pack-selectors select {
  min-height: 33px;
  padding: 5px 6px;
  font-size: 10px;
}

.lumys-floating-cart {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #111827;
  box-shadow: 0 12px 35px rgba(17,24,39,.3);
  cursor: pointer;
}

.lumys-cart-icon {
  font-size: 22px;
}

.lumys-floating-cart-copy {
  display: grid;
  flex: 1;
  gap: 1px;
  text-align: left;
}

.lumys-floating-cart-copy small {
  color: #d1d5db;
  font-size: 10px;
}

.lumys-floating-cart-copy strong {
  font-size: 15px;
}

.lumys-cart-badge {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #111827;
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.lumys-cart-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  background: rgba(15,23,42,.46);
  backdrop-filter: blur(2px);
}

.lumys-cart-drawer {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  width: min(430px,100%);
  height: 100vh;
  background: white;
  box-shadow: -18px 0 55px rgba(15,23,42,.22);
}

.lumys-cart-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.lumys-cart-drawer h2 {
  margin: 6px 0 0;
}

.lumys-cart-drawer > header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #344054;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 24px;
}

.lumys-cart-content {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.lumys-empty-cart {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 280px;
  color: #667085;
  text-align: center;
}

.lumys-empty-cart > span {
  font-size: 42px;
}

.lumys-empty-cart p {
  max-width: 250px;
  margin: 0;
}

.lumys-cart-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}

.lumys-cart-line > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lumys-cart-line span {
  overflow: hidden;
  color: #667085;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-cart-line small {
  color: #667085;
}

.lumys-cart-drawer > footer {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.lumys-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lumys-cart-total strong {
  color: var(--blue);
  font-size: 24px;
}

.cart-drawer-open {
  overflow: hidden;
}

.lumys-checkout {
  width: min(1250px,calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.lumys-checkout-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.lumys-checkout-heading h1 {
  margin: 7px 0 0;
}

.lumys-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr);
  gap: 18px;
  align-items: start;
}

.lumys-checkout-grid > .panel {
  margin-top: 0;
}

.lumys-checkout-forms {
  display: grid;
  gap: 18px;
}

.lumys-checkout-forms .panel {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .lumys-workspace {
    grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr);
  }

  .lumys-photo-column {
    grid-template-columns: 88px minmax(0,1fr);
    padding: 14px;
  }

  .lumys-thumbnail img {
    height: 75px;
  }

  .lumys-product-row,
  .lumys-pack-row {
    grid-template-columns: 64px minmax(0,1fr);
  }

  .lumys-product-picture {
    width: 64px;
    height: 64px;
  }

  .lumys-product-order {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(110px,150px) minmax(110px,1fr);
    align-items: center;
  }

  .lumys-product-order > strong {
    text-align: left;
  }
}

@media (max-width: 850px) {
  .lumys-workspace {
    display: block;
  }

  .lumys-photo-column {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .lumys-thumbnail-rail {
    flex-direction: row;
    max-height: none;
    padding: 0 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .lumys-thumbnail {
    flex: 0 0 92px;
  }

  .lumys-thumbnail img {
    height: 72px;
  }

  .lumys-main-viewer {
    min-height: 58vh;
    padding: 48px 14px 54px;
  }

  .lumys-main-viewer > img {
    max-height: 50vh;
  }

  .lumys-products-column {
    position: relative;
    top: auto;
    height: auto;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .lumys-products-scroll {
    max-height: none;
    overflow: visible;
  }

  .lumys-floating-cart {
    right: 12px;
    bottom: 12px;
    min-width: 185px;
  }

  .lumys-checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lumys-products-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-inline-cart {
    justify-content: center;
  }

  .lumys-product-row,
  .lumys-pack-row {
    grid-template-columns: 58px minmax(0,1fr);
  }

  .lumys-product-picture {
    width: 58px;
    height: 58px;
  }

  .lumys-product-order {
    grid-template-columns: 1fr 1fr;
  }

  .lumys-product-order > strong {
    grid-column: 1 / -1;
  }

  .lumys-add-button {
    min-height: 36px;
  }

  .lumys-pack-selectors {
    grid-template-columns: 1fr;
  }

  .lumys-floating-cart {
    left: 12px;
    width: calc(100% - 24px);
  }

  .lumys-checkout {
    width: min(100% - 20px,1250px);
    padding-top: 18px;
  }

  .lumys-checkout-heading {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v0.5.6 — correctif panier et bouton Ajouter */
.lumys-floating-cart {
  position: fixed !important;
  z-index: 1000 !important;
  top: 82px !important;
  right: 18px !important;
  bottom: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 225px;
  border: 2px solid rgba(255,255,255,.85);
}

.lumys-floating-cart.has-items {
  background: var(--blue);
  box-shadow: 0 14px 38px rgba(37,99,235,.36);
}

.lumys-inline-cart {
  position: relative;
  z-index: 5;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lumys-inline-cart.has-items {
  background: var(--blue);
}

.lumys-add-button {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.lumys-cart-drawer {
  z-index: 1200 !important;
}

.lumys-cart-backdrop {
  z-index: 1190 !important;
}

@media (max-width: 850px) {
  .lumys-floating-cart {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    width: auto !important;
    min-width: 205px;
  }
}

@media (max-width: 560px) {
  .lumys-floating-cart {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
  }
}


/* v0.5.7 — panier supprimable, quantités validées et catégories */
.lumys-products-heading {
  align-items: flex-start;
}

.lumys-products-heading-help {
  max-width: 210px;
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.lumys-inline-cart {
  display: none !important;
}

.lumys-floating-cart {
  top: auto !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  min-width: 220px;
}

.lumys-products-scroll {
  padding-bottom: 150px;
}

.lumys-category-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.lumys-category-title {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  color: #344054;
  background: #f2f4f7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lumys-category-group[data-category="digital"] .lumys-category-title {
  color: #1e40af;
  background: #eff6ff;
}

.lumys-category-group[data-category="prints"] .lumys-category-title {
  color: #166534;
  background: #f0fdf4;
}

.lumys-category-group[data-category="gifts"] .lumys-category-title {
  color: #9a3412;
  background: #fff7ed;
}

.lumys-category-products {
  display: grid;
  gap: 10px;
}

.lumys-product-copy [data-article-cart-status] {
  min-height: 14px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.lumys-add-button.added-feedback {
  color: white !important;
  background: #16a34a !important;
}

.lumys-cart-line-actions {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
}

.lumys-cart-delete {
  padding: 5px 8px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b42318;
  background: #fff1f2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.lumys-cart-delete:hover {
  background: #ffe4e6;
}

.category-select {
  min-width: 150px;
  min-height: 38px;
  padding: 7px 9px;
}

.catalog-table td:nth-child(4) small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

@media (max-width: 850px) {
  .lumys-products-heading-help {
    max-width: none;
    text-align: left;
  }

  .lumys-floating-cart {
    right: 12px !important;
    bottom: 12px !important;
  }
}

@media (max-width: 560px) {
  .lumys-products-heading {
    gap: 8px;
  }

  .lumys-floating-cart {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
  }
}


/* v0.5.8 — panier vide sans message */
[data-checkout-open]:disabled {
  cursor: not-allowed;
  opacity: .45;
  filter: grayscale(.2);
}


/* v0.5.9 — interfaces Écoles et Projets épurées */
.lumys-admin-page {
  background: #f2f4f5;
}

.lumys-admin-page .main {
  min-width: 0;
}

.lumys-admin-page .topbar {
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255,255,255,.96);
}

.lumys-admin-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 18px;
  padding: 26px 28px;
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,255,255,.17), transparent 30%),
    linear-gradient(135deg,#34b879,#22a867);
  box-shadow: 0 12px 30px rgba(34,168,103,.18);
}

.lumys-admin-hero h2 {
  margin: 5px 0 7px;
  font-size: clamp(23px,2.5vw,34px);
}

.lumys-admin-hero p {
  max-width: 670px;
  margin: 0;
  color: rgba(255,255,255,.84);
}

.lumys-admin-hero .eyebrow {
  color: rgba(255,255,255,.72);
}

.lumys-add-details {
  flex: 0 0 auto;
}

.lumys-add-details[open] {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(15,23,42,.54);
  backdrop-filter: blur(4px);
}

.lumys-add-details summary {
  list-style: none;
}

.lumys-add-details summary::-webkit-details-marker {
  display: none;
}

.lumys-add-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 17px 9px 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #166534;
  background: white;
  box-shadow: 0 8px 22px rgba(15,23,42,.13);
  cursor: pointer;
}

.lumys-add-button span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: white;
  background: #22a867;
  font-size: 22px;
  line-height: 1;
}

.lumys-add-details[open] > .lumys-add-button {
  position: fixed;
  z-index: 2;
  top: 20px;
  right: 24px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  color: transparent;
}

.lumys-add-details[open] > .lumys-add-button span {
  width: 42px;
  height: 42px;
  transform: rotate(45deg);
  background: #111827;
}

.lumys-add-details[open] > .lumys-add-button strong {
  display: none;
}

.lumys-add-content {
  width: min(960px,100%);
  max-height: calc(100vh - 70px);
  padding: 24px;
  overflow-y: auto;
  border-radius: 16px;
  color: #101828;
  background: #f8fafc;
  box-shadow: 0 25px 80px rgba(15,23,42,.35);
}

.lumys-list-panel {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: white;
  box-shadow: 0 7px 24px rgba(16,24,40,.045);
}

.lumys-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.lumys-list-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.lumys-list-toolbar > div strong {
  color: #22a867;
  font-size: 22px;
}

.lumys-list-toolbar > div span {
  color: #667085;
  font-size: 12px;
}

.lumys-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px,100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #f9fafb;
}

.lumys-search-field span {
  color: #667085;
  font-size: 20px;
}

.lumys-search-field input {
  min-height: 36px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
}

.lumys-admin-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.lumys-admin-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  background: #f9fafb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lumys-admin-row {
  cursor: pointer;
  outline: none;
  transition: background .14s ease, box-shadow .14s ease;
}

.lumys-admin-row td {
  padding: 14px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
}

.lumys-admin-row:last-child td {
  border-bottom: 0;
}

.lumys-admin-row:hover,
.lumys-admin-row:focus {
  background: #effaf4;
  box-shadow: inset 4px 0 0 #22a867;
}

.lumys-admin-row:hover .lumys-row-arrow,
.lumys-admin-row:focus .lumys-row-arrow {
  color: #22a867;
  transform: translateX(3px);
}

.lumys-list-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.lumys-list-identity > div {
  display: grid;
  gap: 3px;
}

.lumys-list-identity strong {
  color: #101828;
  font-size: 14px;
}

.lumys-list-identity small,
.lumys-admin-row td > small {
  color: #667085;
  font-size: 10px;
}

.lumys-list-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 10px;
  background: #ecfdf3;
  font-size: 20px;
}

.lumys-list-icon.project {
  background: #eff6ff;
}

.lumys-list-stat {
  display: grid;
  gap: 2px;
}

.lumys-list-stat strong {
  color: #344054;
  font-size: 15px;
}

.lumys-list-stat span {
  color: #667085;
  font-size: 9px;
}

.lumys-list-stat.money strong {
  color: #22a867;
}

.lumys-list-chip {
  display: inline-flex;
  align-items: center;
  margin: 2px 3px 2px 0;
  padding: 4px 7px;
  border-radius: 999px;
  color: #475467;
  background: #f2f4f7;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.lumys-list-chip.success {
  color: #166534;
  background: #dcfce7;
}

.lumys-list-chip.warning {
  color: #92400e;
  background: #fef3c7;
}

.lumys-list-chip.muted {
  color: #667085;
  background: #eaecf0;
}

.lumys-row-arrow {
  width: 35px;
  color: #98a2b3;
  font-size: 27px;
  text-align: center;
  transition: color .14s ease, transform .14s ease;
}

.lumys-list-empty {
  padding: 70px 20px !important;
  color: #667085;
  text-align: center;
}

.lumys-list-empty > span,
.lumys-list-empty > strong,
.lumys-list-empty > small {
  display: block;
}

.lumys-list-empty > span {
  margin-bottom: 9px;
  font-size: 34px;
}

.lumys-list-empty > strong {
  color: #344054;
  font-size: 15px;
}

.lumys-sectioned-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.lumys-form-section,
.lumys-edit-section {
  padding: 21px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: white;
}

.lumys-form-section-title,
.lumys-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lumys-form-section-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: white;
  background: #22a867;
  font-size: 11px;
  font-weight: 900;
}

.lumys-form-section-title h4,
.lumys-section-heading h3 {
  margin: 0;
  color: #101828;
  font-size: 17px;
}

.lumys-form-section-title p,
.lumys-section-heading p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 11px;
}

.lumys-section-heading > a,
.lumys-section-heading > button {
  margin-left: auto;
}

.lumys-section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  color: #166534;
  background: #ecfdf3;
  font-size: 19px;
  font-weight: 900;
}

.lumys-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.lumys-form-grid label,
.lumys-full-field {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.lumys-form-grid .wide {
  grid-column: 1 / -1;
}

.lumys-full-field {
  margin-top: 15px;
}

.lumys-full-field small {
  color: #667085;
  font-weight: 500;
}

.lumys-payment-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.lumys-payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  color: #344054;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 800;
}

.lumys-payment-options label:has(input:checked) {
  border-color: #22a867;
  color: #166534;
  background: #ecfdf3;
  box-shadow: 0 0 0 2px rgba(34,168,103,.1);
}

.lumys-payment-options input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.lumys-form-actions {
  display: flex;
  justify-content: flex-end;
}

.lumys-edit-header {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 28px 0 18px;
  padding: 22px 25px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg,#34b879,#22a867);
  box-shadow: 0 12px 30px rgba(34,168,103,.16);
}

.lumys-back-link {
  color: white;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.lumys-edit-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lumys-edit-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 13px;
  background: rgba(255,255,255,.2);
  font-size: 25px;
}

.lumys-edit-title p {
  margin: 0 0 3px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.lumys-edit-title h2 {
  margin: 0;
  overflow: hidden;
  font-size: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-edit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lumys-edit-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.16);
  font-size: 9px;
  font-weight: 750;
}

.lumys-edit-total {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.lumys-edit-total small,
.lumys-edit-total span {
  color: rgba(255,255,255,.76);
  font-size: 10px;
}

.lumys-edit-total strong {
  font-size: 22px;
}

.lumys-edit-layout {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.lumys-edit-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: white;
}

.lumys-edit-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.lumys-edit-nav a:hover {
  color: #166534;
  background: #ecfdf3;
}

.lumys-edit-nav span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #166534;
  background: #dcfce7;
  font-size: 9px;
}

.lumys-edit-sections {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.lumys-edit-section {
  scroll-margin-top: 20px;
}

.lumys-linked-list {
  display: grid;
  gap: 7px;
}

.lumys-linked-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto 25px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  color: #344054;
  background: #f9fafb;
  text-decoration: none;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.lumys-linked-row:hover {
  border-color: #86efac;
  background: #effaf4;
  transform: translateX(2px);
}

.lumys-linked-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: white;
}

.lumys-linked-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.lumys-linked-row small {
  color: #667085;
  font-size: 9px;
}

.lumys-linked-arrow {
  color: #98a2b3;
  font-size: 22px;
}

.lumys-section-empty {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 20px;
  border: 1px dashed #d0d5dd;
  border-radius: 9px;
  color: #667085;
  text-align: center;
}

.lumys-section-empty span {
  font-size: 27px;
}

.lumys-section-empty p {
  margin: 5px 0 0;
}

.lumys-followup-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.lumys-followup-grid a {
  display: grid;
  gap: 4px;
  min-height: 90px;
  padding: 15px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  color: #344054;
  background: #f9fafb;
  text-decoration: none;
}

.lumys-followup-grid a:hover {
  border-color: #86efac;
  background: #effaf4;
}

.lumys-followup-grid strong {
  color: #22a867;
  font-size: 24px;
}

.lumys-followup-grid span {
  color: #667085;
  font-size: 11px;
}

.lumys-danger-section {
  border-color: #fecaca;
  background: #fffafa;
}

.lumys-danger-section .lumys-section-icon {
  color: #b42318;
  background: #fee2e2;
}

.lumys-danger-help {
  color: #667085;
  font-size: 11px;
}

.lumys-sticky-save {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(16,24,40,.13);
  backdrop-filter: blur(8px);
}

.lumys-sticky-save span {
  color: #667085;
  font-size: 10px;
}

.status-badge.project-in_progress {
  color: #1e40af;
  background: #dbeafe;
}

.status-badge.project-access_cards_validated {
  color: #6b21a8;
  background: #f3e8ff;
}

.status-badge.project-orders_closed {
  color: #92400e;
  background: #fef3c7;
}

.status-badge.project-delivered,
.status-badge.project-paid {
  color: #166534;
  background: #dcfce7;
}

@media (max-width: 1050px) {
  .lumys-edit-layout {
    grid-template-columns: 1fr;
  }

  .lumys-edit-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .lumys-edit-nav a {
    flex: 0 0 auto;
  }

  .lumys-followup-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .lumys-admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-add-button {
    width: 100%;
    justify-content: center;
  }

  .lumys-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-search-field {
    width: 100%;
  }

  .lumys-edit-header {
    grid-template-columns: 1fr;
  }

  .lumys-edit-total {
    justify-items: start;
  }

  .lumys-form-grid,
  .lumys-payment-options {
    grid-template-columns: 1fr;
  }

  .lumys-form-grid .wide {
    grid-column: auto;
  }

  .lumys-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .lumys-section-heading > a,
  .lumys-section-heading > button {
    width: 100%;
    margin-left: 0;
  }

  .lumys-followup-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lumys-sticky-save {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-sticky-save .button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .lumys-add-details[open] {
    padding: 10px;
  }

  .lumys-add-content {
    max-height: calc(100vh - 20px);
    padding: 15px;
  }

  .lumys-followup-grid {
    grid-template-columns: 1fr;
  }

  .lumys-edit-title h2 {
    font-size: 20px;
  }
}


/* v0.6.0 — Écoles et Projets, modèle épuré proche des captures */
.lumys-clean-admin {
  --lumys-blue: #0799d2;
  --lumys-dark-blue: #0879ad;
  --lumys-light-blue: #e9f7fd;
  --lumys-border: #dbeaf1;
  background: #f6fbfd;
}

.lumys-clean-admin .topbar {
  min-height: 64px;
  border-bottom: 1px solid #dcebf2;
  background: white;
}

.lumys-clean-admin .topbar .eyebrow {
  color: #0799d2;
}

.lumys-clean-admin .topbar h1 {
  color: #344054;
}

.lumys-clean-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0;
  padding: 13px 18px;
  border: 1px solid var(--lumys-border);
  border-radius: 4px;
  background: white;
  box-shadow: 0 4px 11px rgba(20,91,121,.10);
}

.lumys-clean-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lumys-clean-title-icon {
  font-size: 34px;
}

.lumys-clean-title p {
  margin: 0;
  color: #667085;
  font-size: 9px;
  letter-spacing: .12em;
}

.lumys-clean-title h2 {
  margin: 3px 0 0;
  color: var(--lumys-blue);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .25em;
}

.lumys-clean-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px,100%);
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: white;
}

.lumys-clean-search input {
  min-height: 36px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
}

.lumys-clean-search span {
  color: #344054;
  font-size: 23px;
}

.lumys-clean-table-card {
  overflow: hidden;
  border: 1px solid var(--lumys-border);
  background: white;
  box-shadow: 0 4px 12px rgba(20,91,121,.09);
}

.lumys-clean-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.lumys-clean-table th {
  padding: 16px 17px;
  color: var(--lumys-blue);
  background: white;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.lumys-simple-row {
  cursor: pointer;
  outline: none;
  transition: background .12s ease;
}

.lumys-simple-row td {
  padding: 17px;
  border-top: 1px solid #eef3f6;
  color: #344054;
  vertical-align: middle;
}

.lumys-simple-row:hover,
.lumys-simple-row:focus {
  background: var(--lumys-light-blue);
}

.lumys-simple-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 245px;
}

.lumys-simple-name > div {
  display: grid;
  gap: 3px;
}

.lumys-simple-name strong {
  color: #20262e;
  font-size: 13px;
  font-weight: 600;
}

.lumys-simple-name small {
  color: #667085;
  font-size: 9px;
}

.lumys-simple-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 5px;
  background: #e9f7fd;
  font-size: 18px;
}

.lumys-simple-icon.project {
  background: #f1f5f9;
}

.lumys-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
}

.lumys-location > span {
  color: #7b8794;
  font-size: 8px;
}

.lumys-simple-counter {
  display: grid;
  gap: 2px;
}

.lumys-simple-counter strong {
  color: #344054;
  font-size: 13px;
}

.lumys-simple-counter span {
  color: #98a2b3;
  font-size: 9px;
}

.lumys-add-cell {
  text-align: center;
}

.lumys-row-add {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: white;
  background: var(--lumys-blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}

.lumys-row-add:hover {
  background: var(--lumys-dark-blue);
  transform: scale(1.08);
}

.lumys-row-chevron {
  width: 25px;
  color: #98a2b3;
  font-size: 24px;
}

.lumys-simple-empty {
  padding: 55px !important;
  color: #667085;
  text-align: center;
}

.lumys-clean-floating-add {
  position: fixed;
  z-index: 150;
  right: 28px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  list-style: none;
  border-radius: 50%;
  color: #0f3350;
  background: #7fc4ff;
  box-shadow: 0 8px 22px rgba(15,65,100,.25);
  cursor: pointer;
  font-size: 32px;
}

.lumys-clean-floating-add::-webkit-details-marker {
  display: none;
}

.lumys-clean-add-dialog[open] {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15,35,50,.42);
  backdrop-filter: blur(3px);
}

.lumys-clean-add-dialog[open] > .lumys-clean-floating-add {
  top: 18px;
  right: 20px;
  bottom: auto;
  width: 43px;
  height: 43px;
  color: white;
  background: #233443;
  transform: rotate(45deg);
  font-size: 25px;
}

.lumys-clean-dialog-content {
  width: min(920px,100%);
  max-height: calc(100vh - 55px);
  overflow-y: auto;
  border-radius: 4px;
  background: #f7fbfd;
  box-shadow: 0 20px 70px rgba(15,35,50,.30);
}

.lumys-clean-dialog-content > header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--lumys-border);
  background: white;
}

.lumys-clean-dialog-content > header p {
  margin: 0;
  color: #667085;
  font-size: 9px;
  text-transform: uppercase;
}

.lumys-clean-dialog-content > header h2 {
  margin: 4px 0 0;
  color: var(--lumys-blue);
  font-size: 21px;
  font-weight: 500;
}

.lumys-clean-form,
.lumys-clean-edit-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.lumys-clean-form-section {
  padding: 20px;
  border: 1px solid var(--lumys-border);
  background: white;
  box-shadow: 0 3px 10px rgba(20,91,121,.08);
}

.lumys-clean-form-section h3 {
  margin: 0 0 18px;
  color: var(--lumys-blue);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
}

.lumys-clean-form > footer,
.lumys-clean-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lumys-detail-header {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0 18px;
  padding: 13px 17px;
  border-left: 6px solid var(--lumys-blue);
  background: white;
  box-shadow: 0 4px 11px rgba(20,91,121,.10);
}

.lumys-detail-back {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.lumys-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lumys-detail-title > span {
  font-size: 26px;
}

.lumys-detail-title h2 {
  margin: 0;
  overflow: hidden;
  color: var(--lumys-blue);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .22em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lumys-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lumys-detail-header-actions form {
  margin: 0;
}

.lumys-delete-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  color: #ef4444;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.lumys-detail-page {
  display: grid;
  gap: 17px;
  padding-bottom: 45px;
}

.lumys-detail-grid.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.lumys-detail-card {
  border: 1px solid var(--lumys-border);
  background: white;
  box-shadow: 0 4px 12px rgba(20,91,121,.09);
}

.lumys-detail-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px 12px;
  border-bottom: 1px solid #e5f0f5;
}

.lumys-detail-card > header h3 {
  margin: 0;
  color: var(--lumys-blue);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
}

.lumys-detail-card > header a {
  color: white;
  padding: 7px 13px;
  border-radius: 2px;
  background: var(--lumys-blue);
  box-shadow: 0 2px 6px rgba(7,153,210,.22);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.lumys-detail-body {
  min-height: 105px;
  padding: 18px;
  color: #344054;
}

.lumys-detail-body p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.lumys-detail-body p:last-child {
  margin-bottom: 0;
}

.lumys-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.lumys-detail-chip {
  padding: 6px 9px;
  border-radius: 999px;
  color: #667085;
  background: #f2f4f7;
  font-size: 10px;
  font-weight: 750;
}

.lumys-detail-chip.active {
  color: #075985;
  background: #e0f2fe;
}

.lumys-detail-chip.warning {
  color: #92400e;
  background: #fef3c7;
}

.warning-text {
  color: #ef4444;
}

.lumys-card-list {
  display: grid;
  gap: 7px;
}

.lumys-card-list-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #e5edf2;
  color: #344054;
  background: #fbfdfe;
  text-decoration: none;
}

.lumys-card-list-row:hover {
  background: var(--lumys-light-blue);
}

.lumys-card-list-row > span:first-child {
  display: grid;
  gap: 3px;
}

.lumys-card-list-row small {
  color: #667085;
  font-size: 9px;
}

.lumys-card-empty {
  color: #667085;
}

.lumys-detail-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 11px;
}

.lumys-detail-stats > div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid #e5edf2;
  background: #fbfdfe;
}

.lumys-detail-stats strong {
  color: var(--lumys-blue);
  font-size: 20px;
}

.lumys-detail-stats span {
  color: #667085;
  font-size: 10px;
}

@media (max-width: 900px) {
  .lumys-clean-titlebar,
  .lumys-detail-header {
    grid-template-columns: 1fr;
  }

  .lumys-clean-titlebar {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-clean-search {
    width: 100%;
  }

  .lumys-detail-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .lumys-detail-header-actions {
    justify-content: flex-start;
  }

  .lumys-detail-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 580px) {
  .lumys-clean-add-dialog[open] {
    padding: 8px;
  }

  .lumys-clean-dialog-content {
    max-height: calc(100vh - 16px);
  }

  .lumys-clean-title h2,
  .lumys-detail-title h2 {
    letter-spacing: .10em;
  }

  .lumys-detail-stats {
    grid-template-columns: 1fr;
  }

  .lumys-clean-floating-add {
    right: 14px;
    bottom: 14px;
  }
}


/* v0.6.1 — design système bleu commun */
:root {
  --blue: #0799d2;
  --blue-dark: #0879ad;
  --blue-soft: #e9f7fd;
  --navy: #0879ad;
}

.myselfphoto-interface .sidebar {
  background: linear-gradient(180deg,#0879ad,#066993);
}

.myselfphoto-interface .sidebar nav a:hover,
.myselfphoto-interface .sidebar nav a.active {
  color: #075985;
  background: #dff3fc;
}

.myselfphoto-interface .brand span,
.myselfphoto-interface .auth-brand span,
.myselfphoto-interface .eyebrow,
.myselfphoto-interface .lumys-clean-title h2,
.myselfphoto-interface .lumys-detail-card > header h3,
.myselfphoto-interface .lumys-clean-form-section h3,
.myselfphoto-interface .lumys-blue-text {
  color: #0799d2;
}

.myselfphoto-interface .button,
.myselfphoto-interface .button.primary,
.myselfphoto-interface .button.secondary,
.myselfphoto-interface .lumys-detail-card > header a,
.myselfphoto-interface .lumys-add-button,
.myselfphoto-interface .lumys-row-add,
.myselfphoto-interface .lumys-clean-floating-add {
  border-color: #0799d2;
  color: white;
  background: #0799d2;
}

.myselfphoto-interface .button:hover,
.myselfphoto-interface .button.primary:hover,
.myselfphoto-interface .button.secondary:hover,
.myselfphoto-interface .lumys-detail-card > header a:hover,
.myselfphoto-interface .lumys-row-add:hover {
  color: white;
  background: #0879ad;
}

.myselfphoto-interface .button.danger,
.myselfphoto-interface .lumys-delete-icon,
.myselfphoto-interface .lumys-cart-delete {
  color: white;
  border-color: #ef4444;
  background: #ef4444;
}

.myselfphoto-interface .button.danger:hover,
.myselfphoto-interface .lumys-delete-icon:hover {
  background: #dc2626;
}

.myselfphoto-interface .lumys-payment-options label:has(input:checked),
.myselfphoto-interface .payment-choice:has(input:checked) {
  border-color: #0799d2;
  color: #075985;
  background: #e9f7fd;
  box-shadow: 0 0 0 2px rgba(7,153,210,.12);
}

.myselfphoto-interface .lumys-payment-options input,
.myselfphoto-interface .payment-choice input {
  accent-color: #0799d2;
}

.lumys-project-list-copy strong {
  font-size: 15px !important;
}

.lumys-project-list-school,
.lumys-project-school-title,
.lumys-title-school {
  margin: 3px 0 0;
  color: #0799d2 !important;
  font-size: 11px !important;
  font-weight: 700;
}

.lumys-project-name-cell {
  color: #344054;
  font-size: 14px;
}

.project-detail-title > div,
.lumys-detail-title > div {
  min-width: 0;
}

.lumys-edit-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lumys-edit-section-heading h3 {
  margin: 0;
}

.lumys-edit-section-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 11px;
}

.lumys-selected-products {
  display: grid;
  gap: 8px;
}

.lumys-selected-product-row {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 12px;
  border: 1px solid #dbeaf1;
  color: #344054;
  background: #fbfdfe;
  text-decoration: none;
}

.lumys-selected-product-row:hover {
  background: #e9f7fd;
}

.lumys-selected-product-image {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: #f1f5f9;
}

.lumys-selected-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lumys-selected-product-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.lumys-selected-product-row small {
  color: #0799d2;
  font-size: 10px;
}

.module-clean-titlebar {
  margin-bottom: 18px;
}

.lumys-module-context {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.lumys-module-context strong {
  color: #0799d2;
  font-size: 13px;
}

.lumys-module-context span {
  color: #667085;
  font-size: 11px;
}

/* Harmonisation des modules existants */
.lumys-clean-admin .panel,
.lumys-clean-admin .photo-context-bar,
.lumys-clean-admin .orders-toolbar,
.lumys-clean-admin .access-card-controls {
  border: 1px solid #dbeaf1;
  border-radius: 2px;
  background: white;
  box-shadow: 0 4px 12px rgba(20,91,121,.08);
}

.lumys-clean-admin .panel-heading h2,
.lumys-clean-admin .selected-student-summary h2 {
  color: #0799d2;
  font-weight: 500;
}

.lumys-clean-admin .metrics article {
  border-color: #dbeaf1;
  border-radius: 2px;
  box-shadow: 0 3px 9px rgba(20,91,121,.06);
}

.lumys-clean-admin .metrics article strong {
  color: #0799d2;
}

.lumys-clean-admin table thead th {
  color: #0799d2;
  background: #f8fcfe;
}

.lumys-clean-admin table tbody tr:hover {
  background: #e9f7fd;
}

.lumys-clean-admin .student-card:hover,
.lumys-clean-admin .photo-bank-card:hover,
.lumys-clean-admin .student-card.active,
.lumys-clean-admin .photo-bank-card.selected {
  border-color: #0799d2;
  box-shadow: 0 0 0 2px rgba(7,153,210,.12);
}

.lumys-clean-admin .catalog-tabs a.active {
  color: white;
  background: #0799d2;
}

.lumys-clean-admin .category-select,
.lumys-clean-admin input,
.lumys-clean-admin select,
.lumys-clean-admin textarea {
  border-color: #cbdce5;
}

.lumys-clean-admin input:focus,
.lumys-clean-admin select:focus,
.lumys-clean-admin textarea:focus {
  border-color: #0799d2;
  outline: 2px solid rgba(7,153,210,.12);
}

@media (max-width: 760px) {
  .lumys-edit-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .lumys-edit-section-heading .button {
    width: 100%;
  }

  .lumys-module-context {
    justify-items: start;
  }
}


/* v0.6.2 — tableau de bord harmonisé */
.module-dashboard {
  background: #f6fbfd;
}

.dashboard-titlebar {
  margin-bottom: 18px;
}

.dashboard-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-kpi {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 17px;
  border: 1px solid #dbeaf1;
  color: #344054;
  background: white;
  box-shadow: 0 4px 12px rgba(20,91,121,.08);
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.dashboard-kpi:hover {
  border-color: #7dd3fc;
  background: #e9f7fd;
  transform: translateY(-2px);
}

.dashboard-kpi-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e9f7fd;
  font-size: 23px;
}

.dashboard-kpi-copy {
  display: grid;
  gap: 2px;
}

.dashboard-kpi-copy small {
  color: #0799d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-kpi-copy strong {
  color: #20262e;
  font-size: 27px;
  line-height: 1.05;
}

.dashboard-kpi-copy span {
  color: #667085;
  font-size: 10px;
}

.dashboard-kpi-arrow {
  color: #98a2b3;
  font-size: 25px;
  transition: transform .14s ease, color .14s ease;
}

.dashboard-kpi:hover .dashboard-kpi-arrow {
  color: #0799d2;
  transform: translateX(3px);
}

.dashboard-kpi-money .dashboard-kpi-copy strong {
  color: #0799d2;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(310px,.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr);
  gap: 18px;
  padding-bottom: 45px;
}

.dashboard-card-eyebrow {
  margin: 0 0 4px;
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-project-table {
  min-width: 760px;
}

.dashboard-project-table th {
  padding: 12px 14px;
}

.dashboard-project-table td {
  padding: 13px 14px;
}

.dashboard-list-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.dashboard-list-name > div {
  display: grid;
  gap: 3px;
}

.dashboard-list-name strong {
  color: #20262e;
  font-size: 13px;
}

.dashboard-list-name small {
  color: #0799d2;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-list-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  background: #e9f7fd;
}

.dashboard-attention-list {
  display: grid;
  gap: 0;
}

.dashboard-attention-list > a {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px 17px;
  border-bottom: 1px solid #e5f0f5;
  color: #344054;
  text-decoration: none;
}

.dashboard-attention-list > a:last-child {
  border-bottom: 0;
}

.dashboard-attention-list > a:hover {
  background: #e9f7fd;
}

.dashboard-attention-list > a > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.dashboard-attention-list strong {
  font-size: 12px;
}

.dashboard-attention-list small {
  color: #667085;
  font-size: 9px;
}

.dashboard-alert-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 900;
}

.dashboard-all-clear {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 130px;
  padding: 20px;
}

.dashboard-all-clear > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: #0799d2;
  font-size: 20px;
}

.dashboard-all-clear > div {
  display: grid;
  gap: 3px;
}

.dashboard-all-clear small {
  color: #667085;
}

.dashboard-orders-list {
  display: grid;
}

.dashboard-order-row {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto auto 20px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 17px;
  border-bottom: 1px solid #e5f0f5;
  color: #344054;
  text-decoration: none;
}

.dashboard-order-row:last-child {
  border-bottom: 0;
}

.dashboard-order-row:hover {
  background: #e9f7fd;
}

.dashboard-order-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #f1f5f9;
}

.dashboard-order-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-order-copy strong {
  color: #20262e;
  font-size: 12px;
}

.dashboard-order-copy small {
  overflow: hidden;
  color: #0799d2;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-order-copy > span {
  color: #667085;
  font-size: 9px;
}

.dashboard-order-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.dashboard-order-status small {
  color: #667085;
  font-size: 9px;
}

.dashboard-order-amount {
  min-width: 78px;
  color: #0799d2;
  font-size: 14px;
  text-align: right;
}

.dashboard-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #667085;
}

.dashboard-empty-state span {
  font-size: 34px;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.dashboard-shortcuts a {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid #dbeaf1;
  color: #344054;
  background: #fbfdfe;
  text-decoration: none;
}

.dashboard-shortcuts a:hover {
  border-color: #7dd3fc;
  background: #e9f7fd;
}

.dashboard-shortcuts a > span {
  font-size: 24px;
}

.dashboard-shortcuts strong {
  color: #0799d2;
  font-size: 12px;
}

.dashboard-shortcuts small {
  color: #667085;
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .dashboard-main-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-title-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-title-actions .button {
    width: 100%;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-order-row {
    grid-template-columns: 40px minmax(0,1fr) auto;
  }

  .dashboard-order-status {
    grid-column: 2;
    justify-items: start;
  }

  .dashboard-order-amount {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .dashboard-order-row > .lumys-row-chevron {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }
}


/* v0.6.3 — menu latéral en slide */
.app-shell {
  transition: grid-template-columns .22s ease;
}

.sidebar {
  position: sticky;
  z-index: 90;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  transition: width .22s ease, padding .22s ease;
}

.sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-bottom: 22px;
}

.sidebar-head .brand {
  min-width: 0;
  margin: 0 40px 0 7px;
  white-space: nowrap;
}

.brand-name {
  overflow: hidden;
  font-size: 22px;
  text-overflow: clip;
}

.brand-name strong {
  color: #7dd3fc;
}

.sidebar-toggle {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,.22);
}

.sidebar nav a {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  min-height: 43px;
  white-space: nowrap;
}

.sidebar-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  font-size: 17px;
}

.sidebar-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 921px) {
  html.sidebar-collapsed .app-shell {
    grid-template-columns: 74px minmax(0,1fr);
  }

  html.sidebar-collapsed .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  html.sidebar-collapsed .sidebar-head {
    justify-content: center;
  }

  html.sidebar-collapsed .sidebar-head .brand {
    margin: 0;
  }

  html.sidebar-collapsed .brand-name,
  html.sidebar-collapsed .sidebar-nav-label,
  html.sidebar-collapsed .sidebar-footer {
    display: none;
  }

  html.sidebar-collapsed .brand-camera {
    font-size: 25px;
  }

  html.sidebar-collapsed .sidebar-toggle {
    right: -1px;
    top: 39px;
    width: 27px;
    height: 27px;
    color: #075985;
    border-color: #bae6fd;
    background: #e0f2fe;
    box-shadow: 0 4px 10px rgba(7,121,173,.18);
  }

  html.sidebar-collapsed .sidebar nav {
    margin-top: 30px;
  }

  html.sidebar-collapsed .sidebar nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  html.sidebar-collapsed .sidebar-nav-icon {
    width: 34px;
    font-size: 19px;
  }
}

/* Photos et élèves : fiches à gauche, images à droite */
.photo-assignment-workspace {
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.7fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.photo-student-column {
  position: sticky;
  top: 18px;
  align-self: start;
  min-width: 0;
}

.photo-students-panel,
.photo-bank-panel {
  margin-top: 0;
}

.photo-students-panel {
  display: grid;
  grid-template-rows: auto auto minmax(180px,1fr) auto;
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.photo-column-heading {
  align-items: flex-start;
}

.photo-column-description {
  max-width: 650px;
  margin: 4px 0 0;
  color: #667085;
  font-size: 11px;
}

.photo-student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 12px;
}

.photo-student-actions form {
  margin: 0;
}

.photo-student-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  max-height: 45vh;
  padding-right: 5px;
  overflow-y: auto;
}

.photo-student-list .student-card {
  min-height: 82px;
  grid-template-columns: 64px minmax(0,1fr);
}

.photo-student-list .student-thumb {
  width: 64px;
  height: 60px;
}

.photo-selected-student {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #dbeaf1;
}

.photo-selected-student .selected-student-summary {
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.photo-selected-student .selected-student-actions {
  justify-content: flex-start;
}

.photo-selected-student .selected-student-panel {
  padding: 0;
}

.photo-bank-panel {
  min-width: 0;
}

.expanded-photo-bank {
  grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
}

.expanded-photo-bank .photo-bank-image {
  height: 205px;
}

.compact-photo-context,
.compact-photo-tools,
.compact-photo-metrics {
  margin-top: 16px;
}

@media (min-width: 1500px) {
  .photo-assignment-workspace {
    grid-template-columns: minmax(360px,.65fr) minmax(0,1.9fr);
  }

  .expanded-photo-bank {
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  }
}

@media (max-width: 1180px) {
  .photo-assignment-workspace {
    grid-template-columns: minmax(300px,.8fr) minmax(0,1.45fr);
  }

  .expanded-photo-bank {
    grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
  }
}

@media (max-width: 920px) {
  html.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
  }

  .sidebar-head {
    margin-bottom: 12px;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar nav a {
    grid-template-columns: 27px minmax(0,1fr);
  }

  .photo-assignment-workspace {
    grid-template-columns: 1fr;
  }

  .photo-student-column {
    position: static;
  }

  .photo-students-panel {
    max-height: none;
  }

  .photo-student-list {
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 650px) {
  .photo-student-list {
    grid-template-columns: 1fr;
  }

  .expanded-photo-bank {
    grid-template-columns: 1fr;
  }

  .expanded-photo-bank .photo-bank-image {
    height: 260px;
  }
}


/* v0.6.4 — maintien de la position de la fiche anonyme */
.student-card.student-selection-restored {
  border-color: #0799d2 !important;
  background: #e9f7fd !important;
  box-shadow: 0 0 0 3px rgba(7,153,210,.15) !important;
  transition: background .2s ease, box-shadow .2s ease;
}


/* v0.6.5 — création rapide intégrée aux fiches anonymes */
.photo-import-only {
  grid-template-columns: 1fr !important;
}

.anonymous-student-heading {
  gap: 14px;
}

.anonymous-student-heading-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
}

.anonymous-student-quick-add {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
}

.anonymous-student-quick-add label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #075985;
  font-size: 9px;
  font-weight: 800;
}

.anonymous-student-quick-add label > span {
  padding-left: 6px;
}

.anonymous-student-quick-add input[type="number"] {
  width: 50px;
  min-height: 34px;
  height: 34px;
  padding: 5px 6px;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: #0f172a;
  background: white;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.anonymous-student-add-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #0799d2;
  box-shadow: 0 4px 10px rgba(7,153,210,.25);
  cursor: pointer;
}

.anonymous-student-add-icon:hover {
  background: #0879ad;
  transform: scale(1.04);
}

.anonymous-student-add-icon > span {
  font-size: 18px;
  transform: translateX(-2px);
}

.anonymous-student-add-icon > strong {
  position: absolute;
  right: 5px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 2px solid #0799d2;
  border-radius: 50%;
  color: #0799d2;
  background: white;
  font-size: 11px;
  line-height: 1;
}

.anonymous-student-add-icon:hover > strong {
  border-color: #0879ad;
  color: #0879ad;
}

@media (max-width: 1180px) {
  .anonymous-student-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .anonymous-student-heading-tools {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .anonymous-student-heading-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .anonymous-student-quick-add {
    justify-content: space-between;
    border-radius: 10px;
  }

  .anonymous-student-quick-add label {
    flex: 1;
    justify-content: space-between;
  }
}


/* v0.6.6 — icônes monochromes et cohérentes du menu */
.sidebar-nav-icon {
  color: rgba(255,255,255,.90);
}

.sidebar-nav-icon svg,
.brand-camera svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sidebar nav a:hover .sidebar-nav-icon,
.sidebar nav a.active .sidebar-nav-icon {
  color: #0879ad;
}

.sidebar nav a.disabled .sidebar-nav-icon {
  color: rgba(255,255,255,.38);
}

.sidebar nav a.disabled:hover .sidebar-nav-icon {
  color: rgba(255,255,255,.38);
}

.brand-camera {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: white;
}

.brand-camera svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

html.sidebar-collapsed .sidebar-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

html.sidebar-collapsed .sidebar-nav-icon svg {
  width: 23px;
  height: 23px;
}

html.sidebar-collapsed .sidebar nav a:hover .sidebar-nav-icon,
html.sidebar-collapsed .sidebar nav a.active .sidebar-nav-icon {
  background: #dff3fc;
}

html.sidebar-collapsed .sidebar nav a.active .sidebar-nav-icon {
  box-shadow: inset 3px 0 0 #0799d2;
}

html.sidebar-collapsed .brand-camera {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.10);
}

html.sidebar-collapsed .brand-camera svg {
  width: 25px;
  height: 25px;
}

@media (max-width: 920px) {
  .sidebar-nav-icon svg {
    width: 21px;
    height: 21px;
  }
}


/* v0.6.7 — charte graphique commune interface parent / gestion */
.parent-interface {
  --blue: #0799d2;
  --blue-dark: #0879ad;
  --blue-soft: #e9f7fd;
  --navy: #0879ad;
  --border: #dbeaf1;
  --background: #f6fbfd;
  --surface: #ffffff;
  --text: #1d2939;
  --muted: #667085;
  color: var(--text);
  background: var(--background);
}

/* Marque monochrome */
.parent-interface .public-parent-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.parent-interface .public-brand-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: currentColor;
}

.parent-interface .public-brand-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parent-interface .public-brand-name {
  color: inherit !important;
  font-size: 23px;
  font-weight: 700;
}

.parent-interface .public-brand-name strong {
  color: #7dd3fc;
  font-weight: 900;
}

/* Accès par code */
.parent-access-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 12%, rgba(125,211,252,.34), transparent 28%),
    linear-gradient(145deg,#e9f7fd,#f8fcfe 58%,#ffffff);
}

.parent-access-page .auth-shell {
  width: min(520px,calc(100% - 28px));
}

.parent-access-page .public-parent-brand {
  margin: 0 auto 18px;
  color: #0879ad;
}

.parent-access-page .public-brand-name strong {
  color: #0799d2;
}

.parent-access-page .auth-card {
  border: 1px solid #dbeaf1;
  border-top: 5px solid #0799d2;
  border-radius: 4px;
  background: white;
  box-shadow: 0 18px 55px rgba(8,121,173,.16);
}

.parent-access-page .auth-card h1 {
  color: #0799d2;
  font-weight: 600;
}

.parent-access-page .auth-card > p {
  color: #667085;
}

.parent-access-page .gallery-login-card .badge {
  color: #075985;
  background: #e0f2fe;
}

.parent-access-page .gallery-login-card input {
  border-color: #bae6fd;
  background: #f8fcfe;
}

.parent-access-page .gallery-login-card input:focus {
  border-color: #0799d2;
  outline: 3px solid rgba(7,153,210,.13);
}

.parent-access-page .button.primary {
  border-color: #0799d2;
  background: #0799d2;
}

.parent-access-page .button.primary:hover {
  background: #0879ad;
}

.parent-access-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: #667085;
  font-size: 11px;
}

.parent-access-security > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  background: #0799d2;
  font-size: 11px;
  font-weight: 900;
}

.parent-access-security p {
  margin: 0;
}

/* En-tête galerie et confirmation */
.parent-interface .public-gallery-header,
.parent-interface .lumys-public-header {
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 88% 0%, rgba(125,211,252,.22), transparent 32%),
    linear-gradient(135deg,#0879ad,#066993);
  box-shadow: 0 4px 16px rgba(6,105,147,.22);
}

.parent-interface .public-gallery-header .public-parent-brand,
.parent-interface .lumys-public-header .public-parent-brand {
  color: white;
}

.parent-interface .parent-gallery-context {
  display: grid;
  gap: 2px;
  text-align: right;
}

.parent-interface .parent-gallery-context small {
  color: #bae6fd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.parent-interface .parent-gallery-context strong {
  font-size: 14px;
}

.parent-interface .parent-gallery-context span,
.parent-interface .public-gallery-header > div span {
  color: #d9f1fb;
}

/* Galerie et photos */
.parent-gallery-page {
  background: #f6fbfd;
}

.parent-interface .lumys-photo-column {
  background: #edf7fb;
}

.parent-interface .lumys-main-viewer {
  border: 1px solid #dbeaf1;
  border-radius: 4px;
  background:
    linear-gradient(145deg,#e4f1f6,#f4fafc);
}

.parent-interface .lumys-main-viewer > img {
  border-radius: 3px;
  box-shadow: 0 15px 38px rgba(8,80,112,.18);
}

.parent-interface .lumys-selected-photo-label span {
  color: #0879ad;
}

.parent-interface .lumys-thumbnail {
  border-radius: 4px;
  border-color: #dbeaf1;
  box-shadow: 0 2px 7px rgba(8,121,173,.05);
}

.parent-interface .lumys-thumbnail:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.parent-interface .lumys-thumbnail.active {
  border-color: #0799d2;
  background: #e9f7fd;
  box-shadow: 0 0 0 3px rgba(7,153,210,.13);
}

.parent-interface .lumys-products-column {
  border-left-color: #dbeaf1;
}

.parent-interface .lumys-products-heading {
  border-bottom-color: #dbeaf1;
  background: #fbfdfe;
}

.parent-interface .lumys-products-heading .badge,
.parent-interface .lumys-cart-drawer .badge,
.parent-interface .lumys-checkout-heading .badge {
  color: #075985;
  background: #e0f2fe;
}

.parent-interface .lumys-products-heading h2,
.parent-interface .lumys-section-title,
.parent-interface .lumys-checkout-heading h1,
.parent-interface .lumys-checkout-forms h2,
.parent-interface .lumys-cart-drawer h2 {
  color: #0799d2;
}

.parent-interface .lumys-products-heading-help {
  color: #667085;
}

/* Catégories : une seule charte bleue */
.parent-interface .lumys-category-title,
.parent-interface .lumys-category-group[data-category="digital"] .lumys-category-title,
.parent-interface .lumys-category-group[data-category="prints"] .lumys-category-title,
.parent-interface .lumys-category-group[data-category="gifts"] .lumys-category-title {
  color: #075985;
  border-left: 4px solid #0799d2;
  border-radius: 2px;
  background: #e9f7fd;
}

.parent-interface .mini-badge,
.parent-interface .mini-badge.pack {
  color: #075985;
  background: #e0f2fe;
}

.parent-interface .lumys-product-row,
.parent-interface .lumys-pack-row {
  border-color: #dbeaf1;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(20,91,121,.05);
}

.parent-interface .lumys-product-row:hover,
.parent-interface .lumys-pack-row:hover {
  border-color: #7dd3fc;
  background: #fbfdfe;
}

.parent-interface .lumys-product-row.selected,
.parent-interface .lumys-pack-row.selected {
  border-color: #0799d2;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(7,153,210,.13);
}

.parent-interface .lumys-product-picture {
  border-radius: 3px;
  background: #edf7fb;
}

.parent-interface .lumys-product-order > strong,
.parent-interface .lumys-product-copy [data-article-cart-status] {
  color: #0799d2;
}

.parent-interface .lumys-stepper {
  border-color: #bae6fd;
  border-radius: 3px;
}

.parent-interface .lumys-stepper button {
  color: #075985;
  background: #e9f7fd;
}

.parent-interface .lumys-stepper button:hover {
  background: #d8f1fb;
}

.parent-interface .lumys-add-button {
  border-radius: 3px;
  background: #0799d2;
}

.parent-interface .lumys-add-button:hover {
  background: #0879ad;
}

.parent-interface .lumys-product-row.selected .lumys-add-button,
.parent-interface .lumys-pack-row.selected .lumys-add-button {
  color: white;
  background: #0879ad;
}

.parent-interface .lumys-add-button.added-feedback {
  background: #0879ad !important;
}

/* Panier */
.parent-interface .lumys-floating-cart {
  border-color: rgba(255,255,255,.82);
  color: white;
  background: #0799d2;
  box-shadow: 0 14px 34px rgba(7,153,210,.32);
}

.parent-interface .lumys-floating-cart:hover,
.parent-interface .lumys-floating-cart.has-items {
  background: #0879ad;
  box-shadow: 0 14px 38px rgba(8,121,173,.38);
}

.parent-interface .lumys-cart-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
}

.parent-interface .lumys-cart-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parent-interface .lumys-floating-cart-copy small {
  color: #d9f1fb;
}

.parent-interface .lumys-cart-badge {
  color: #0879ad;
  background: white;
}

.parent-interface .lumys-cart-backdrop {
  background: rgba(4,47,68,.52);
}

.parent-interface .lumys-cart-drawer {
  border-left: 1px solid #bae6fd;
}

.parent-interface .lumys-cart-drawer > header {
  color: white;
  border-bottom: 0;
  background: linear-gradient(135deg,#0879ad,#066993);
}

.parent-interface .lumys-cart-drawer > header h2 {
  color: white;
}

.parent-interface .lumys-cart-drawer > header .badge {
  color: #075985;
  background: white;
}

.parent-interface .lumys-cart-drawer > header button {
  color: white;
  background: rgba(255,255,255,.15);
}

.parent-interface .lumys-cart-line {
  border-bottom-color: #dbeaf1;
}

.parent-interface .lumys-cart-drawer > footer {
  border-top-color: #dbeaf1;
  background: #edf8fc;
}

.parent-interface .lumys-cart-total strong {
  color: #0799d2;
}

.parent-interface [data-checkout-open],
.parent-interface .public-order-submit,
.parent-interface .button.primary {
  border-color: #0799d2;
  color: white;
  background: #0799d2;
}

.parent-interface [data-checkout-open]:hover:not(:disabled),
.parent-interface .public-order-submit:hover,
.parent-interface .button.primary:hover {
  background: #0879ad;
}

.parent-interface .button.secondary {
  border-color: #0799d2;
  color: #0799d2;
  background: white;
}

.parent-interface .button.secondary:hover {
  color: white;
  background: #0799d2;
}

/* Finalisation */
.parent-interface .lumys-checkout {
  background: #f6fbfd;
}

.parent-interface .lumys-checkout .panel,
.parent-interface .confirmation-grid .panel {
  border-color: #dbeaf1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(20,91,121,.08);
}

.parent-interface .lumys-checkout .panel .eyebrow,
.parent-interface .payment-instructions .eyebrow {
  color: #0799d2;
}

.parent-interface .public-cart-table thead th,
.parent-interface .confirmation-summary thead th {
  color: #0799d2;
  background: #f0f9ff;
}

.parent-interface .cart-total-line,
.parent-interface .confirmation-total {
  border-color: #bae6fd;
  background: #e9f7fd;
}

.parent-interface .cart-total-line strong,
.parent-interface .confirmation-total strong {
  color: #0799d2;
}

.parent-interface .parent-details-grid input,
.parent-interface textarea,
.parent-interface select {
  border-color: #cbdce5;
}

.parent-interface .parent-details-grid input:focus,
.parent-interface textarea:focus,
.parent-interface select:focus {
  border-color: #0799d2;
  outline: 3px solid rgba(7,153,210,.12);
}

.parent-interface .payment-choice {
  border-color: #dbeaf1;
  border-radius: 4px;
  background: white;
}

.parent-interface .payment-choice:hover {
  border-color: #7dd3fc;
  background: #f8fcfe;
}

.parent-interface .payment-choice:has(input:checked) {
  border-color: #0799d2;
  color: #075985;
  background: #e9f7fd;
  box-shadow: 0 0 0 3px rgba(7,153,210,.12);
}

.parent-interface .payment-choice input,
.parent-interface .terms-choice input {
  accent-color: #0799d2;
}

.parent-interface .school-payment-note {
  border-left-color: #0799d2;
  border-radius: 2px;
  background: #e9f7fd;
}

/* Confirmation */
.parent-confirmation-page {
  background: #f6fbfd;
}

.parent-confirmation-page .confirmation-hero {
  border: 1px solid #bae6fd;
  border-radius: 4px;
  color: #075985;
  background:
    radial-gradient(circle at 88% 0%, rgba(125,211,252,.34), transparent 35%),
    #e9f7fd;
  box-shadow: 0 7px 20px rgba(7,153,210,.11);
}

.parent-confirmation-page .confirmation-check {
  color: white;
  background: #0799d2;
}

.parent-confirmation-page .confirmation-hero .badge {
  color: #075985;
  background: white;
}

.parent-confirmation-page .confirmation-hero h1,
.parent-confirmation-page .payment-instructions h2 {
  color: #0799d2;
}

.parent-confirmation-page .payment-link-button {
  background: #0799d2;
}

@media (max-width: 850px) {
  .parent-interface .parent-gallery-context {
    text-align: left;
  }

  .parent-interface .lumys-products-column {
    border-top-color: #dbeaf1;
  }
}

@media print {
  .parent-interface .public-gallery-header {
    background: white !important;
    color: #1d2939 !important;
    box-shadow: none !important;
  }
}
