/** Shopify CDN: Minification failed

Line 47:0 All "@import" rules must come first

**/
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; 
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation !important; /* Permet le zoom et le scroll, bloque juste le double-tap */
}

/* 1. Importation de la police au début du fichier CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* 2. Application globale sur le customizer */
.modern-customizer {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
  background: var(--gray-50);
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.modern-customizer button, 
.modern-customizer input, 
.modern-customizer textarea, 
.modern-customizer select,
.modern-customizer span:not(.font-name-display),
.modern-customizer h2,
.modern-customizer h3,
.modern-customizer h4,
#customizationDrawer,
.picker-modal {
  font-family: 'Montserrat', sans-serif !important;
}


.customizer-home-button {
  position: absolute;
  bottom: 20px;   
  left: 20px;      
  z-index: 999;
  display: inline-block;
  text-decoration: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.customizer-home-button img.home-home-icon{
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .customizer-home-button {
    display: none !important;
  }
}

.customizer-home-button:hover {
  transform: translateY(-6px) scale(1.06);
  filter: brightness(1.15);
}

@media (min-width: 1025px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
  
  .modern-customizer {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .customizer-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 100vh;
  }
  
  .mobile-action-bar,
  .mobile-view-navigator,
  .mobile-cta-container {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .customizer-grid {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
    overflow: hidden;
  }
  
  .customization-sidebar {
    display: none !important;
  }

  .product-preview-section {
    flex: 1;
    min-height: 0;
  }
}

@media (min-width: 1025px) {
  .product-preview-section {
    height: 100vh;
  }
}

@media (max-width: 1024px) {
  .product-preview-section {
    min-height: 50vh;
    height: auto;
    padding: 10px 16px;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .product-preview-section {
    min-height: 45vh;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .product-preview-section {
    min-height: 42vh;
    padding: 6px 10px;
  }
}

.preview-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.preview-controls > * {
  pointer-events: auto;
}

.view-navigator.desktop-only {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  top: 32px;
  left: 32px;
  z-index: 20;
}

@media (max-width: 1024px) {
  .view-navigator.desktop-only {
    display: none !important;
  }
}

  .mobile-view-navigator::-webkit-scrollbar {
    display: none;
  }

.view-button,
.view-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  width: auto;
  height: auto;
  min-width: 90px;
}

.view-button:hover,
.view-pill:hover {
  transform: translateY(-2px);
}

.view-button.active,
.view-pill.active {
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.view-thumb {
  width: 60px;
  height: 75px;
  border-radius: 12px;
  background-color: #f8fafc;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.view-button.active .view-thumb,
.view-pill.active .view-thumb {
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .view-thumb {
    width: 52px;
    height: 65px;
  }
}

@media (max-width: 480px) {
  .view-thumb {
    width: 48px;
    height: 60px;
  }
}

.view-label {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-align: center;
  max-width: 70px;
  word-break: break-word;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
}

.view-button.active .view-label,
.view-pill.active .view-label {
  color: #ffffff;
  font-weight: 800;
}

/* Mobile view-pill spécial (couleurs / icônes) */
@media (max-width: 1024px) {
  .view-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f4c491;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }
  
  .view-pill svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
  }
  
  .view-pill:active {
    transform: scale(0.97);
  }
  
  .view-pill.active {
    background: #e89335;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  
  .view-pill.active svg {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .mobile-view-navigator {
    padding: 14px 14px 10px 14px;
    gap: 10px;
  }

  .view-pill {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .view-pill svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .mobile-view-navigator {
    padding: 12px 12px 8px 12px;
    gap: 8px;
  }
  
  .view-pill {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.view-button,
.view-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 8px 10px;
  border-radius: 18px;
  border: 1px solid #fcb15c;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  height: auto;
}

.view-button:hover,
.view-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.view-button.active,
.view-pill.active {
  color: white;
}

.view-thumb {
  width: 56px;
  height: 70px;
  border-radius: 12px;
  background-color: #f8fafc;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.view-button.active .view-thumb,
.view-pill.active .view-thumb {
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .view-thumb {
    width: 48px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .view-thumb {
    width: 44px;
    height: 54px;
  }
}

.view-label {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  max-width: 60px;
  word-break: break-word;
}

.view-button.active .view-label,
.view-pill.active .view-label {
  color: #ffffff;
  font-weight: 800;
}

.mobile-technique-section {
  display: none;
}

@media (max-width: 1024px){
  .product-preview-section{
    position: relative !important;
    padding-top: 200px !important;
  }

  .mobile-technique-section{
    position: absolute !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    align-items: center !important;
    width: calc(100% - 110px) !important; 
    max-width: 520px;
    margin: 0 !important;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
}

@media (max-width: 480px){
  .product-preview-section{ padding-top: 150px !important; }
  .mobile-technique-section{
    top: 12px !important;
    width: calc(100% - 96px) !important;
    max-width: 420px;
  }
}

.mobile-technique-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background:rgba(20, 17, 14, 0.08);
  border: 2px #FFFFFF00;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color:rgb(0, 0, 0);
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 150px;
  max-width: 200px;
  min-height: 48px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mobile-technique-btn svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  flex-shrink: 0;
}

.mobile-technique-btn span {
  display: inline-block;
}

.mobile-technique-btn:active {
  transform: scale(0.97);
}

.mobile-technique-btn.active {
  background: #ffffff !important;      
  color: #333333 !important;           
  border: 2px solid #fcb15c !important; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mobile-technique-btn.active svg {
  opacity: 1;
}

.mobile-technique-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .mobile-technique-btn {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 140px;
    max-width: 180px;
    min-height: 44px;
  }
  
  .mobile-technique-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .mobile-technique-btn {
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
    min-width: 130px;
    max-width: 160px;
    min-height: 42px;
  }
  
  .mobile-technique-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .mobile-technique-btn {
    padding: 9px 12px;
    font-size: 11px;
    gap: 5px;
    min-width: 120px;
    max-width: 140px;
    min-height: 40px;
  }
}

/* Technique switch : pas de contour/bordure */
.mobile-technique-section{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Si le contour vient des boutons / focus */
.mobile-technique-section .technique-pill,
.mobile-technique-section button{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Supprime le ring au focus (mobile + desktop) */
.mobile-technique-section .technique-pill:focus,
.mobile-technique-section .technique-pill:focus-visible,
.mobile-technique-section button:focus,
.mobile-technique-section button:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}


.zoom-controls {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Desktop Zoom */
@media (min-width: 1025px) {
  .zoom-controls {
    top: 24px;
    right: 24px;
  }
}

/* Tablet & Mobile Zoom */
@media (max-width: 1024px) {
  .zoom-controls {
    top: 20px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .zoom-slider,
  #zoomReset {
    display: none;
  }
}

@media (max-width: 768px) {
  .zoom-controls {
    top: 16px;
    right: 16px;
    gap: 8px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .zoom-controls {
    padding: 6px;
    gap: 6px;
  }
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-600);
}

@media (max-width: 1024px) {
  .zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .zoom-btn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .zoom-btn {
    width: 30px;
    height: 30px;
  }
  
  .zoom-btn svg {
    width: 14px;
    height: 14px;
  }
}

.zoom-btn:hover {
  background: #fcb15c;
  color: white;
  transform: scale(1.05);
}

.zoom-slider {
  width: 100px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fcb15c;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.product-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none !important; 
  overscroll-behavior: none;     
  z-index: 1;
  padding-bottom: 0; 
}

@media (max-width: 1024px) {
  .product-canvas {
    padding-bottom: 0; 
    touch-action: none !important;
    overflow: hidden !important;
  }

  .product-preview-section {
    overflow: hidden !important;
    z-index: 1 !important;
  }
}

.canvas-content {
  position: relative;
  transform-origin: 0 0 !important;
  margin: 0 auto;
  z-index: 1;
  touch-action: none !important;
}

/* --- CORRECTIF VUE PC --- */
@media (min-width: 1025px) {
  /* 1. On annule le centrage du parent pour que le JS puisse travailler */
  .product-canvas, #productCanvas {
    display: block !important;
    text-align: left !important;
  }

  /* 2. On configure l'élément pour qu'il soit libre de bouger via JS */
  .canvas-content {
    width: clamp(400px, 50vh, 600px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform-origin: 0 0 !important;
  }
}

/* Tablet Canvas */
@media (min-width: 769px) and (max-width: 1024px) {
  .canvas-content {
    width: min(70vw, 450px);
    height: min(60vh, 550px);
  }
}

@media (max-width: 768px) {
  .canvas-content {
    width: 90vw;
    max-width: 400px;
    height: 55dvh; 
    max-height: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .canvas-content {
    width: min(90vw, 340px);
    height: min(60vh, 420px);
  }
}

@media (max-width: 360px) {
  .canvas-content {
    width: 95vw;
    height: min(58vh, 380px);
  }
}

.product-view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center; 
  justify-content: center;
  z-index: 1;
  overflow: hidden; 
}

.product-view > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
  pointer-events: none;
}

.product-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  overflow: visible;
  border-radius: 20px;
  transition: none;
  pointer-events: none;
}

.design-area {
  position: relative;
  border: 2px solid #fcb15c;
  background: transparent;
  border-radius: 0;

  pointer-events: none;
  z-index: 50;
  isolation: isolate;
}

.design-area > * {
  pointer-events: auto;
}

.customization-sidebar {
  background: white;
  border-left: 1px solid var(--gray-200);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1025px) {
  .customization-sidebar {
    height: 100vh;
  }
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  #landscape-warning {
    display: flex !important; /* Ici on met !important car on VEUT que ce soit prioritaire en paysage */
  }
}

.customizer-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

.product-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.product-selector-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.technique-section {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.section-title {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.technique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.technique-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.technique-card:hover,
.technique-card.active {
  border-color: #fcb15c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.technique-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.technique-card.active .technique-icon {
  background: rgba(255, 255, 255, 0.2);
}

.technique-info h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.technique-info p {
  font-size: 12px;
  opacity: 0.8;
}

.technique-description {
    padding: 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
    font-weight: 400;
}

.quick-actions-section {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center; /* Centre les colonnes si la largeur totale est limitée */
  width: 100%;             /* S'assure que la grille prend toute la largeur disponible */
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centre horizontalement le contenu */
  justify-content: center;  /* Centre verticalement le contenu */
  gap: 8px;                 /* Espace uniforme entre l'icône et le texte  */
  padding: 16px 8px;        /* Réduction légère du padding pour mieux tenir sur 3 colonnes  */
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Paramètres du texte */
  text-align: center;       /* Aligne le texte au centre si il fait plusieurs lignes */
  font-size: 12px;
  font-weight: 500;         /* Un peu plus épais pour la lisibilité */
  color: var(--gray-700);
  min-height: 80px;         /* Force une hauteur identique pour toutes les cartes */
}

.action-card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;           /* Empêche l'icône de s'écraser si le texte est long */
}

.action-card:hover {
  border-color: #fcb15c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-card span {
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    font-size: 13px;
    font-weight: 400;
}

.quick-actions-grid[data-active-technique="broderie"] .action-card[data-technique*="impression"]:not([data-technique*="broderie"]) {
  display: none;
}

.color-section {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.selected-color-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.color-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow);
}

.color-name {
font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    text-transform: capitalize;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow);
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.color-swatch.active {
  border-color: #fcb15c;
  transform: scale(1.15);
}

.color-swatch.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sizes-section {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.size-summary {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.summary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.summary-item .qty {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.final-actions {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: white;
  padding: 24px;
}

.add-to-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: -webkit-linear-gradient(186deg,#757575,#5e5e5e);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0#drawerTitle3s ease;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: -webkit-linear-gradient(186deg,#e89335,#ffb561);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.add-to-cart-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.add-to-cart-btn.has-selection {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.selection-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
  font-size: 14px;
}

.note-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background: none;
    border: none;
    color: rgb(63, 63, 63);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.note-btn:hover {
  color: #fcb15c;
  transform: translateX(4px);
}

.note-block {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.note-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.note-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: white;
}

.note-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.note-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.btn-save, .btn-cancel {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save {
  background:  #ebb272;
  color: white;
}

.btn-save:hover {
  background: #ebb272;
}

.btn-cancel {
  background: white;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}

.btn-cancel:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

/* Classe utilitaire : masquer sur desktop */
.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-only {
    display: block !important;
  }
  
  /* Spécifique pour les éléments grid/flex */
  .mobile-action-bar.mobile-only {
    display: block !important;
  }
  
  .mobile-cta-container.mobile-only {
    display: block !important;
  }
}

/* Mobile Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 45;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}

.mobile-action-bar::-webkit-scrollbar {
  display: none; 
}

.mobile-action-bar-inner {
  display: flex;
  gap: 4px;
  padding: 0 10px;
  min-width: min-content;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  min-height: 76px;
  position: relative;
  border-radius: 12px;
  flex-shrink: 0;
  min-width: 85px;
}

.mobile-action-btn svg {
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}
.mobile-action-btn:active {
  transform: scale(0.95);
  background: rgba(0,0,0,0.05);
}

.mobile-action-btn:hover {
  background: rgba(0,0,0,0.03);
}

.mobile-action-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
}

/* Indicateur de couleur sélectionnée */
.mobile-action-btn#mobileColorBtn::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  background: var(--selected-color, #ffffff);
  transition: all 0.2s ease;
  opacity: 0;
}

.mobile-action-btn#mobileColorBtn.has-color::before {
  opacity: 1;
}

/* Bouton de validation principal en bas */
.mobile-cta-container {
  position: fixed;
  bottom: 82px;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: white;
  z-index: 44;
}

.mobile-cta-btn {
  width: 100%;
  padding: 16px 24px;
  background: -webkit-linear-gradient(186deg, #e89335,#ffb561);/* Chrome 10-25, Safari 5.1-6 */    
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(150, 150, 150, 0.31);
}

.mobile-cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(255, 107, 82, 0.3);
}

/* Ajustements du padding */
@media (max-width: 1024px) {
  .modern-customizer {
    padding-bottom: calc(160px + env(safe-area-inset-bottom)) !important;
  }
}

/* Alerte orientation paysage */
.landscape-warning {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.landscape-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: rotatePhone 2s ease-in-out infinite;
}

.landscape-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.landscape-content p {
  font-size: 16px;
  opacity: 0.8;
  margin: 0;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

/* Afficher l'alerte en mode paysage sur mobile et tablettes */
@media (max-width: 1024px) and (orientation: landscape) {
  .landscape-warning {
    display: flex !important;
  }
  
  .modern-customizer,
  .mobile-action-bar,
  .mobile-cta-container,
  .mobile-view-navigator {
    display: none !important;
  }
}

/* Drawer Styles */
#customizationDrawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  background: white;
  border-left: 1px solid var(--gray-200);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

#customizationDrawer:not([aria-hidden="true"]) {
  transform: translateX(0);
}

/* Mobile Drawer */
@media (max-width: 1024px) {
  #customizationDrawer {
    width: 100vw;
    height: 85vh;
    max-height: 90vh;
    top: auto;
    bottom: 0;
    left: 0;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  }
  
  #customizationDrawer:not([aria-hidden="true"]) {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #customizationDrawer {
    height: 88vh;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 480px) {
  #customizationDrawer {
    height: 90vh;
    border-radius: 20px 20px 0 0;
  }
}


/* Drawer "Voir tout" (bibliothèque complète)
   -> même largeur / mêmes animations que #customizationDrawer */
#designFullDrawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;              /* ✅ même largeur que le drawer principal */
  background: white;
  border-left: 1px solid var(--gray-200);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 65;               /* au-dessus du drawer principal (z-index:60) */
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

#designFullDrawer:not([aria-hidden="true"]){
  transform: translateX(0);
}

/* Mobile: même comportement "bottom sheet" que le drawer principal */
@media (max-width: 1024px){
  #designFullDrawer{
    width: 100vw;
    height: 85vh;
    max-height: 90vh;
    top: auto;
    bottom: 0;
    left: 0;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  }
  #designFullDrawer:not([aria-hidden="true"]){
    transform: translateY(0);
  }
}

@media (max-width: 768px){
  #designFullDrawer{
    height: 88vh;
    border-radius: 24px 24px 0 0;
  }
}
@media (max-width: 480px){
  #designFullDrawer{
    height: 90vh;
    border-radius: 20px 20px 0 0;
  }
}

/* Titre du drawer (pour éviter l'id duplicate de #drawerTitle) */
#designFullDrawer .drawer-title{
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

/* Scroll interne */
#designFullDrawer .drawer-body{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Grille full library */
#designFullDrawer .design-full-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 480px){
  #designFullDrawer .design-full-grid{ gap: 14px; }
}

#designFullDrawer .design-full-tile{
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

#designFullDrawer .design-full-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

#designFullDrawer .design-full-tile img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  display: block;
}


.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: white;
}

@media (max-width: 1024px) {
  .drawer-header {
    padding: 24px 24px 16px;
    position: relative;
  }
  
  .drawer-header::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #d1d5db;
    border-radius: 3px;
  }
}

@media (max-width: 768px) {
  .drawer-header {
    padding: 20px 20px 14px;
  }
  
  .drawer-header::before {
    top: 10px;
    width: 45px;
    height: 4px;
  }
}

@media (max-width: 480px) {
  .drawer-header {
    padding: 18px 16px 12px;
    border-radius: 20px 20px 0 0;
  }
  
  .drawer-header::before {
    width: 40px;
  }
}

.drawer-header button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .drawer-header button {
    width: 36px;
    height: 36px;
  }
}

.drawer-header button:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

#drawerTitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

@media (max-width: 480px) {
  #drawerTitle {
    font-size: 16px;
  }
}

.drawer-body {
  flex: 1;
  padding: 24px;
}

@media (max-width: 1024px) {
  .drawer-body {
    padding: 24px 24px 100px;
  }
}

@media (max-width: 768px) {
  .drawer-body {
    padding: 20px 20px 90px;
  }
}

@media (max-width: 480px) {
  .drawer-body {
    padding: 16px 16px 80px;
  }
}

/* Upload Section */
.upload-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border: 3px dashed var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.upload-card:hover {
  border-color: #fcb15c;
  background: var(--gray-100);
  transform: translateY(-2px);
}

.upload-icon {
  color: var(--gray-400);
}

.upload-card h3 {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

.upload-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

.info-card {
  padding: 16px;
  background:rgba(136, 136, 136, 0.16);
  color:rgb(45, 45, 45);
  border-radius: var(--radius);
}

.info-card h4 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

.info-card p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

/* Options Screen */
.options-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.option-group {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
}

.option-group h4 {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0 0 12px 0;
}

.tools-row {
  display: flex;
  gap: 8px;
}

.tool-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.tool-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tool-button.danger {
  color: var(--error);
}

.tool-button.danger:hover {
  border-color: var(--error);
  background: var(--error);
  color: white;
}

/* Text Options */
.text-options-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
}

.font-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.font-select:focus {
  outline: none;
  border-color: var(--primary);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
}

.color-picker-wrapper input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  cursor: pointer;
}

.color-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
}

/* Designs Library */
.designs-library {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-section {
  top: 0;
  background: white;
  padding-bottom: 16px;
  z-index: 10;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 14px;
  background: var(--gray-50);
}

.search-input:focus {
  outline: none;
  border-color: #fcb15c;
  background: white;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.design-category {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.category-header h4 {
  font-size: 16px;
  font-weight: 400;
  color: #3e3e3e;
  margin: 0;
}

.category-header a {
  font-size: 12px;
  font-weight: 400;
  color: var(--primary);
  text-decoration: none;
}

.category-header a:hover {
  text-decoration: underline;
}

.designs-grid {
  display: grid !important;
  /* On force 4 colonnes égales sur desktop pour un alignement symétrique */
  grid-template-columns: repeat(4, 1fr) !important; 
  gap: 12px !important;
  padding: 16px 0 !important;
  width: 100% !important;
  justify-content: center !important; /* Centre les colonnes dans la grille */
  justify-items: center !important;    /* Centre chaque vignette dans sa cellule */
  margin: 0 auto !important;
}

.design-tile {
  aspect-ratio: 1;
  width: 100%;             /* S'adapte à la colonne de la grille */
  max-width: 100px;        /* Limite la taille pour garder un aspect propre */
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 8px;            /* Espace interne pour que le design ne touche pas les bords */
  display: flex;           /* Utilise flex pour centrer l'image */
  align-items: center;
  justify-content: center;
}

.design-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Garde les proportions sans déformer le dessin */
  display: block;
}

#designFullDrawer .design-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile/drawer */
  gap: 18px;
  padding: 10px;
  justify-items: center; /* Centre les cartes dans la grille */
}

#designFullDrawer .design-full-tile {
  width: 100%;
  max-width: 160px;        /* Évite que les vignettes ne deviennent trop géantes */
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.design-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.design-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-style: italic;
}

/* Sizes Drawer */
.sizes-drawer-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sizes-header {
  padding: 0 0 20px 0;
  margin-bottom: 20px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  cursor: pointer;
  padding: 8px 0;
}

.back-button:hover {
  color: var(--primary);
}

.sizes-list {
  flex: 1;
  padding-right: 8px;
}

.size-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.size-quantity-row:hover {
  background: var(--gray-50);
  margin: 0 -16px;
  padding: 16px;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.size-quantity-row.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.size-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 4px;
}

.qty-decrease, .qty-increase {
  width: 32px;
  height: 32px;
  border: none;
  background:rgba(255, 255, 255, 0);
  color: #f4c491;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-decrease:disabled, .qty-increase:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}

.qty-value {
  width: 50px;
  height: 32px;
  text-align: center;
  border: none;
  background: white;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-900);
}

.qty-value:focus {
  outline: 2px solid var(--primary);
}

.sizes-footer {
  padding-top: 70px;
  margin-top: 20px;
}

.pricing-info {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
}

.discount-info {
  font-size: 12px;
  color: var(--warning);
  font-weight: 600;
  margin-bottom: 12px;
  }

.price-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-line{
  display: flex;
  justify-content: space-between;
  padding-top: 0;       
  align-items: center;
  font-size: 14px;
}

.price-line.total{
  padding-top: 10px;
  padding-bottom: 20px;
  margin-top: 10px;
  border-top: 1px solid var(--gray-200);
}

.add-to-cart-final {
  width: 100%;
  background: -webkit-linear-gradient(186deg, #e89335,#ffb561);              
  color: white;
  border: none;
  padding: 16px 24px;
  padding-top: 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.add-to-cart-final:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.add-to-cart-final:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Preset Positions - VERSION UNIFORME DESKTOP/MOBILE */
.preset-positions-horizontal {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.position-card-horizontal {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.position-card-horizontal:hover {
  border-color: #e89335;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.position-card-horizontal.active {
  border-color: #e89335 !important;
  box-shadow: 0 0 0 3px rgba(232, 147, 53, 0.2);
}

.position-image-horizontal {
  width: 100%;
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* Product Picker */
.product-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
  .product-picker-overlay {
    padding: 0;
  }
}

.product-picker-overlay.show {
  opacity: 1;
}

.picker-modal {
  width: 100%;
  max-width: 1600px;
  height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 1024px) {
  .picker-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
  }
}

.product-picker-overlay.show .picker-modal {
  transform: scale(1);
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .picker-header {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .picker-header {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .picker-header {
    padding: 16px;
  }
}

.header-left h4 {
  font-size: 26px;
  font-weight: 400;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

@media (max-width: 1024px) {
  .header-left h4 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .header-left h4 {
     font-size: 20px;
  font-weight: 500;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .header-left h4 {
   font-size: 18px;
  font-weight: 500;
  }
}

.picker-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .picker-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .picker-subtitle {
    font-size: 12px;
  }
}

.picker-close {
  width: 42px;
  height: 42px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .picker-close {
    width: 36px;
    height: 36px;
  }
}

.picker-close:hover {
  background: #111827;
  color: white;
  transform: rotate(90deg);
}

.picker-filters {
  padding: 20px 36px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .picker-filters {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .picker-filters {
    padding: 14px 16px;
  }
}

.picker-filters .search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .picker-filters .search {
    max-width: 100%;
    margin-bottom: 16px;
  }
}

.picker-filters .search__input {
  font-family: inherit;
  font-size: 14px;
  background-color: #f4f2f2;
  border: none;
  color: #646464;
  padding: 12px 20px;
  border-radius: 30px;
  width: 100%;
  transition: all ease-in-out 0.5s;
  margin-right: -2.5rem;
}

.picker-filters .search__input:hover,
.picker-filters .search__input:focus {
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.08);
}

.picker-filters .search__input:focus {
  outline: none;
  background-color: #f0eeee;
}

.picker-filters .search__input::placeholder {
  font-weight: 400;
  color: #ccc;
}

.picker-filters .search__button {
  border: none;
  background-color: #f4f2f2;
  padding: 10px 14px;
  border-radius: 30px;
  margin-top: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-filters .search__button:hover {
  background-color: #e8e6e6;
}

.picker-filters .search__icon {
  height: 1.3em;
  width: 1.3em;
  fill: #b4b4b4;
  transition: fill 0.3s ease;
}

.picker-filters .search__button:hover .search__icon {
  fill: #646464;
}

/* Personnalisation de la scrollbar pour les catégories du Picker */
.picker-categories {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding-bottom: 8px !important; /* Espace pour ne pas coller à la barre */
  
  /* Standard pour Firefox */
  scrollbar-width: thin; 
  scrollbar-color: #d1d5db #f3f4f6;
}

/* Styles spécifiques pour Chrome, Safari et Edge (Webkit) */
.picker-categories::-webkit-scrollbar {
  height: 4px !important; /* Épaisseur de la barre horizontale */
}

.picker-categories::-webkit-scrollbar-track {
  background: #f3f4f6 !important; /* Couleur du fond de la barre */
  border-radius: 10px;
}

.picker-categories::-webkit-scrollbar-thumb {
  background: #d1d5db !important; /* Couleur de la partie mobile */
  border-radius: 10px;
  transition: background 0.2s ease;
}

.picker-categories::-webkit-scrollbar-thumb:hover {
  background: #fcb15c !important; /* Couleur au survol pour rappel visuel */
}

.category-tab {
  padding: 8px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tab:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.category-tab.active {
  border-color: #fcb15c;
}

.picker-content {
  flex: 1;
  overflow-y: auto;
  background: #f9fafb;
}

.picker-content::-webkit-scrollbar {
  width: 8px;
}

.picker-content::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.picker-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.picker-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.picker-grid {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .picker-grid {
    gap: 12px;
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .picker-grid {
    gap: 10px;
    padding: 12px;
  }
}

.picker-card {
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .picker-card {
    border-radius: 12px;
  }
}

.picker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  border-color: #e5e7eb;
}

.picker-card.current {
  border-color: #fcb15c;
}

.picker-image-container {
  width: 100%;
  aspect-ratio: 1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.picker-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.picker-card:hover .picker-image-container img {
  transform: scale(1.06);
}

.picker-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.current-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #fcb15c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

.picker-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-product-title {
  font-size: 15px;
  font-weight: 400;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

@media (max-width: 768px) {
  .picker-product-title {
   font-size: 15px;
        min-height: 36px;
        font-weight: 500;
  }
}

.picker-colors-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0;
}

.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #e5e7eb;
  transition: transform 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #6366f1;
}

.color-count {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  padding: 2px 7px;
  background: #f3f4f6;
  border-radius: 5px;
  margin-left: 2px;
}

.picker-footer {
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid #f3f4f6;
}

.picker-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-amount {
  font-size: 22px;
  font-weight: 400;
  color: #111827;
  line-height: 1;
}

.price-unit {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.picker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.picker-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 12px 0 6px;
}

.picker-empty p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #d1d5db;
  padding: 40px;
  height: 100%;
}

.no-image-placeholder span {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

/* Cart Success Modal */
.cart-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.cart-success-overlay.show {
  display: flex !important;
  opacity: 1;
}

.success-modal {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 480px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.8) translateY(-50px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-align: center;
  margin: auto;
}

.cart-success-overlay.show .success-modal {
  transform: scale(1) translateY(0);
}

/* Responsive modal de succès */
@media (max-width: 768px) {
  .success-modal {
    padding: 32px 24px;
    max-width: 95vw;
    width: 95vw;
    margin: 0 auto;
  }
  
  .success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
  }
  
  .success-title {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .success-message {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .success-actions {
    gap: 10px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .success-modal {
    padding: 28px 20px;
    border-radius: 12px;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .success-title {
    font-size: 20px;
  }
  
  .success-message {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 16px;
}

.success-message {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 32px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.design-item {
  position: absolute;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none !important; 
  transform-origin: center center;
  z-index: 100;
  cursor: grab;
  transition: outline 0.1s ease, background 0.1s ease; 
  isolation: isolate;
}

.design-item[data-type="image"] {
  width: 200px;
  height: 200px;
}

.design-item[data-type="text"] {
  width: auto !important;
  height: auto !important;
  min-width: 80px;
  min-height: 40px;
  padding: 5px 10px;
  box-sizing: border-box;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow: visible;
}

.design-item .di-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.design-item .di-content > * {
  pointer-events: none;
}

/* ================================================= */
/* === AJOUT : STYLE CONTROLS "MISTER TEE" === */
/* ================================================= */

/* 1. On rend les anciennes poignées invisibles et inactives visuellement */
.di-handle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

/* 2. On cache l'ancien bouton supprimer carré rouge s'il existe encore */
.di-delete {
  display: none !important;
}

/* 3. La bordure de l'élément sélectionné */
.design-item.selected {
  border: 2px solid rgb(97, 97, 97) !important; /* Bleu pointillé */
  cursor: move;
  z-index: 1000;
}

/* 4. Conteneur global des boutons */
.di-controls {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; /* Laisse passer le clic vers l'image au centre */
  display: none;
}

.design-item.selected .di-controls {
  display: block;
}

.di-controls {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  pointer-events: none;
  display: none;
  z-index: 1000;
}

.design-item.selected .di-controls {
  display: block;
}

/* 2. Boutons - TAILLE ADAPTATIVE (définie par JS) */
.di-handle-btn {
  /* Taille définie dynamiquement par JavaScript */
  width: 40px;  /* Valeur par défaut */
  height: 40px; /* Valeur par défaut */
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1010;
  user-select: none;
  -webkit-user-select: none;
  /* Pas de transition pour ne pas bloquer */
  transition: box-shadow 0.15s ease;
  animation: none !important;
}

/* 3. Hover - Juste l'ombre change */
.di-handle-btn:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

/* 4. SVG - Icône PURE, sans fond */
.di-handle-btn svg {
  width: 60%;  /* 60% de la taille du bouton */
  height: 60%; /* Adaptatif */
  pointer-events: none;
  fill: currentColor !important;
  stroke: none !important;
  opacity: 1 !important;
  transition: none !important;
}

.di-handle-btn svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* ========================================
   POSITIONNEMENT ET COULEURS (BASE PC)
   ======================================== */

/* HAUT-GAUCHE : 🗑️ POUBELLE (ROUGE) */
.di-trash {
  top: 0; 
  left: 0;
  transform: translate(-50%, -50%); /* Sera ajusté dynamiquement par le zoom si JS actif */
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
}

.di-trash:hover {
  background: #dc2626 !important;
}

/* HAUT-DROITE : 🔄 ROTATION (BLANC/GRIS) */
.di-handle.rot,
.di-rotate {
  top: 0; 
  right: 0;
  transform: translate(50%, -50%) !important;
  color: rgb(40, 40, 40) !important;
  background: #ffffff;
  border: 1px solid #ddd;
  cursor: grab; /* Correction de la syntaxe */
}

.di-handle.rot:active,
.di-rotate:active {
  cursor: grabbing;
}

/* BAS-DROIT : ↔️ REDIMENSIONNEMENT (BLANC/GRIS) */
.di-handle.se,
.di-resize {
  bottom: 0; 
  right: 0;
  transform: translate(50%, 50%) !important;
  color: rgb(40, 40, 40) !important;
  background: #ffffff;
  border: 1px solid #ddd;
  cursor: nwse-resize;
}

/* ========================================
   TAILLES ADAPTATIVES PAR DÉFAUT (PC)
   ======================================== */

/* Petit élément (< 100px) sur PC */
.design-item[style*="width"][style*="height"] .di-handle-btn {
  min-width: 28px;
  min-height: 28px;
}

/* Grand élément sur PC */
@media (min-width: 769px) {
  .di-handle-btn,
  .di-trash, .di-rotate, .di-resize {
    width: 30px; /* Taille standard confort PC */
    height: 30px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  /* Icônes standard PC */
  .di-handle-btn svg, .di-trash svg, .di-rotate svg, .di-resize svg {
      width: 16px;
      height: 16px;
  }
}

/* ========================================
   SUPPRESSION DES ANIMATIONS
   ======================================== */

.di-handle-btn,
.di-handle-btn:hover,
.di-handle-btn:active,
.di-handle-btn svg,
.di-handle,
.di-handle:hover {
  animation: none !important;
}

/* Seule la box-shadow peut avoir une transition */
.di-handle-btn {
  transition: box-shadow 0.15s ease;
}

/* Force la suppression de toute autre transition */
.di-handle-btn * {
  transition: none !important;
}

/* ========================================
   ÉTATS SPÉCIAUX (OOB / LOCKED)
   ======================================== */

.design-item.oob {
  outline: 2px solid #f59e0b;
}

.design-item.oob::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(
    45deg,
    rgba(245, 158, 11, 0.2) 0 8px,
    rgba(245, 158, 11, 0.1) 8px 16px
  );
  border: 2px solid #f59e0b;
  border-radius: 8px;
  z-index: 6;
  pointer-events: none;
}

.design-item.locked {
  outline: 2px dashed #9ca3af;
  outline-offset: 2px;
  cursor: default;
}

.design-item.locked .di-controls {
  display: none !important;
}

/* ========================================
   RESPONSIVE MOBILE (ULTRA-COMPACT 20px)
   ======================================== */

@media screen and (max-width: 768px) {

  /* 1. TAILLE & FORME POUR TOUS LES BOUTONS */
  .di-trash,                     /* Poubelle */
  .di-handle.rot, .di-rotate,    /* Rotation */
  .di-handle.se, .di-resize,     /* Redimensionnement */
  .di-broderie, .di-edit {       /* Autres outils */
    
    /* TAILLE RÉDUITE AU MAXIMUM (20px) */
    width: 20px !important;
    height: 20px !important;
    min-width: 0 !important; /* Écrase les anciennes règles */
    min-height: 0 !important;
    
    /* Cercle parfait */
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Centrage */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Ombre légère pour visibilité sur fond blanc */
    box-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    
    /* Empêche le scroll au toucher */
    touch-action: none !important; 
  }

  /* 2. STYLE : BOUTONS BLANCS (Rotate, Resize, Broderie) */
  .di-handle.rot, .di-rotate,
  .di-handle.se, .di-resize,
  .di-broderie, .di-edit {
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important;
  }

  /* 3. STYLE : BOUTON ROUGE (Poubelle) */
  .di-trash {
    background-color: #ff0000 !important; /* ROUGE */
    border: 1px solid #ff0000 !important;
  }

  /* 4. TAILLE DES ICÔNES À L'INTÉRIEUR (10px) */
  
  /* Icônes Sombres */
  .di-handle.rot svg, .di-rotate svg,
  .di-handle.se svg, .di-resize svg,
  .di-broderie svg, .di-edit svg {
    width: 10px !important;
    height: 10px !important;
    display: block !important;
    fill: #333333 !important;
    min-width: auto !important;
  }

  /* Icône Blanche (Poubelle) */
  .di-trash svg {
    width: 10px !important;
    height: 10px !important;
    display: block !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    min-width: auto !important;
  }
}

/* ========================================
   ACCESSIBILITÉ & PERF
   ======================================== */

.di-handle-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Utiliser GPU pour les transformations */
.di-handle-btn, .di-trash, .di-rotate, .di-resize {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Force le rendu matériel */
.di-controls {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.design-item.oob {
  outline: 2px solid var(--warning);
}

.design-item.oob::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(
    45deg,
    rgba(245, 158, 11, 0.2) 0 8px,
    rgba(245, 158, 11, 0.1) 8px 16px
  );
  border: 2px solid var(--warning);
  border-radius: 8px;
  z-index: 6;
  pointer-events: none;
}

.design-item.locked {
  outline: 2px dashed var(--gray-400);
  outline-offset: 2px;
  cursor: default;
}

.design-item.locked .di-controls {
  display: none;
}

/* Utilities */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-xl);
  max-width: 300px;
  word-wrap: break-word;
}

/* Modal de consigne - optimisé */
#noteModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 90;
}

#noteModal.active {
  display: flex !important;
}

#noteModal.cart-success-overlay {
  z-index: 90 !important;
}

#noteModal[style*="display:none"],
#noteModal:not(.active) {
  pointer-events: none !important;
}

#noteModal.active {
  display: flex !important;
  pointer-events: auto !important;
}

/* ========================================
   MODAL CONSIGNE MOBILE - NOUVELLE VERSION
   ======================================== */
.note-modal-mobile * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.note-modal-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.note-modal-mobile.is-open {
  display: flex !important;
}

.note-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.note-modal-dialog {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1;
}

.note-modal-mobile.is-open .note-modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.note-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  text-align: center;
}

.note-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.note-modal-close-btn:active {
  transform: scale(0.95);
  background: #e5e7eb;
}

.note-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  padding-right: 40px;
}

.note-modal-body {
  padding: 20px;
}

.note-modal-description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

.note-modal-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  background: #f9fafb;
  color: #111827;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.note-modal-textarea:focus {
  outline: none;
  border-color: #e89335;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.note-modal-textarea::placeholder {
  color: #9ca3af;
}

.note-modal-footer {
  padding: 20px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
}

.note-modal-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.note-modal-btn:active {
  transform: scale(0.98);
}

.note-modal-btn-save {
  background: linear-gradient(135deg, #e89335 0%, #f4c491 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.note-modal-btn-save:active {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.note-modal-btn-cancel {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.note-modal-btn-cancel:active {
  background: #f9fafb;
}

@media (max-width: 480px) {
  .note-modal-mobile {
    padding: 0;
  }
  
  .note-modal-dialog {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  .note-modal-header {
    padding: 24px 20px 16px;
  }
  
  .note-modal-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
  }
}

body.note-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.mobile-action-btn.has-note::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid white;
}

/* ========================================
   DRAWER DE COULEURS
   ======================================== */
.colors-drawer-screen {
  padding: 16px;
}

.color-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.color-drawer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.color-drawer-card:active {
  transform: scale(0.98);
}

.color-drawer-card.active {
  border-color: #f4c491;
  background: #f5f3ff;
}

.color-drawer-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.color-drawer-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.color-drawer-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-transform: capitalize;
  flex: 1;
}

.color-drawer-check {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #f4c491;
}

@media (max-width: 480px) {
  .color-drawer-grid {
    grid-template-columns: 1fr;
  }
  
  .color-drawer-card {
    padding: 14px;
  }
  
  .color-drawer-swatch {
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   BLOQUER LE SCROLL SUR MOBILE
   ======================================== */
@media (max-width: 1024px) {
  html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
  }
  
  .modern-customizer {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .customizer-grid {
    overflow: hidden;
    height: 100vh;
  }
}

/* Modal Confirmation Tailles */
.sizes-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.sizes-confirm-overlay.show {
  display: flex !important;
  opacity: 1;
}

.sizes-confirm-modal {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.8) translateY(-50px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-align: center;
}

.sizes-confirm-overlay.show .sizes-confirm-modal {
  transform: scale(1) translateY(0);
}

.sizes-confirm-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: successPulse 0.6s ease-out;
}

.sizes-confirm-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 24px;
}

.sizes-confirm-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.sizes-confirm-summary h4 {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sizes-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sizes-confirm-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  font-size: 14px;
}

.sizes-confirm-item-size {
  font-weight: 700;
  color: #111827;
}

.sizes-confirm-item-qty {
  color: #6b7280;
}

.sizes-confirm-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.sizes-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-add-to-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-continue {
  width: 100%;
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 768px) {
  .sizes-confirm-modal {
    padding: 32px 24px;
  }
  
  .sizes-confirm-icon {
    width: 70px;
    height: 70px;
  }
  
  .sizes-confirm-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .sizes-confirm-modal 
    padding: 28px 20px;
  }
  
  .sizes-confirm-icon {
    width: 60px;
    height: 60px;
  }
  
  .sizes-confirm-title {
    font-size: 20px;
  }
  
  .btn-add-to-cart,
  .btn-continue {
    font-size: 14px;
  }

.scale-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scale-display {
  text-align: center;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: 6px;
  border: 2px solid var(--primary);
}

.scale-percent {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  font-family: 'Monaco', monospace;
}

.scale-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scale-btn-minus,
.scale-btn-plus {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s;
}

.scale-btn-minus:hover,
.scale-btn-plus:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.scale-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #e0e0e0, var(--primary));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.scale-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.scale-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.scale-slider::-moz-range-thumb:active {
  transform: scale(1.2);
}

.scale-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 50px;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preset-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.fit-button {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.fit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.fit-button:active {
  transform: translateY(0);
}

.image-info-box {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.image-info-box.oversized {
  background: #fff3cd;
  border-color: #ffc107;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #666;
  font-weight: 600;
}

.info-value {
  color: #333;
  font-family: 'Monaco', monospace;
  font-weight: bold;
}

.warning-box {
  background: #f8d7da;
  color: #721c24;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
}

.success-box {
  background: #d4edda;
  color: #155724;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
}

.zone-limit-guide {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.design-item {
  /* Important : transform-origin doit être au centre */
  transform-origin: center center;
  
  /* Smooth animation (optionnel) */
  transition: transform 0.1s ease-out;
}

.design-item.rotating {
  /* Pas de transition pendant la rotation */
  transition: none;
}

.cart-item img,
[data-cart-item] img,
.product-item img {
  width: 100% !important;
  height: auto !important;
  max-width: 500px;
  object-fit: contain;
  background: white;
}

/* Conteneur image du panier */
.cart__image,
.product-thumbnail,
[data-cart-image] {
  width: 150px !important;
  height: 150px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.cart__image img,
.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   VIEW NAVIGATOR — Desktop / Mobile
   ========================= */

/* Desktop : colonne à gauche */
.view-navigator.desktop-only{
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mobile navigator caché par défaut */
.mobile-view-navigator{
  display: none;
}

@media (max-width: 1024px){
  .view-navigator.desktop-only{
    display: none !important;
  }
  .mobile-view-navigator{
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .mobile-view-navigator::-webkit-scrollbar{
    display: none;
  }
}

.view-button,
.view-pill{
  position: relative;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: flex-start;
  gap: 6px;

  padding: 10px 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 90px;
}

.view-button:hover,
.view-pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

.view-button.active,
.view-pill.active{
  background: white;
  border-color: #fcb15c;
  transform: translateY(-1px);
}

.view-button .view-thumb,
.view-pill .view-thumb{
  width: 56px;
  height: 70px;
  border-radius: 14px;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.view-button.active .view-thumb,
.view-pill.active .view-thumb{
  background-color: transparent;
}

.view-button .view-label,
.view-pill .view-label{
  font-weight: 600;
    color: #3e3e3e;
    font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.view-button.active .view-label,
.view-pill.active .view-label{
  font-weight: 600;
    color: #3e3e3e;
    font-size: 12px;  
}

@media (max-width: 768px){
  .mobile-view-navigator .view-button,
  .mobile-view-navigator .view-pill{
    flex-direction: row;        
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgb(255, 255, 255);
  }

  .mobile-view-navigator .view-button.active,
  .mobile-view-navigator .view-pill.active{
    border-color: #fcb15c;
  }

  .mobile-view-navigator .view-thumb{
    width: 26px;
    height: 26px;
    border-radius: 10px;
    flex: 0 0 26px;
    background-size: contain;
    box-shadow: none;
  }

  .mobile-view-navigator .view-label{
    font-size: 14px;
    font-weight: 500; 
    line-height: 1.2;
    text-align: left;
  }
}

/* Petit mobile : ajustements */
@media (max-width: 480px){
  .mobile-view-navigator{
    padding: 12px 12px 8px 12px;
    gap: 8px;
  }

  .mobile-view-navigator .view-button,
  .mobile-view-navigator .view-pill{
    min-width: 140px;
  }

  .mobile-view-navigator .view-thumb{
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
}

   .image-options-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

.image-options-screen .option-group {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--gray-100, #e5e7eb);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.image-options-screen .option-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.image-options-screen .option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

  .image-options-screen .option-group h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Texte "L'image rentre parfaitement" */
  .image-options-screen .success-box,
  .image-options-screen .warning-box {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
  }

  .image-options-screen .success-box {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
  }

  .image-options-screen .warning-box {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
  }

  /* --- Échelle --- */
  .image-options-screen .scale-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .image-options-screen .scale-display {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary, #4f46e5);
    background: #eef2ff;
  }

  .image-options-screen .scale-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #4f46e5);
  }

  .image-options-screen .scale-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f4f6;
  }

  .image-options-screen .scale-btn-minus,
  .image-options-screen .scale-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--gray-300, #d1d5db);
    background: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all .2s ease;
  }

  .image-options-screen .scale-btn-minus:hover,
  .image-options-screen .scale-btn-plus:hover {
    border-color: var(--primary, #4f46e5);
    background: #eef2ff;
    color: var(--primary, #4f46e5);
  }

  .image-options-screen .scale-slider {
    flex: 1;
  }

  .image-options-screen .scale-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .image-options-screen .preset-btn {
    padding: 6px 0;
    border-radius: 999px;
    border: 1px solid var(--gray-300, #d1d5db);
    background: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
  }

  .image-options-screen .preset-btn:hover {
    border-color: var(--primary, #4f46e5);
    background: #eef2ff;
    color: var(--primary, #4f46e5);
  }

  .image-options-screen .preset-btn.active {
    background: var(--primary, #4f46e5);
    border-color: var(--primary, #4f46e5);
    color: #ffffff;
  }

  .image-options-screen .fit-button {
    margin-top: 6px;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  }

  .image-options-screen .fit-button:hover {
    filter: brightness(1.05);
  }

  /* --- Outils --- */
  .image-options-screen .tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }

  .image-options-screen .tool-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    transition: all .2s ease;
  }

  .image-options-screen .tool-button svg {
    width: 18px;
    height: 18px;
  }

  .image-options-screen .tool-button:hover {
    border-color: var(--primary, #4f46e5);
    background: #eef2ff;
    color: var(--primary, #4f46e5);
  }

  .image-options-screen .tool-button.danger {
    border-color: #fee2e2;
    color: #b91c1c;
  }

  .image-options-screen .tool-button.danger:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
  }
  /* --- Option group --- */
.option-group {
  background:#f8fafc;
  border:1px solid #e5e7eb;
  padding:18px;
  border-radius:12px;
  margin-top:18px;
}

/* Texte slider */
.text-size-control {
  display:flex;
  align-items:center;
  gap:10px;
}

/* Slider */
.scale-slider {
  width:100%;
  -webkit-appearance:none;
  height:6px;
  background:#e5e7eb;
  border-radius:4px;
}
.scale-slider::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:18px;
  height:18px;
  background:#4b5563;
  border-radius:50%;
  cursor:pointer;
}

/* Boutons presets */
.scale-presets {
  display:flex;
  gap:8px;
  margin-top:8px;
}

.preset-btn {
  padding:6px 12px;
  border:1px solid #d1d5db;
  background:white;
  border-radius:6px;
  cursor:pointer;
}
.preset-btn.active {
  background:#374151;
  color:white;
  border-color:#374151;
}

/* Adapter parfaitement */
.fit-button {
  padding:6px 12px;
  border:1px solid #d1d5db;
  background:#f3f4f6;
  border-radius:6px;
  cursor:pointer;
  margin-top:10px;
}

/* --- Boutons OUTILS et ALIGNER --- */
.tools-row,
.align-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
}

.tool-button {
  width:60px;
  height:45px;
  background:white;
  border:1px solid #d1d5db;
  border-radius:8px;
  cursor:pointer;
  font-size:20px;
}
/* ============================================
   ROOT DU PANNEAU D’OPTIONS IMAGE
============================================ */
#image-options-root {
  width: 100%;
  display: block;
}

/* ============================================
   OPTION GROUP (Bloc blanc + arrondi)
============================================ */
#image-options-root .option-group {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 18px;
  border-radius: 12px;
  margin-top: 18px;
}

/* ============================================
   SLIDER + LABEL
============================================ */
#image-options-root .text-size-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#image-options-root .scale-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
}

#image-options-root .scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #4b5563;
  border-radius: 50%;
  cursor: pointer;
}

/* Texte du pourcentage */
#image-options-root .text-size-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* ============================================
   PRESET BUTTONS (25% / 50% / 75% / 100%)
============================================ */
#image-options-root .scale-presets {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

#image-options-root .preset-btn {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

#image-options-root .preset-btn:hover {
  background: #e5e7eb;
}

#image-options-root .preset-btn.active {
  background: #374151;
  border-color: #374151;
  color: white;
}

/* ============================================
   Bouton "Adapter parfaitement"
============================================ */
#image-options-root .fit-button {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 13px;
  transition: background 0.15s ease;
}

#image-options-root .fit-button:hover {
  background: #e5e7eb;
}

/* ============================================
   OUTILS + ALIGNEMENT
   (Carrés cliquables)
============================================ */
#image-options-root .tools-row,
#image-options-root .align-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

#image-options-root .tool-button {
  width: 60px;
  height: 48px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

#image-options-root .tool-button:hover {
  background: #f3f4f6;
}

#image-options-root .tool-button.danger:hover {
  background: #fee2e2;
  border-color: #ef4444;
}
/* Aperçu catégories designs */
.design-category {
  margin-bottom: 24px;
}

.design-category .category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.design-category .category-header h4 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
}

.design-see-all {
  border: none !important;
  background: none !important;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #f4c491;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.design-see-all:hover {
  color: #e03131;              /* un rouge un peu plus foncé au hover */
  text-decoration: underline;
}

/* grille de designs (vue catégories) */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* vue "Voir tout" */
.design-category-full-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.design-category-full-header h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.design-back-btn {
  border: none;
  background: none;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  color: #4b5563;
}

/* grille plus dense pour la vue Voir tout */
.designs-grid-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.di-lock.is-locked svg {
  color: #111;
}

.di-lock:not(.is-locked) svg {
  color: #888;
}
.customizer-home-button .home-home-icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* =========================
   Ajouts (styles déplacés du .liquid)
   ========================= */

/* Importer une image */
.upload-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.upload-subtitle { font-size: 13px; opacity: .8; margin: 0; }
.file-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  border: 0;
}

/* Derniers imports */
.recent-title { margin: 12px 0 8px; font-weight: 600; }
.recent-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  cursor: pointer;
  padding: 0;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Options : on s'assure que les sliders ont un style cohérent même sans <style> inline */
#text-options-root input[type="range"],
#image-options-root input[type="range"] {
  width: 100%;
}
#text-options-root input[type="range"]::-webkit-slider-thumb,
#image-options-root input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}
.recent-imports-item{
  border:1px solid #e5e7eb;
  background:#fff;
  padding:0;
}
.recent-imports-item:active{ transform: scale(0.98); }
.recent-imports-item img{
  background:
    linear-gradient(45deg,#eee 25%,transparent 25%),
    linear-gradient(-45deg,#eee 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#eee 75%),
    linear-gradient(-45deg,transparent 75%,#eee 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.history-controls{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.product-preview-section{ position: relative; }

.ur-controls{
  position: absolute;
  right: 24px;              
  top: 90px;               

  display: flex;
  flex-direction: row;      
  gap: 10px;
  z-index: 99999;
}

.ur-btn{
  all: unset;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ur-btn:hover{ background:#f3f4f6; }
.ur-btn:active{ transform: scale(0.98); }
.ur-btn:disabled{ opacity:.35; cursor:not-allowed; }

@media (max-width: 1024px){
  .ur-controls{
    right: 20px;
    top: 150px;           
    gap: 8px;
  }
}

@media (max-width: 768px){
  .ur-controls{
    right: 16px;
    top: 140px;            
    flex-direction: column;
    gap: 8px;
  }

  .ur-btn{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
  }
}

@media (max-width: 480px){
  .ur-controls{
    right: 14px;
    top: 130px;
  }

  .ur-btn{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }
}

@media (max-width: 768px){

  .mobile-action-bar{
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.10);
  }

  .mobile-action-bar-inner{
    display: flex;
    gap: 10px;
    padding: 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory; /* effet "carousel" */
  }
  .mobile-action-bar-inner::-webkit-scrollbar{ display:none; }

  /* Boutons = petits "logos" */
  .mobile-action-btn{
    min-width: 72px;
    min-height: 62px;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    scroll-snap-align: start;
  }

  .mobile-action-btn svg{
    width: 22px;
    height: 22px;
  }

  /* Texte fin (thin) + plus petit */
  .mobile-action-btn span{
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.2px;
  }

  /* Press */
  .mobile-action-btn:active{
    transform: scale(0.98);
    background: rgba(15, 23, 42, 0.04);
  }
}

/* Optionnel : “active” discret (si tu ajoutes/poses une classe .active en JS) */
@media (max-width: 768px){
  .mobile-action-btn.active{
    border-color: rgba(15, 23, 42, 0.60);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  }
}
/* ==============
   TEXT DRAWER : bar-inner like Mistertee (mobile)
============== */

#text-options-root.barinner-root{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Panels */
#text-options-root .barinner-panels{ display:block; }
#text-options-root .barinner-panel{ display:block; }

/* Bar hidden on desktop */
#text-options-root .barinner-bar{ display:none; }

/* Mobile behavior: 1 panel at a time + bar at bottom */
@media (max-width: 1024px){
  #text-options-root .barinner-panels{
    padding-bottom: 86px; /* laisse la place à la bar */
  }

  #text-options-root .barinner-panel{ display:none; }
  #text-options-root .barinner-panel.is-active{ display:block; }

  #text-options-root .barinner-bar{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;

    position: sticky;
    bottom: 0;
    z-index: 5;

    background: #fff;
    border-top: 1px solid rgba(15,23,42,0.10);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  #text-options-root .barinner-btn{
    all: unset;
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    border-radius: 14px;
    cursor:pointer;
  }

  #text-options-root .barinner-btn .i{
    font-size:18px;
    line-height:1;
  }

  #text-options-root .barinner-btn .t{
    font-size:12px;
    font-weight:300; /* thin */
    line-height:1;
  }

  #text-options-root .barinner-btn.is-active{
    border: 1px solid rgba(15,23,42,0.25);
  }

  /* align tiles */
  #text-options-root .barinner-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
  }
  #text-options-root .barinner-tile{
    height:48px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.12);
    background:#fff;
    cursor:pointer;
    font-size:18px;
  }
  #text-options-root .barinner-tile.is-on{
    border-color: rgba(15,23,42,0.35);
  }

  /* optional primary button inside panel */
  #text-options-root .barinner-primary{
    width:100%;
    height:52px;
    border-radius: 14px;
    border:none;
    background: #0f2436;
    color:#fff;
    font-weight:600;
    cursor:pointer;
  }
}
/* =========================================
   PRODUCT PICKER (MOBILE) : fond flou + carte
   À coller TOUT EN BAS de customizer-style.css
   ========================================= */

/* Sécurise l’ouverture même si inline style="display:none" existe */
#productPicker.product-picker-overlay.show{
  display: flex !important;
}

/* iOS + effet "blur derrière" */
#productPicker.product-picker-overlay{
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* MOBILE/TABLETTE : on veut une CARTE centrée (pas plein écran) + marge autour */
@media (max-width: 1024px){
  #productPicker.product-picker-overlay{
    padding: 16px !important;                 /* ← marge autour de la carte */
    background: rgba(0,0,0,0.45) !important;  /* un voile plus "mistertee" */
    align-items: center !important;
    justify-content: center !important;
  }

  #productPicker .picker-modal{
    width: 100% !important;
    max-width: 720px !important;
    height: min(92vh, 920px) !important;
    border-radius: 26px !important;        
    overflow: hidden !important;
  }
}

@media (max-width: 480px){
  #productPicker.product-picker-overlay{
    padding: 14px !important;
  }
  #productPicker .picker-modal{
    border-radius: 22px !important;
  }
}
/* Mobile uniquement : drawer Couleur plus petit + plus bas (car moins haut) */
@media (max-width: 768px) {
  #customizationDrawer[data-mode="colors"]{
    height: 40vh !important;
    max-height: 40vh !important;
  }

  #customizationDrawer[data-mode="colors"] .drawer-header{
    padding: 16px 16px 10px !important;
  }

  #customizationDrawer[data-mode="colors"] .drawer-body{
    padding: 14px 16px 70px !important;
  }

  /* Grille + cartes plus compactes */
  #customizationDrawer[data-mode="colors"] .color-drawer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #customizationDrawer[data-mode="colors"] .color-drawer-card{
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  /* Pastilles plus petites */
  #customizationDrawer[data-mode="colors"] .color-drawer-swatch{
    width: 26px !important;
    height: 26px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  #customizationDrawer[data-mode="colors"] .color-drawer-name{
    font-size: 13px !important;
    font-weight: 400 !important;
  }
}

@media (max-width: 480px) {
  #customizationDrawer[data-mode="colors"]{
    height: 30vh !important;
    max-height: 30vh !important;
  }

  #customizationDrawer[data-mode="colors"] .color-drawer-grid{
    gap: 8px !important;
  }

  #customizationDrawer[data-mode="colors"] .color-drawer-swatch{
    width: 24px !important;
    height: 24px !important;
    border-radius: 9px !important;
  }
}
/* =========================
   MOBILE : TOUS les écrans du customizationDrawer plus bas / plus fin
   (Importer une image, Options du texte, Designs, Couleurs, Tailles, etc.)
   ========================= */
/* Le drawer doit être en colonne */
#customizationDrawer{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* La zone qui doit scroller */
#customizationDrawer .drawer-body{
  flex: 1 1 auto;
  min-height: 0;        /* IMPORTANT en flex */
  overflow-y: auto;     /* molette OK */
}


/* Petit mobile : encore plus bas */
@media (max-width: 480px){
  #customizationDrawer{
    height: 56vh !important;
    max-height: 56vh !important;
  }

  #customizationDrawer .drawer-header{
    padding: 12px 14px 8px !important;
  }

  #customizationDrawer .drawer-body{
    padding: 10px 14px calc(70px + env(safe-area-inset-bottom)) !important;
  }
}
/* =========================
   HOTFIX : ré-afficher les VUES sur mobile
   ========================= */
@media (max-width: 1024px){

  /* Desktop views off */
 .view-navigator.desktop-only {
    display: none !important;
  }

 .mobile-view-navigator {
  /* 1. POSITIONNEMENT & Z-INDEX (Vos demandes) */
  position: fixed !important;
  bottom: 250px !important;  /* Remonté à 250px */
  z-index: 50 !important;    /* Z-index à 50 */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;    /* S'adapte au contenu (plus petit) */
  max-width: 90vw !important;
  border-radius: 0px !important; /* Pas d'arrondi (carré) */
  padding: 5px !important;       /* Marges internes réduites */
  display: flex !important;
  gap: 10px !important;
}

  /* Évite que la barre du bas passe au-dessus des vues */
  .mobile-action-bar{
    z-index: 10 !important;
  }
}

@media (max-width: 768px){

  /* Drawer un peu plus fin / propre */
  #customizationDrawer[data-mode="sizes"]{
    height: 74vh !important;
    max-height: 74vh !important;
  }

  #customizationDrawer[data-mode="sizes"] .drawer-body{
    padding: 10px 16px calc(130px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Ligne taille = 4 colonnes : label | - | qty | + */
  #customizationDrawer[data-mode="sizes"] .size-row,
  #customizationDrawer[data-mode="sizes"] .size-line,
  #customizationDrawer[data-mode="sizes"] .size-item{
    display: grid !important;
    grid-template-columns: 1fr 44px 40px 44px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(15,23,42,0.06) !important;
  }

  /* Nom de taille (XXS, XS...) */
  #customizationDrawer[data-mode="sizes"] .size-label{
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: #111827 !important;
  }

  /* Boutons + / - (petits, minimalistes) */
  #customizationDrawer[data-mode="sizes"] .qty-minus,
  #customizationDrawer[data-mode="sizes"] .qty-plus,
  #customizationDrawer[data-mode="sizes"] .size-minus,
  #customizationDrawer[data-mode="sizes"] .size-plus{
    width: 44px !important;
    height: 32px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(15,23,42,0.10) !important;
    background: #fff !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #0f172a !important;
  }

  /* Quantité (0,1,2...) */
  #customizationDrawer[data-mode="sizes"] .qty-value,
  #customizationDrawer[data-mode="sizes"] .size-qty,
  #customizationDrawer[data-mode="sizes"] .quantity-value{
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #0f172a !important;
  }

  /* ===== Bloc bas : remise + prix + total ===== */
#customizationDrawer[data-mode="sizes"] .sizes-summary,
#customizationDrawer[data-mode="sizes"] .sizes-footer,
#customizationDrawer[data-mode="sizes"] .cart-summary{
  margin-top: 14px !important;
  padding-top: 60px !important;
}

  #customizationDrawer[data-mode="sizes"] .discount-note{
    font-size: 13px !important;
    color: #ef4444 !important;
    margin: 6px 0 10px !important;
  }

  #customizationDrawer[data-mode="sizes"] .price-line{
    display:flex !important;
    align-items:center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #374151 !important;
    margin: 6px 0 !important;
  }

  #customizationDrawer[data-mode="sizes"] .total-line{
    display:flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
  }

  #customizationDrawer[data-mode="sizes"] .total-line .label{
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  #customizationDrawer[data-mode="sizes"] .total-line .value{
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  /* ===== Bouton sticky en bas ===== */
  #customizationDrawer[data-mode="sizes"] .add-to-cart-btn,
  #customizationDrawer[data-mode="sizes"] .sizes-add-btn,
  #customizationDrawer[data-mode="sizes"] .drawer-primary-btn{
    position: sticky !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: 100% !important;
    height: 52px !important;
    border-radius: 14px !important;
    border: none !important;
    background: #0f2436 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin-top: 14px !important;
  }

  #customizationDrawer[data-mode="sizes"] .add-to-cart-btn:disabled,
  #customizationDrawer[data-mode="sizes"] .sizes-add-btn:disabled,
  #customizationDrawer[data-mode="sizes"] .drawer-primary-btn:disabled{
    background: #eef2f7 !important;
    color: #9ca3af !important;
  }

  @media (min-width: 1025px){
  #customizationDrawer .drawer-body{
    overflow: hidden;
    min-height: 0;
    flex: 1 1 auto;
  }
  #customizationDrawer[data-mode="designs"] .drawer-body{
    overflow-y: auto;
  }
}
/* ===== Modal confirmation (centre + blur) ===== */


/* ✅ Fix: fermeture du @media (max-width: 768px) manquant (sinon le desktop ne reçoit pas les styles) */
}

.oazar-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.oazar-modal-overlay.is-open{
  display: flex;
}

body.oazar-modal-open{
  overflow: hidden;
}

.oazar-modal{
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 18px 18px 14px;

  background: rgba(15,15,18,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.oazar-modal-overlay.is-open .oazar-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.oazar-modal-title{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.oazar-modal-message{
  white-space: pre-line;
  margin: 0 0 14px 0;
  line-height: 1.4;
  opacity: .95;
}

.oazar-modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.oazar-btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.oazar-btn-secondary{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.oazar-btn-primary{
  background: #ffffff;
  color: #111;
}

/* ===== FIX MODAL TECHNIQUE (toujours au-dessus + ne bloque pas quand fermé) ===== */
#oazarConfirmOverlay{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  pointer-events: none;
}
#oazarConfirmOverlay.is-open{
  display: flex !important;
  pointer-events: auto;
}

/* ===== POPUP CONFIRM TECHNIQUE (dans la page, pas Windows) ===== */
#oazarConfirmOverlay{
  position: fixed;
  inset: 0;
  display: none;                 /* fermé */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 2147483647;           /* au-dessus de tout */
  pointer-events: none;
}

#oazarConfirmOverlay.is-open{
  display: flex;                 /* ouvert */
  pointer-events: auto;
}

#oazarConfirmOverlay .oazar-modal{
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(6px);
}

#oazarConfirmOverlay.is-open .oazar-modal{
  transform: translateY(0);
}

body.oazar-modal-open{
  overflow: hidden;              /* bloque le scroll derrière */
}
/* === MODAL CONFIRMATION TECHNIQUE === */
#oazarConfirmOverlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none; /* Caché par défaut */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

#oazarConfirmOverlay.is-open {
  display: flex !important; /* Visible quand ouvert */
  pointer-events: auto;
}

.oazar-modal {
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

#oazarConfirmOverlay.is-open .oazar-modal {
  transform: translateY(0);
}

/* Titre */
.oazar-modal-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

/* Message */
.oazar-modal-message {
  white-space: pre-line;
  margin: 0 0 20px;
  line-height: 1.6;
  color: #444;
  font-size: 15px;
}

/* Boutons */
.oazar-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.oazar-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.oazar-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.oazar-btn-secondary:hover {
  background: #e5e7eb;
}

.oazar-btn-primary {
  background: #ef4444;
  color: #fff;
}

.oazar-btn-primary:hover {
  background: #dc2626;
}

/* Bloquer le scroll quand modal ouverte */
body.oazar-modal-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
  .oazar-modal {
    padding: 20px;
  }
  
  .oazar-modal-title {
    font-size: 18px;
  }
  
  .oazar-modal-message {
    font-size: 14px;
  }
}
/* FIX DESKTOP : le canvas bloque les clics sur la sidebar */
@media (min-width: 1025px){
  .product-preview-section{ position: relative; z-index: 1; }
  .customization-sidebar{ position: relative; z-index: 55; } /* > canvas (50) et < drawer (60) */
}
/* =========================
   OAZAR - Toast Notification
   ========================= */
#oazar-toast-container{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.oazar-toast{
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  padding: 12px 14px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: oazarToastIn .18s ease-out;
}

.oazar-toast__bar{
  width: 6px;
  border-radius: 10px;
  flex: 0 0 6px;
  height: 100%;
}

.oazar-toast__content{
  flex: 1;
}

.oazar-toast__title{
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #0f172a;
}

.oazar-toast__msg{
  font-size: 13px;
  margin: 0;
  color: #334155;
  line-height: 1.35;
}

.oazar-toast__close{
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 2px;
}

.oazar-toast--info .oazar-toast__bar{ background: #0ea5e9; }
.oazar-toast--success .oazar-toast__bar{ background: #10b981; }
.oazar-toast--warning .oazar-toast__bar{ background: #f59e0b; }
.oazar-toast--error .oazar-toast__bar{ background: #ef4444; }

@keyframes oazarToastIn{
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px){
  #oazar-toast-container{
    left: 12px;
    right: 12px;
    top: 12px;
  }
  .oazar-toast{
    max-width: none;
    width: 100%;
    min-width: 0;
  }
}
/* =========================
   Guides de centrage (style MisterTee)
   Utilise les classes déjà ajoutées par ton JS:
   .show-guides / .snapped-x / .snapped-y
   ========================= */

.design-area{
  position: relative; /* important pour les pseudo-elements */
}

/* Lignes (verticale + horizontale) */
.design-area::before,
.design-area::after{
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 260;            /* au-dessus des items */
  opacity: 0;              /* caché par défaut */
  transition: opacity .15s ease;
}


.design-area::before{
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: rgba(201, 201, 201, 1); 
}


.design-area::after{
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
  background: rgba(201, 201, 201, 1); 
}

.design-area.show-guides::before,
.design-area.show-guides::after{
  opacity: 0.35;
}
.design-area.snapped-x::before{
  opacity: 1;
  box-shadow: 0 0 0 1px rgb(151, 151, 151), 0 0 18px rgba(201, 201, 201, 1);
}
.design-area.snapped-y::after{
  opacity: 1;
  box-shadow: 0 0 0 1px rgb(151, 151, 151), 0 0 18px rgba(201, 201, 201, 1)
;
}

/* --- Styles de l'illustration SVG --- */
.phone-rotate-illustration {
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
  color: #374151; /* Couleur des contours du téléphone */
}

.phone-body, .phone-button {
  transition: all 0.3s ease;
}

/* Animation de la flèche pour attirer l'attention */
.rotation-arrow, .rotation-arrow-head {
  opacity: 0.8;
  animation: pulse-arrow 2s infinite ease-in-out;
  transform-origin: 130px 110px; /* Point de pivot pour la pulsation */
}

/* --- Styles du texte --- */
#landscape-warning h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #111827;
  letter-spacing: -0.025em;
}

#landscape-warning p {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* --- Animations --- */
@keyframes pulse-arrow {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1) translate(2px, -2px); /* Léger mouvement */
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


@media only screen and (orientation: landscape) and (max-height: 500px) {
  #landscape-warning {
    display: flex !important;
  }
  
  #mon-customizer, .main-content, footer {
    display: none !important;
  }

  body {
    overflow: hidden !important;
    height: 100vh !important;
  }
}
/* FIN de @media landscape */

/* Conteneur des contrôles en haut à gauche */
.canvas-top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

/* Boutons mobiles aussi sur desktop */
@media screen and (min-width: 1025px) {
  .mobile-round-btn {
    display: flex !important;
  }
}

@media screen and (max-width: 1024px) {

  /* 1. LIBÉRER LE SCROLL */
  .mobile-cta-container,
  .mobile-action-bar {
    pointer-events: none !important;
  }

  .mobile-cta-container > *,
  .mobile-action-bar > *,
  .marking-mode-selector button,
  .mobile-cta-btn,
  .action-item,
  .mobile-round-btn,
  .mobile-view-navigator {
    pointer-events: auto !important;
  }

  /* 2. LA BARRE D'ICÔNES (TEXTE, IMAGE...) */
  .mobile-action-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 64px !important;
    background: white !important;
    z-index: 9000 !important;
    border-radius: 0 !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 6px 0 !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
    display: block !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08) !important;
  }

  /* 3. BLOC CTA */
  .mobile-cta-container {
    position: fixed !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    z-index: 1000 !important;
    border-radius: 0 !important;
    border-top: 1px solid #f3f4f6 !important;
    padding: 10px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04) !important;
  }

  /* 4. LE NAVIGATEUR DE VUE */
  .mobile-view-navigator,
  .mobile-view-navigator.mobile-only {
    position: fixed !important;
    bottom: calc(250px + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 8900 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: auto !important;
    max-width: 90vw !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    scrollbar-width: none;
  }

  .mobile-view-navigator::-webkit-scrollbar {
    display: none !important;
  }

  .mobile-view-navigator .view-button,
  .mobile-view-navigator .view-pill,
  .mobile-view-navigator > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}
/* FIN de @media max-width: 1024px */

html.customizer-booting #landscape-warning {
  display: none !important;
}

input, textarea, select {
  font-size: 16px !important;
}

body, html {
  overflow-x: hidden;
}

.di-handle.n,
.di-handle.s,
.di-handle.e,
.di-handle.w {
  display: none !important;
}

/* Bouton Flip/Miroir - bas droite, rond bleu */
.di-flip {
  position: absolute;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  pointer-events: auto !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  transition: all 0.15s ease;
  z-index: 101 !important;
}

.di-flip:hover {
  background: #4f46e5;
  transform: scale(1.1);
}

/* Desktop Flip */
@media (min-width: 1025px) {
  .di-flip {
    right: -14px;
    bottom: -14px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* Touch Flip */
@media (max-width: 1024px) {
  .di-flip {
    right: -20px;
    bottom: -20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .di-flip {
    right: -16px;
    bottom: -16px;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .di-flip {
    right: -14px;
    bottom: -14px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}


#productCanvas {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#canvasContent {
  /* On laisse le JS gérer la position exacte via transform */
  /* Mais on s'assure qu'il n'a pas de marges parasites */
  margin: 0;
  padding: 0;
  flex-shrink: 0; /* Empêche l'écrasement */
}
/* --- CORRECTIF SUPERPOSITION & SCROLL --- */

/* 1. Assure que les designs sont toujours au-dessus de tout */
.design-item {
  z-index: 1000 !important; /* Très haut pour être sûr */
  transform-style: preserve-3d;
}

/* 2. Assure que la zone de design n'écrase pas le contenu */
.design-area {
  z-index: 20 !important;
  pointer-events: none; /* Laisse passer les clics vers les items */
}
.design-area .design-item {
  pointer-events: auto !important; /* Réactive les clics sur les items */
}

/* 3. Débloque le scroll vertical sur les menus à droite sur PC */
.customization-sidebar, 
.options-panel, 
.designs-panel,
.drawer-body {
  overflow-y: auto !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain;
}
/* ============================================================ */
/* CORRECTIF Z-INDEX & SCROLL (SÉPARÉ MOBILE/PC) */
/* ============================================================ */

/* 1. ORDONNANCEMENT DES COUCHES (Pour que les designs soient devant) */
.product-view {
  isolation: isolate; /* Crée un contexte propre */
  z-index: 1;
}

/* Le T-shirt (tout au fond) */
.product-view > img, 
.product-mockup {
  z-index: 0 !important;
  position: absolute !important;
  pointer-events: none; /* Laisse passer le clic */
}

/* La zone de dessin (au milieu) */
.design-area {
  z-index: 10 !important;
  position: absolute !important;
}

/* Les designs ajoutés (tout devant) */
.design-item {
  z-index: 100 !important;
  transform-style: preserve-3d;
}

/* 2. PC UNIQUEMENT : Scroll fluide dans les menus */
@media (min-width: 1025px) {
  .customization-sidebar, 
  .designs-panel,
  .options-panel {
    overflow-y: auto !important; /* Active le scroll souris */
    scrollbar-width: thin; /* Barre fine */
  }
}

/* --- MOBILE : CENTRAGE PARFAIT --- */
@media (max-width: 768px) {
  .product-preview-section {
    /* On prend TOUT l'écran, le JS gérera l'évitement des boutons */
    width: 100vw !important;
    height: 100dvh !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* On s'assure que le flex ne force pas des positions bizarres */
    display: block !important; 
  }

  #productCanvas {
    display: block !important; /* On laisse le transform JS gérer la position */
  }
}

#landscape-warning {
  display: none; /* J'ai enlevé le !important ici */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2147483647 !important; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

#landscape-warning h2 {
  font-size: 24px;
  margin-top: 20px;
  color: #111;
  font-weight: 800;
}

#landscape-warning p {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

#landscape-warning svg {
  width: 80px;
  height: 80px;
  animation: rotate-phone 2s infinite ease-in-out;
}

/* Petite animation sympa pour montrer qu'il faut tourner */
@keyframes rotate-phone {
  0%, 100% { transform: rotate(-90deg); }
  50% { transform: rotate(0deg); }
}

/* 2. DÉCLENCHEMENT (La règle magique) */
/* Si l'orientation est paysage ET que la hauteur est petite (donc c'est un mobile) */
@media screen and (orientation: landscape) and (max-height: 600px) {
  
  /* On affiche l'alerte */
  #landscape-warning {
    display: flex !important;
  }

  /* OPTIONNEL : On cache tout le reste pour être sûr qu'on ne peut rien faire */
  .modern-customizer-section > *:not(#landscape-warning) {
    display: none !important;
  }
  
  /* On bloque le scroll */
  body {
    overflow: hidden !important;
  }
}
/* ============================================================
   MASTER RESET POSITIONNING (PC & MOBILE)
   Solution Universelle : On détache le contenu du flux normal
   pour laisser le JavaScript gérer le placement exact.
============================================================ */

/* 1. LA SCÈNE (Le Conteneur) */
.product-canvas, #productCanvas {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  text-align: left !important;
}

/* 2. L'ACTEUR (Le T-shirt) */
.canvas-content {
  position: absolute !important;   /* Indispensable pour que le JS fonctionne */
  top: 0 !important;               /* Départ tout en haut */
  left: 0 !important;              /* Départ tout à gauche */
  margin: 0 !important;            /* ZÉRO marge automatique */
  transform-origin: 0 0 !important; /* Le zoom part du coin haut-gauche */
  
  /* On nettoie les parasites */
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
}

.canvas-content {
    /* Nouvelle taille : min 600px, idéal 70vh (70% de la hauteur écran), max 900px */
    width: clamp(600px, 70vh, 900px) !important; 
    
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform-origin: 0 0 !important;
    margin: 0 !important;
  }

@media (min-width: 1025px) {
  .canvas-content {
    width: clamp(400px, 50vh, 600px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.product-view > img,
.product-mockup img {
  image-rendering: auto;
  -webkit-image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  will-change: transform;
}

.design-item img {
  image-rendering: auto;
  -webkit-image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

/* Empêcher le flou au zoom */
.canvas-content {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.canvas-content img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Drawers au-dessus de tout sur mobile */
@media (max-width: 1024px) {
  #customizationDrawer,
  #designFullDrawer {
    z-index: 10000 !important;
  }
}
@media screen and (max-width: 768px) {
    #text-options-root textarea.text-input,
    #text-options-root input {
        font-size: 16px !important;
    }
}

:root {
  --canvas-zoom: 1;
}


.di-trash {
  /* On combine le positionnement (-50%, -50%) avec l'inverse du zoom */
  transform: translate(-50%, -50%) scale(calc(1 / var(--canvas-zoom))) !important;
  /* Cette propriété aide à garder les bords nets lors des transformations */
  will-change: transform; 
}

/* HAUT-DROITE : ROTATION */
.di-handle.rot, .di-rotate {
  transform: translate(50%, -50%) scale(calc(1 / var(--canvas-zoom))) !important;
  will-change: transform;
}

/* BAS-DROIT : REDIMENSIONNEMENT */
.di-handle.se, .di-resize {
  transform: translate(50%, 50%) scale(calc(1 / var(--canvas-zoom))) !important;
  will-change: transform;
}

/* Optionnel : Assurez-vous que les SVG à l'intérieur ne subissent pas de lissage flou */
.di-handle-btn svg {
  shape-rendering: geometricPrecision; /* Rend le SVG plus net */
}

/* Dans customizer-style.css, ajoutez tout à la fin : */

.canvas-content {
  /* Annule l'optimisation qui cause le flou */
  will-change: auto !important; 
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

/* Force la netteté spécifique sur les éléments texte */
.oazar-text-node {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Une astuce pour forcer le rendu vectoriel sur certains navigateurs */
  transform: translateZ(0);
}

.technique-description { display: none; }
.technique-description.is-active { display: block; }
