/* ============================================================
   DPC Configurateur PC — Styles frontend
   Tokens DPC : #0078A0, Space Grotesk, DM Sans
   ============================================================ */

.dpc-cfg-wrap {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0A1628;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === HEADER D'ÉTAPE === */
.dpc-cfg-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.dpc-cfg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0078A0;
  color: #fff;
  border-radius: 50%;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.dpc-cfg-header h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  color: #0A1628;
}
.dpc-cfg-header p {
  font-size: 1rem;
  color: #64748B;
  margin: 0;
}
.dpc-cfg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0078A0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s;
  margin-bottom: 1.25rem;
}
.dpc-cfg-back:hover { background: #E8F9FD; }

/* === ÉTAPE 1 : PROFILS === */
.dpc-cfg-profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .dpc-cfg-profiles { grid-template-columns: 1fr; }
}
.dpc-cfg-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 2px solid rgba(0,120,160,0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dpc-cfg-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--profile-color, #0078A0);
  transform: scaleX(0);
  transition: transform 0.22s;
  transform-origin: left;
}
.dpc-cfg-profile-card:hover {
  border-color: var(--profile-color, #0078A0);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,120,160,0.12);
}
.dpc-cfg-profile-card:hover::before { transform: scaleX(1); }
.dpc-cfg-profile-icon {
  font-size: 3rem;
  line-height: 1;
}
.dpc-cfg-profile-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0A1628;
  letter-spacing: -0.02em;
}
.dpc-cfg-profile-desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
}
.dpc-cfg-profile-arrow {
  font-size: 1.25rem;
  color: var(--profile-color, #0078A0);
  font-weight: 700;
}

/* === ÉTAPE 2 : LAYOUT === */
.dpc-cfg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1023px) {
  .dpc-cfg-layout { grid-template-columns: 1fr; }
}

/* === SLOTS === */
.dpc-cfg-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dpc-cfg-slot-card {
  background: #fff;
  border: 1.5px solid rgba(0,120,160,0.12);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.18s;
}
.dpc-cfg-slot-card:hover { border-color: #0078A0; }
.dpc-cfg-slot-card.has-selection {
  border-color: #0078A0;
  background: #F8FBFE;
}
.dpc-cfg-slot-label {
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dpc-cfg-slot-label::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #0078A0;
  border-radius: 1px;
}
.dpc-cfg-select-wrap {
  position: relative;
}
.dpc-cfg-component-select {
  width: 100%;
  padding: 0 1rem;
  height: 72px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.938rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: #0A1628;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230078A0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dpc-cfg-component-select:focus {
  outline: none;
  border-color: #0078A0;
  box-shadow: 0 0 0 3px rgba(0,120,160,0.1);
}
.dpc-cfg-component-select.selected {
  border-color: #0078A0;
  background-color: #F0FAFE;
}

/* Miniature du composant sélectionné */
.dpc-cfg-selected-preview {
  display: none;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  background: #F0FAFE;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.dpc-cfg-selected-preview.visible { display: flex; }
.dpc-cfg-selected-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(0,120,160,0.12);
}
.dpc-cfg-selected-preview .dpc-cfg-preview-info { flex: 1; }
.dpc-cfg-selected-preview .dpc-cfg-preview-name {
  font-size: 0.813rem;
  font-weight: 600;
  color: #0A1628;
}
.dpc-cfg-selected-preview .dpc-cfg-preview-sku {
  font-size: 0.688rem;
  color: #64748B;
  font-family: monospace;
}

/* Loading */
.dpc-cfg-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: #64748B;
  font-size: 0.875rem;
}
.dpc-cfg-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #E2E8F0;
  border-top-color: #0078A0;
  border-radius: 50%;
  animation: dpc-spin 0.8s linear infinite;
}
@keyframes dpc-spin { to { transform: rotate(360deg); } }

/* === RÉCAP STICKY === */
.dpc-cfg-summary-panel {
  background: #fff;
  border: 1.5px solid rgba(0,120,160,0.12);
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  box-shadow: 0 4px 20px rgba(0,120,160,0.08);
}
@media (max-width: 1023px) {
  .dpc-cfg-summary-panel { position: static; }
}
.dpc-cfg-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F0FAFE;
  min-width: 0;
}
.dpc-cfg-summary-header h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.938rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.dpc-cfg-summary-profile {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #E8F9FD;
  color: #0078A0;
  white-space: nowrap;
  flex-shrink: 0;
}
.dpc-cfg-summary-list { margin-bottom: 1.25rem; min-height: 100px; }
.dpc-cfg-summary-empty { font-size: 0.813rem; color: #94A3B8; text-align: center; padding: 1rem 0; }
.dpc-cfg-summary-item {
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 0.813rem;
  min-width: 0; /* permet aux enfants flex de rétrécir */
}
.dpc-cfg-summary-item:last-child { border-bottom: none; }
.dpc-cfg-summary-slot {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 70px;
  flex-shrink: 0;
}
.dpc-cfg-summary-name {
  font-weight: 600;
  color: #0A1628;
  flex: 1;
  min-width: 0; /* clé : permet le word-break dans un enfant flex */
  word-break: break-word;
  overflow-wrap: break-word;
}
.dpc-cfg-no-price {
  text-align: center;
  font-size: 0.75rem;
  color: #94A3B8;
  margin: 0.5rem 0 0;
}

/* === BOUTONS === */
.dpc-cfg-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0078A0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dpc-cfg-btn-primary:hover { background: #003C50; transform: translateY(-1px); }
.dpc-cfg-btn-primary:disabled { background: #CBD5E1; cursor: not-allowed; transform: none; }
.dpc-cfg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0078A0;
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.dpc-cfg-btn-secondary:hover { background: #003C50; color: #fff; }
.dpc-cfg-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #0078A0;
  border: 1.5px solid #0078A0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 1rem;
}
.dpc-cfg-btn-outline:hover { background: #E8F9FD; }

/* === ÉTAPE 3 : DEVIS === */
.dpc-cfg-quote-recap {
  background: #F8FBFE;
  border: 1.5px solid rgba(0,120,160,0.12);
  border-radius: 16px;
  padding: 1.5rem;
}
.dpc-cfg-quote-recap h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0078A0;
}
.dpc-cfg-recap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(0,120,160,0.08);
  align-items: start;
}
.dpc-cfg-recap-item:last-child { border-bottom: none; }
.dpc-cfg-recap-slot {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  padding-top: 2px;
  white-space: nowrap;
  min-width: 90px;
}
.dpc-cfg-recap-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0,120,160,0.1);
  padding: 3px;
  grid-row: 1 / 3;
  align-self: center;
}
.dpc-cfg-recap-name { font-size: 0.875rem; font-weight: 600; color: #0A1628; }
.dpc-cfg-recap-sku { font-size: 0.688rem; color: #94A3B8; font-family: monospace; }
.dpc-cfg-quote-form-wrap {
  background: #fff;
  border: 1.5px solid rgba(0,120,160,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,120,160,0.06);
}
.dpc-cfg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .dpc-cfg-form-row { grid-template-columns: 1fr; } }
.dpc-cfg-form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.dpc-cfg-form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0A1628;
}
.dpc-cfg-form-group label span { color: #DC2626; }
.dpc-cfg-form-group input,
.dpc-cfg-form-group textarea {
  padding: 0.688rem 0.875rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  font-size: 0.875rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0A1628;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dpc-cfg-form-group input:focus,
.dpc-cfg-form-group textarea:focus {
  outline: none;
  border-color: #0078A0;
  box-shadow: 0 0 0 3px rgba(0,120,160,0.1);
}
.dpc-cfg-form-group textarea { min-height: 100px; resize: vertical; }
.dpc-cfg-error {
  padding: 0.875rem 1rem;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 10px;
  font-size: 0.813rem;
  color: #DC2626;
  margin-top: 0.75rem;
}

/* === ÉTAPE 4 : SUCCÈS === */
.dpc-cfg-success {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 540px;
  margin: 0 auto;
}
.dpc-cfg-success-icon { font-size: 4rem; margin-bottom: 1rem; }
.dpc-cfg-success h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.dpc-cfg-success p { font-size: 1rem; color: #64748B; line-height: 1.7; margin-bottom: 2rem; }
.dpc-cfg-success-contact {
  background: #F0FAFE;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.dpc-cfg-success-contact p { margin: 0 0 0.75rem; font-size: 0.875rem; color: #64748B; }

/* === RESPONSIVE SLOTS === */
@media (max-width: 640px) {
  .dpc-cfg-component-select { height: 56px; font-size: 0.875rem; }
  .dpc-cfg-slot-card { padding: 1rem; }
}

/* ── Socket Picker ────────────────────────────────────────────── */
#dpc-socket-picker {
  margin-bottom: 16px;
}
.dpc-socket-picker-inner {
  background: #f0fafe;
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dpc-socket-picker-label {
  font-size: .875rem;
  font-weight: 600;
  color: #0A1628;
  white-space: nowrap;
}
.dpc-socket-picker-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dpc-socket-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #0078A0;
  background: #fff;
  color: #0078A0;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.dpc-socket-btn:hover {
  background: #e0f4fc;
}
.dpc-socket-btn.active {
  background: #0078A0;
  color: #fff;
}

/* ── Grille de cartes composants (remplace le select) ─────────────────── */
.dpc-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #0078A0 #f1f5f9;
}
.dpc-comp-grid::-webkit-scrollbar { width: 5px; }
.dpc-comp-grid::-webkit-scrollbar-thumb { background: #0078A0; border-radius: 3px; }

.dpc-comp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 8px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-align: center;
  position: relative;
  user-select: none;
}
.dpc-comp-card:hover {
  border-color: #0078A0;
  box-shadow: 0 2px 10px rgba(0,120,160,.10);
}
.dpc-comp-card.selected {
  border-color: #0078A0;
  background: #f0fafe;
  box-shadow: 0 0 0 3px rgba(0,120,160,.12);
}
.dpc-comp-card.selected::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 8px;
  font-size: .7rem;
  font-weight: 800;
  color: #0078A0;
}

.dpc-comp-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(0,120,160,.08);
}
.dpc-comp-card__no-img {
  width: 72px;
  height: 72px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #cbd5e1;
}
.dpc-comp-card__name {
  font-size: .72rem;
  font-weight: 600;
  color: #0A1628;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dpc-comp-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}
.dpc-comp-card__badge {
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(0,120,160,.08);
  color: #0078A0;
}
.dpc-comp-card__badge.ddr { background: rgba(124,58,237,.08); color: #7C3AED; }
.dpc-comp-card__badge.freq { background: rgba(16,185,129,.08); color: #059669; }

/* Collapsed state — affiche la carte sélectionnée compacte */
.dpc-comp-selected-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f0fafe;
  border: 1.5px solid #0078A0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.dpc-comp-selected-bar:hover { background: #e0f4fc; }
.dpc-comp-selected-bar.visible { display: flex; }
.dpc-comp-selected-bar img {
  width: 40px; height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  border: 1px solid rgba(0,120,160,.12);
}
.dpc-comp-selected-bar__info { flex: 1; min-width: 0; }
.dpc-comp-selected-bar__name {
  font-size: .8rem; font-weight: 600; color: #0A1628;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dpc-comp-selected-bar__meta { font-size: .7rem; color: #0078A0; margin-top: 1px; }
.dpc-comp-selected-bar__change {
  font-size: .72rem; color: #0078A0; font-weight: 600;
  white-space: nowrap; text-decoration: underline;
}
.dpc-comp-grid-wrap { }
.dpc-comp-grid-wrap.collapsed .dpc-comp-grid { display: none; }
.dpc-comp-grid-wrap.collapsed .dpc-comp-selected-bar { display: flex; }

@media (max-width: 600px) {
  .dpc-comp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 280px; }
  .dpc-comp-card__img, .dpc-comp-card__no-img { width: 56px; height: 56px; }
}

.dpc-comp-card__sub {
  font-size: .65rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.3;
}

/* ── Accordion slot header ──────────────────────────────────────────────── */
.dpc-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  transition: background .15s;
  user-select: none;
}
.dpc-slot-header:hover { background: #f8fafc; }
.dpc-slot-header-left  { display: flex; align-items: center; gap: 8px; }
.dpc-slot-header-right { display: flex; align-items: center; gap: 10px; }
.dpc-slot-label-text   { font-weight: 700; font-size: .9rem; color: #0A1628; }
.dpc-slot-count {
  font-size: .7rem; font-weight: 600;
  background: #e0f4fc; color: #0078A0;
  padding: 1px 7px; border-radius: 20px;
}
.dpc-slot-selected-preview {
  font-size: .75rem; font-weight: 600; color: #0078A0;
  background: #e0f4fc; padding: 2px 10px; border-radius: 20px;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dpc-slot-chevron { font-size: .8rem; color: #94a3b8; transition: transform .2s; }

.dpc-slot-body { overflow: hidden; }
.dpc-cfg-slot-card.dpc-slot-collapsed .dpc-slot-body {
  display: none;
}
.dpc-cfg-slot-card.dpc-slot-collapsed { padding-bottom: 0; }
.dpc-cfg-slot-card.dpc-slot-collapsed .dpc-slot-header {
  border-radius: 12px;
}

/* ── Bouton description ─────────────────────────────────────────────────── */
.dpc-comp-card__desc-btn {
  margin-top: 4px;
  font-size: .65rem;
  font-weight: 600;
  color: #0078A0;
  background: none;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.dpc-comp-card__desc-btn:hover { background: #e0f4fc; }

/* ── Modal description ──────────────────────────────────────────────────── */
.dpc-desc-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,.6);
  z-index: 99990;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.dpc-desc-modal.visible { display: flex; }
.dpc-desc-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.dpc-desc-close {
  position: absolute; top: 14px; right: 16px;
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 1rem; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.dpc-desc-close:hover { background: #e2e8f0; }
.dpc-desc-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dpc-desc-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 160px;
}
.dpc-desc-img {
  width: 160px; height: 160px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  background: #f8fafc;
  display: block;
}
.dpc-desc-zoom-btn {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(255,255,255,.9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.dpc-desc-zoom-btn:hover { background: #fff; }
.dpc-desc-info { flex: 1; min-width: 0; }
.dpc-desc-title { font-size: 1.05rem; font-weight: 700; color: #0A1628; margin: 0 0 4px; }
.dpc-desc-sub   { font-size: .8rem; color: #64748b; margin: 0 0 8px; }
.dpc-desc-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.dpc-desc-notes {
  font-size: .825rem; color: #334155; line-height: 1.6;
  background: #f8fafc; border-radius: 8px; padding: 10px 12px;
  border-left: 3px solid #0078A0;
  white-space: pre-wrap;
}

/* ── Lightbox zoom ──────────────────────────────────────────────────────── */
.dpc-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 100001;
  align-items: center;
  justify-content: center;
}
.dpc-lightbox.visible { display: flex; }
.dpc-lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.dpc-lightbox-close {
  position: fixed; top: 16px; right: 20px;
  background: rgba(255,255,255,.15);
  border: none; border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.2rem; color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dpc-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ── Responsive mobile/tablette ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .dpc-cfg-layout {
    flex-direction: column !important;
  }
  .dpc-cfg-summary-panel {
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 16px;
    overflow: hidden;
  }
  .dpc-comp-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    max-height: 300px;
  }
  .dpc-comp-card__img,
  .dpc-comp-card__no-img { width: 60px; height: 60px; }
  .dpc-desc-layout { flex-direction: column; align-items: center; }
  .dpc-desc-img-wrap, .dpc-desc-img { width: 120px; height: 120px; }
  .dpc-cfg-quote-recap, .dpc-cfg-quote-form-wrap {
    width: 100% !important;
  }
  .dpc-cfg-form-row { flex-direction: column !important; }
  .dpc-cfg-profiles {
    grid-template-columns: 1fr 1fr !important;
  }
  .dpc-slot-selected-preview { max-width: 100px; }
}
@media (max-width: 480px) {
  .dpc-comp-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 260px;
  }
  .dpc-comp-card { padding: 8px 5px 6px; }
  .dpc-comp-card__img,
  .dpc-comp-card__no-img { width: 52px; height: 52px; }
  .dpc-comp-card__name { font-size: .68rem; }
  .dpc-cfg-profiles {
    grid-template-columns: 1fr !important;
  }
  .dpc-cfg-header h2 { font-size: 1.2rem; }
  .dpc-cfg-step-num  { display: none; }
}

.dpc-desc-footer {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.dpc-desc-alltron-link {
  font-size: .78rem;
  color: #0078A0;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  transition: background .15s;
}
.dpc-desc-alltron-link:hover { background: #e0f4fc; }

/* ── Disclaimer disponibilité ───────────────────────────────────────────── */
.dpc-disclaimer-overlay {
  padding: 16px;
}
.dpc-disclaimer-box {
  background: #fff;
  border: 2px solid #FCD34D;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.dpc-disclaimer-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}
.dpc-disclaimer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0A1628;
  margin: 0 0 1rem;
}
.dpc-disclaimer-body {
  text-align: left;
  font-size: .875rem;
  color: #334155;
  line-height: 1.6;
  background: #FFFBEB;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.dpc-disclaimer-body p {
  margin: 0 0 .75rem;
}
.dpc-disclaimer-body ul {
  margin: 0;
  padding-left: 1.25rem;
}
.dpc-disclaimer-body ul li {
  margin-bottom: .4rem;
}
.dpc-disclaimer-accept {
  display: inline-block;
  background: #0A1628;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: .75rem;
}
.dpc-disclaimer-accept:hover {
  background: #0078A0;
  transform: translateY(-1px);
}
.dpc-disclaimer-sub {
  font-size: .72rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .dpc-disclaimer-box { padding: 1.25rem; }
  .dpc-disclaimer-title { font-size: 1.1rem; }
  .dpc-disclaimer-accept { width: 100%; font-size: .9rem; }
}

/* ── Notice spam confirmation ───────────────────────────────────────────── */
.dpc-cfg-spam-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  text-align: left;
  font-size: .875rem;
  color: #334155;
  line-height: 1.6;
}
.dpc-cfg-spam-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   v1.8.0 — Honeypot + consentement
   ============================================================ */
/* Honeypot : hors écran (PAS display:none, certains bots l'ignorent) */
.dpc-cfg-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dpc-cfg-consent { margin: 16px 0 20px; }
.dpc-cfg-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.5;
  color: #475569;
}
.dpc-cfg-consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #0078A0;
  cursor: pointer;
}
.dpc-cfg-consent-label span span { color: #dc2626; }

/* ============================================================
   v1.8.0 — Optimisations natel / tablette
   ============================================================ */

/* Barre CTA fixe en bas d'écran pendant l'étape 2 (mobile/tablette).
   Masquée sur desktop (le panneau sticky suffit). Cachée automatiquement
   avec l'étape 2 car elle est à l'intérieur de #dpc-cfg-step-2. */
.dpc-cfg-mobile-cta { display: none; }
@media (max-width: 1023px) {
  .dpc-cfg-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1.5px solid rgba(0,120,160,0.15);
    box-shadow: 0 -4px 20px rgba(0,120,160,0.10);
    padding: 10px 16px;
    /* Encoche iPhone : ne pas coller au bord bas */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .dpc-cfg-mobile-cta-count {
    font-size: 0.813rem;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    /* Compressible avec ellipse : le bouton garde la priorité */
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dpc-cfg-mobile-cta-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 44px;
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
  }
  /* Réserver la place de la barre pour ne pas masquer le bas de page */
  #dpc-cfg-step-2 { padding-bottom: 84px; }
}

@media (max-width: 768px) {
  /* iOS Safari zoome automatiquement sur les champs < 16px : on force 16px */
  .dpc-cfg-form-group input,
  .dpc-cfg-form-group textarea {
    font-size: 16px;
    padding: 0.75rem 0.875rem;
  }

  /* Cibles tactiles ≥ 40px (socket/DDR/fréquence, retour, détails) */
  .dpc-socket-btn {
    min-height: 40px;
    padding: 8px 16px;
  }
  .dpc-cfg-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
  }
  .dpc-comp-card__desc-btn,
  [class*="desc-btn"] {
    min-height: 36px;
    padding: 6px 10px;
  }
}

/* Fix "grid blowout" : sans min-width:0, la colonne 1fr s'élargit au
   min-content de son contenu (rangées de filtres, noms longs) et fait
   déborder toute la page sur petit écran. */
.dpc-cfg-layout > * { min-width: 0; }
.dpc-cfg-slots-wrap,
.dpc-cfg-summary-panel { min-width: 0; }

@media (max-width: 480px) {
  /* Filtres socket / DDR / fréquence : passer en colonne pleine largeur
     pour que les boutons puissent se répartir sur plusieurs lignes */
  .dpc-socket-picker-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dpc-socket-picker-label { margin-left: 0 !important; }
  .dpc-socket-picker-btns { width: 100%; }
}

/* ==================================================================
   v1.10.0 — APERÇU VISUEL DE LA CONFIGURATION (photos réelles)
   ================================================================== */
.dpc-cfg-preview-btn {
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 10px;
  border: 1.5px solid #0078A0;
  border-radius: 12px;
  background: #fff;
  color: #0078A0;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.dpc-cfg-preview-btn:hover { background: #E8F6FB; }
.dpc-cfg-preview-btn:active { transform: scale(.98); }

.dpc-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}
.dpc-preview-modal.visible { display: flex; }
.dpc-preview-box {
  background: #F8FBFD;
  border-radius: 20px;
  width: min(1060px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 26px 28px 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
  animation: dpcPvBoxIn .3s ease;
}
@keyframes dpcPvBoxIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dpc-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #EEF2F7;
  color: #334155;
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
}
.dpc-preview-close:hover { background: #E2E8F0; }
.dpc-preview-head h3 { margin: 0 0 4px; font-size: 1.25rem; color: #0F172A; }
.dpc-preview-head p  { margin: 0 0 18px; font-size: .85rem; color: #64748B; }

.dpc-preview-stage {
  position: relative;
  display: grid;
  grid-template-columns: 225px 1fr 225px;
  gap: 14px;
  align-items: center;
}
.dpc-pv-center { grid-column: 2; padding: 0 6px; }
.dpc-pv-center svg { width: 100%; height: auto; display: block; }
.dpc-pv-col   { display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.dpc-pv-col-l { grid-column: 1; align-items: stretch; }
.dpc-pv-col-r { grid-column: 3; align-items: stretch; }
.dpc-pv-row-b {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  z-index: 2;
}
.dpc-pv-row-b .dpc-pv-card { width: 225px; }

.dpc-pv-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 9px 11px;
  animation: dpcPvCardIn .45s ease both;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
@keyframes dpcPvCardIn { from { opacity: 0; transform: translateY(10px); } }
.dpc-pv-card-media {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dpc-pv-card-media:has(img) { cursor: zoom-in; position: relative; transition: border-color .15s, box-shadow .15s; }
.dpc-pv-card-media:has(img):hover { border-color: #0078A0; box-shadow: 0 0 0 3px rgba(0,120,160,.15); }
.dpc-pv-card-media:has(img):hover::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.55);
  font-size: 1.1rem;
}
.dpc-pv-card-media img { width: 100%; height: 100%; object-fit: contain; }
.dpc-pv-card-fallback  { font-size: 1.5rem; }
.dpc-pv-card-txt  { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dpc-pv-card-slot {
  font-size: .62rem;
  font-weight: 700;
  color: #0078A0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dpc-pv-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dpc-pv-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.dpc-pv-line {
  fill: none;
  stroke: #0078A0;
  stroke-width: 1.6;
  stroke-opacity: .55;
}
.dpc-pv-dot {
  fill: #0078A0;
  animation: dpcPvPulse 1.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes dpcPvPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%       { opacity: .45; transform: scale(1.45); }
}

.dpc-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.dpc-preview-note {
  margin: 0;
  font-size: .78rem;
  color: #475569;
  background: #EFF8FC;
  border: 1px solid #CDE9F4;
  border-radius: 10px;
  padding: 9px 13px;
  line-height: 1.45;
  max-width: 640px;
}
.dpc-preview-note strong { color: #005A7A; }
.dpc-preview-actions .dpc-cfg-btn-primary { width: auto; padding-left: 26px; padding-right: 26px; }

@media (max-width: 760px) {
  /* Mobile : silhouette en haut, puis les cartes en grille — pas de lignes */
  .dpc-preview-stage { display: flex; flex-direction: column; gap: 12px; }
  .dpc-pv-center  { order: -1; width: 100%; max-width: 300px; margin: 0 auto; }
  .dpc-pv-col, .dpc-pv-row-b {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
  }
  .dpc-pv-row-b .dpc-pv-card { width: auto; }
  .dpc-pv-card { animation: none; opacity: 1; }
  .dpc-pv-card-media { width: 48px; height: 48px; }
  .dpc-pv-overlay { display: none; }
  .dpc-preview-box { padding: 18px 14px 14px; max-height: 94vh; }
  .dpc-preview-head h3 { font-size: 1.05rem; padding-right: 40px; }
  .dpc-preview-actions { flex-direction: column; align-items: stretch; }
  .dpc-preview-actions .dpc-cfg-btn-primary { width: 100%; }
}
@media (max-width: 440px) {
  /* Très petits écrans : une seule colonne de cartes */
  .dpc-pv-col, .dpc-pv-row-b { grid-template-columns: 1fr; }
}

/* ==================================================================
   v1.11.0 — QUANTITÉS (ventilateurs, RAM)
   ================================================================== */
.dpc-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1.5px solid #0078A0;
  border-radius: 10px;
  padding: 1px;
  flex-shrink: 0;
}
.dpc-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #0078A0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.dpc-qty-btn:hover  { background: #E8F6FB; }
.dpc-qty-btn:active { background: #D3EEF8; }
.dpc-qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: #0F172A;
}
.dpc-qty-tag {
  display: inline-block;
  background: #E8F6FB;
  color: #005A7A;
  border-radius: 6px;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: 1px;
}
.dpc-pv-card-media { position: relative; }
.dpc-pv-qty {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #0078A0;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 1px 6px;
  pointer-events: none;
}
@media (max-width: 560px) {
  .dpc-qty-btn { width: 34px; height: 34px; }   /* cible tactile plus grande */
  .dpc-slot-header-right { gap: 6px; }
  .dpc-slot-selected-preview { max-width: 90px; }
}
