/* ─────────────────────────────────────────────────────────────────────────────
   UNIVEA POSTER — Affiche Carte Ville & Géographique (City Map)
   Feuille de styles dédiée haute finition, épurée & ultra responsive
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root,
#customizer-root,
.univea-modal-container {
  --uvp-primary: #50725a;
  --uvp-primary-hover: #405c48;
  --uvp-primary-light: #f0fdf4;
  --uvp-accent: #50725a;
  --uvp-text-main: #0f172a;
  --uvp-text-muted: #64748b;
  --uvp-border: #e2e8f0;
  --uvp-focus-ring: rgba(80, 114, 90, 0.25);
}

/* Structure globale du personnalisateur */
#customizer-root {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  background: #ffffff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--uvp-text-main);
}

.uvp-container {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ── Section Prévisualisation Gauche ── */
.uvp-preview-section {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  position: relative;
  user-select: none;
}

.uvp-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100% - 60px);
  aspect-ratio: 30 / 40;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
  transition: max-width 0.25s ease, aspect-ratio 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  touch-action: none;
}

.uvp-canvas-wrapper.is-landscape {
  max-width: 580px;
}

.uvp-canvas-wrapper:active {
  cursor: grabbing;
}

.uvp-canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Dock externe de Zoom Cartographique (déplacé hors du rendu de l'affiche, à droite) ── */
.uvp-map-zoom-dock {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 10px 8px;
  z-index: 25;
  user-select: none;
  transition: all 0.2s ease;
}

.uvp-zoom-dock-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.uvp-zoom-dock-icon {
  font-size: 13px;
  line-height: 1;
}

.uvp-zoom-dock-text {
  font-size: 8.5px;
  font-weight: 800;
  color: #50725a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.uvp-map-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
}

.uvp-map-zoom-btn:hover {
  background: #50725a;
  color: #ffffff;
  border-color: #50725a;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(80, 114, 90, 0.25);
}

.uvp-map-zoom-btn:active {
  transform: scale(0.94);
}

.uvp-map-zoom-slider-wrap {
  width: 32px;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  box-sizing: border-box;
}

.uvp-map-zoom-slider-wrap input[type="range"] {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 16px;
  height: 84px;
  accent-color: #50725a;
  cursor: pointer;
  margin: 0;
}

.uvp-zoom-level-pill {
  font-size: 10px;
  font-weight: 800;
  color: #50725a;
  background: #eaf3ed;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.2;
  border: 1px solid #cce3d4;
  margin-top: 1px;
}

/* ── Barre de sélection des modes d'aperçu (2D, 3D, Mockups Murs) ── */
.uvp-view-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.uvp-view-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.uvp-view-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.uvp-view-tab.is-active {
  background: #50725a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(80, 114, 90, 0.35);
}

/* ── Cadres physiques 3D & 2D Haute Définition (Harmonisés 3 customizers) ── */
.frame-none {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.25) !important;
}

.frame-oak {
  border: 12px solid #deb887 !important;
  border-image: linear-gradient(135deg, #f3e5cb, #d4ad7a, #e8d3b2) 1 !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35) !important;
}

.frame-black-alu {
  border: 10px solid #141414 !important;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.5) !important;
}

.frame-black-wood {
  border: 12px solid #1c1917 !important;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.48) !important;
}

.frame-white {
  border: 12px solid #f8fafc !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35) !important;
}

.frame-wood-natural {
  border: 12px solid #d4b58e !important;
  border-image: linear-gradient(135deg, #e8d0b5, #c9a47a, #dfc3a3) 1 !important;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.42) !important;
}

.frame-silver-alu {
  border: 10px solid #94a3b8 !important;
  border-image: linear-gradient(135deg, #e2e8f0, #94a3b8, #cbd5e1) 1 !important;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.45) !important;
}

.frame-alu-chene {
  border: 10px solid #dfbe91 !important;
  border-image: linear-gradient(135deg, #f5e8d3, #caa46c, #ecdabb) 1 !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.38) !important;
}

/* ── Rendu Carte Cadeau Calligraphique en direct ── */
.uvp-gift-card-preview {
  margin-top: 14px;
  padding: 20px 22px;
  background: #f7f2ea;
  border: 1.5px solid #d4b58e;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(212, 181, 142, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.uvp-gift-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 181, 142, 0.5);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.uvp-gift-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #8e6538;
}

.uvp-gift-card-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Vue 3D Tilt ── */
.uvp-canvas-wrapper.is-3d-active {
  cursor: grab;
  will-change: transform;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}

.uvp-3d-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  z-index: 2;
}

.uvp-3d-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  z-index: 3;
}

/* ── Scène de Mockup In-Situ ── */
.uvp-room-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.uvp-room-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uvp-room-poster-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.uvp-room-poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.uvp-room-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Section Contrôles Droite ── */
.uvp-controls-section {
  width: 440px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid var(--uvp-border);
  box-sizing: border-box;
  overflow-x: hidden;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.uvp-controls-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

.uvp-controls-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--uvp-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Titres & Textes */
.uvp-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--uvp-text-main);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.uvp-section-desc {
  font-size: 12px;
  color: var(--uvp-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Formulaires & Inputs */
.uvp-form-group {
  margin-bottom: 16px;
}

.uvp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--uvp-text-main);
  margin-bottom: 6px;
}

.uvp-label-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--uvp-primary);
  background: var(--uvp-primary-light);
  padding: 2px 6px;
  border-radius: 6px;
}

.uvp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--uvp-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--uvp-text-main);
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.uvp-input:focus {
  border-color: var(--uvp-primary);
  box-shadow: 0 0 0 3px var(--uvp-focus-ring);
}

/* Boutons */
.uvp-btn-primary {
  background: var(--uvp-primary);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(80, 114, 90, 0.25);
}

.uvp-btn-primary:hover {
  background: var(--uvp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(80, 114, 90, 0.35);
}

.uvp-btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uvp-btn-secondary:hover {
  background: #e2e8f0;
}

/* Chips & Sélecteurs */
.uvp-chip {
  background: #f8fafc;
  border: 1.5px solid var(--uvp-border);
  color: var(--uvp-text-main);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.uvp-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.uvp-chip.is-active {
  background: var(--uvp-primary-light);
  border-color: var(--uvp-primary);
  color: var(--uvp-primary);
  box-shadow: 0 2px 6px rgba(80, 114, 90, 0.15);
}

/* Filtres en pilules */
.uvp-filter-pill {
  border: 1px solid var(--uvp-border);
  background: #ffffff;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uvp-filter-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.uvp-filter-pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Grille des Presets */
.uvp-preset-card {
  border: 1.5px solid var(--uvp-border);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uvp-preset-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.uvp-preset-card.is-active {
  border-color: var(--uvp-primary);
  box-shadow: 0 0 0 2px var(--uvp-primary);
}

.uvp-preset-preview {
  width: 100%;
  aspect-ratio: 50 / 70;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.uvp-preset-shape-icon {
  font-size: 20px;
}

.uvp-preset-photo-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 4px;
  border-radius: 4px;
}

.uvp-preset-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
  text-align: center;
}

.uvp-preset-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #50725a;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Destinations & Villes chips */
.uvp-dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Studio Controls Modernes (Segmented, Formes SVG, Palettes, Pastilles & Tiroirs) ── */
.uvp-dual-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.uvp-card-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.uvp-pill-value {
  font-size: 11px;
  font-weight: 700;
  color: #50725a;
  background: #eaf3ed;
  padding: 2px 8px;
  border-radius: 999px;
}

.uvp-link-btn {
  border: none;
  background: transparent;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--uvp-primary);
  cursor: pointer;
  font-family: inherit;
}

.uvp-link-btn:hover {
  text-decoration: underline;
}

/* Segmented Control */
.uvp-segmented {
  display: flex;
  align-items: stretch;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
}

.uvp-segmented-sm {
  padding: 2px;
  border-radius: 8px;
}

.uvp-seg-btn {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.uvp-segmented-sm .uvp-seg-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
}

.uvp-seg-btn:hover {
  color: #0f172a;
}

.uvp-seg-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 1px rgba(15, 23, 42, 0.04);
}

.uvp-border-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

/* Grille 4 Formes SVG */
.uvp-shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.uvp-shape-card {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  border-radius: 12px;
  padding: 9px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.uvp-shape-card:hover {
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.uvp-shape-card.is-active {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  color: var(--uvp-primary);
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-shape-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.uvp-shape-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

/* Cartes de Palettes Curatées */
.uvp-palette-grid {
  display: grid;
  gap: 7px;
}

.uvp-palette-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.uvp-palette-grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

.uvp-palette-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.uvp-palette-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.uvp-palette-card.is-active {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uvp-palette-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.uvp-palette-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Pastilles Couleurs Pures + Tooltip au survol */
.uvp-swatch-group {
  margin-bottom: 12px;
}

.uvp-swatch-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
}

.uvp-swatch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.uvp-swatch {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.uvp-swatch:hover,
.uvp-swatch:focus-visible {
  transform: scale(1.1);
  outline: none;
}

.uvp-swatch.is-active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--uvp-primary) !important;
}

.uvp-swatch-picker {
  background: conic-gradient(from 0deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uvp-swatch-picker input[type="color"] {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.uvp-swatch[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.uvp-swatch[data-tooltip]:hover::after,
.uvp-swatch[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tiroirs Modernes (<details class="uvp-disclosure">) */
details.uvp-disclosure {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 12px;
}

details.uvp-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  border-radius: 11px;
  transition: background-color 0.15s ease;
}

details.uvp-disclosure > summary::-webkit-details-marker {
  display: none;
}

details.uvp-disclosure > summary:hover {
  background: #f8fafc;
}

details.uvp-disclosure > summary::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  color: #475569;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

details.uvp-disclosure[open] > summary::before {
  rotate: 0deg;
}

@media (prefers-reduced-motion: no-preference) {
  details.uvp-disclosure > summary::before {
    transition: rotate 0.2s ease;
  }
}

.uvp-disclosure-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.uvp-disclosure-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

details.uvp-disclosure::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

details.uvp-disclosure:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  details.uvp-disclosure::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.uvp-disclosure-body {
  padding: 12px 14px 14px;
  border-top: 1px solid #f1f5f9;
}

/* Cartes de Duos Typographiques (Étape 3) */
.uvp-typo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.uvp-typo-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.uvp-typo-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.uvp-typo-card.is-active {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-typo-sample {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.uvp-typo-sub {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #64748b;
  margin-bottom: 3px;
}

.uvp-typo-name {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

/* ── Étape 5 Desktop : panneau élargi & aperçu épuré sur fond blanc ── */
@media (min-width: 861px) {
  .uvp-container.is-step-5 .uvp-controls-section {
    width: clamp(560px, 57%, 730px);
  }
  .uvp-container.is-step-5 .uvp-preview-section {
    background: #ffffff;
    background-image: none;
    padding: 16px 18px;
  }
  .uvp-container.is-step-5 .uvp-preview-section .uvp-map-zoom-dock {
    display: none;
  }
  .uvp-container.is-step-5 .uvp-preview-section .uvp-canvas-wrapper {
    max-width: 340px;
    max-height: calc(100% - 54px);
  }
  .uvp-container.is-step-5 .uvp-preview-section .uvp-canvas-wrapper.is-landscape {
    max-width: 410px;
  }
  .uvp-container.is-step-5 .uvp-preview-section .uvp-view-selector {
    margin-top: 10px;
    padding: 4px;
    gap: 4px;
  }
  .uvp-container.is-step-5 .uvp-preview-section .uvp-view-tab {
    padding: 5px 9px;
    font-size: 10.5px;
  }
}

/* ── Étape 5 : Grille 4 colonnes Formats, Cadres compacts, Options & Carte Cadeau ── */
.uvp-format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.uvp-format-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 6px 11px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.uvp-format-tile:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.uvp-format-tile.is-selected {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-format-badge {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: #e2e8f0;
  color: #334155;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.uvp-format-badge.is-popular {
  background: var(--uvp-primary);
  color: #ffffff;
}

.uvp-format-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.uvp-format-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.1;
}

.uvp-format-price-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.uvp-format-price {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--uvp-primary);
  white-space: nowrap;
}

.uvp-format-compare {
  font-size: 10px;
  color: #94a3b8;
  text-decoration: line-through;
  white-space: nowrap;
}

.uvp-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.uvp-frame-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.uvp-frame-tile:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.uvp-frame-tile.is-selected {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-frame-swatch {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}

.uvp-frame-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.uvp-frame-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.uvp-frame-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
}

.uvp-frame-price {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.uvp-frame-price.is-paid {
  color: var(--uvp-primary);
  font-weight: 800;
}

.uvp-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.uvp-addon-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.uvp-addon-tile:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.uvp-addon-tile.is-active {
  border-color: var(--uvp-primary);
  background: #f4f9f5;
  box-shadow: 0 0 0 1px var(--uvp-primary);
}

.uvp-addon-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uvp-addon-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uvp-addon-tile.is-active .uvp-addon-icon {
  background: #dcfce7;
  color: var(--uvp-primary);
}

.uvp-addon-price {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 999px;
}

.uvp-addon-check {
  margin-left: auto;
  width: 17px;
  height: 17px;
  accent-color: var(--uvp-primary);
  cursor: pointer;
}

.uvp-addon-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.uvp-addon-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

/* Zone Carte Cadeau & Rendu en direct assorti à l'affiche */
.uvp-gift-message-box {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.uvp-gift-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.uvp-gift-card-live {
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.uvp-gift-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.uvp-gift-card-inner {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.uvp-gift-card-city {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.uvp-gift-card-live-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.uvp-gift-card-divider {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  opacity: 0.7;
}

.uvp-gift-card-live-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.uvp-gift-card-footer {
  margin-top: auto;
  padding-top: 6px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* Responsive Mobile */
@media (max-width: 860px) {
  .uvp-container {
    flex-direction: column;
  }
  .uvp-preview-section {
    height: 44vh;
    padding: 12px;
  }
  .uvp-canvas-wrapper {
    max-width: 220px;
  }
  .uvp-controls-section {
    width: 100%;
    flex: 1;
  }
  .uvp-controls-scroll {
    padding: 16px;
  }
  .uvp-map-zoom-dock {
    right: 8px;
    transform: translateY(-50%) scale(0.85);
    transform-origin: right center;
  }
  .uvp-dual-controls {
    grid-template-columns: 1fr;
  }
  .uvp-shape-grid {
    gap: 6px;
  }
  .uvp-shape-card {
    padding: 7px 4px;
  }
  .uvp-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .uvp-frame-grid,
  .uvp-addons-grid,
  .uvp-gift-editor-grid {
    grid-template-columns: 1fr;
  }
}
