/* === CSS SELECTOR - Styles communs pour les sélecteurs de personnalisation === */

/* Container général */
.selector-container {
  margin: 20px 0;
}
.selector-block {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  margin-bottom: 15px;
}
.selector-block-title {
  font-weight: bold;
  font-size: 15px;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.selector-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #500665;
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
}

/* Validation */
.selector-validation-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  display: none;
}
.selector-validation-error.show {
  display: block;
}

/* Modal Styles */
.selector-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
}
.selector-modal-dialog {
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
}
.selector-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.selector-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.selector-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #500665;
}
.selector-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  opacity: 0.5;
}
.selector-modal-close:hover {
  opacity: 1;
}
.selector-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Grille de sélection */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.selector-grid-item {
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.selector-grid-item:hover {
  border-color: #500665;
  transform: scale(1.02);
}
.selector-grid-item.selected {
  border-color: #500665;
  background: #E8DFF0;
}
.selector-grid-item-preview {
  width: 100%;
  aspect-ratio: 4/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}
.selector-grid-item-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.selector-grid-item-preview svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.selector-grid-item-preview.no-design {
  background: #f5f5f5;
  border-radius: 4px;
  color: #999;
  font-size: 12px;
}
.selector-grid-item-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: #333;
}

/* Boutons communs */
.selector-btn-primary {
  padding: 8px 14px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.selector-btn-primary:hover {
  background: #3a044a;
}
.selector-btn-secondary {
  padding: 8px 14px;
  background: #AF82CB;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.selector-btn-secondary:hover {
  background: #9268B3;
}

/* Affichage sélection */
.selector-selected-display {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #E8DFF0;
  border: 1px solid #C7B5CE;
  border-radius: 4px;
}
.selector-selected-display.visible {
  display: flex;
}
.selector-selected-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border: 1px solid #C7B5CE;
}
.selector-selected-info {
  flex: 1;
}
.selector-selected-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}
.selector-selected-name {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.selector-selected-name small {
  font-weight: normal;
  color: #666;
  font-size: 12px;
}
.selector-action-btn {
  padding: 8px 10px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.selector-action-btn:hover {
  background: #3a044a;
}

/* Options (checkbox) */
.selector-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selector-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.selector-option-item:hover {
  border-color: #500665;
  background: #faf8fb;
}
.selector-option-item.checked {
  border-color: #500665;
  background: #E8DFF0;
}
.selector-option-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #500665;
  cursor: pointer;
}
.selector-option-label {
  flex: 1;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.selector-option-price {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.selector-option-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Radio buttons (boite cadeau) */
.selector-radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selector-radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.selector-radio-item:hover {
  border-color: #500665;
}
.selector-radio-item.selected {
  border-color: #500665;
  background: #E8DFF0;
}
.selector-radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #500665;
  cursor: pointer;
}
.selector-radio-label {
  flex: 1;
  font-size: 14px;
  color: #333;
}
.selector-radio-price {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.selector-radio-price.free {
  color: #500665;
}

/* === COUTEAU SELECTOR - Styles spécifiques === */

.couteau-container {
  margin: 20px 0;
}
.couteau-block {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  margin-bottom: 15px;
}
.couteau-block-title {
  font-weight: bold;
  font-size: 15px;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.couteau-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #500665;
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
}

/* Section 4 - Boite cadeau (radio buttons) */
.couteau-boite-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.couteau-boite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.couteau-boite-item:hover {
  border-color: #500665;
}
.couteau-boite-item.selected {
  border-color: #500665;
  background: #E8DFF0;
}
.couteau-boite-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #500665;
  cursor: pointer;
}
.couteau-boite-label {
  flex: 1;
  font-size: 14px;
  color: #333;
}
.couteau-boite-price {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.couteau-boite-price.free {
  color: #500665;
}

/* Section 5 - Options */
.couteau-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.couteau-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.couteau-option-item:hover {
  border-color: #500665;
  background: #faf8fb;
}
.couteau-option-item.checked {
  border-color: #500665;
  background: #E8DFF0;
}
.couteau-option-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #500665;
  cursor: pointer;
}
.couteau-option-label {
  flex: 1;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.couteau-option-price {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.couteau-option-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Validation */
.couteau-validation-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  display: none;
}
.couteau-validation-error.show {
  display: block;
}

/* Input + compteur */
.couteau-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.couteau-text-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 26px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'AmazoneCU', Arial, serif;
}
.couteau-text-input:focus {
  outline: none;
  border-color: #500665;
}
.couteau-char-count {
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  min-width: 65px;
  flex-shrink: 0;
}
.couteau-char-count.warning {
  color: #dc3545;
}

/* Boutons */
.couteau-buttons-row {
  display: flex;
  gap: 10px;
}
.couteau-buttons-row.hidden {
  display: none;
}
.couteau-choose-btn {
  padding: 8px 14px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.couteau-choose-btn:hover {
  background: #3a044a;
}
.couteau-no-design-btn {
  padding: 8px 14px;
  background: #AF82CB;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.couteau-no-design-btn:hover {
  background: #9268B3;
}

/* Affichage du dessin sélectionné */
.couteau-selected-display {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #E8DFF0;
  border: 1px solid #C7B5CE;
  border-radius: 4px;
}
.couteau-selected-display.visible {
  display: flex;
}
.couteau-selected-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border: 1px solid #C7B5CE;
}
.couteau-selected-info {
  flex: 1;
}
.couteau-selected-label {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}
.couteau-selected-name {
  font-weight: bold;
  color: #500665;
  font-size: 14px;
}
.couteau-selected-name small {
  font-weight: normal;
  color: #666;
  font-size: 12px;
}
.couteau-action-btn {
  padding: 8px 10px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.couteau-action-btn:hover {
  background: #3a044a;
}

/* Preview */
.couteau-preview-container {
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.couteau-preview-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
}
.couteau-preview-background-img {
  display: block;
  width: 100%;
  height: auto;
}
.couteau-preview-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.couteau-preview-placeholder {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 50px 20px;
}
.couteau-preview-disclaimer {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
}
.couteau-preview-disclaimer i {
  color: #500665;
  margin-right: 4px;
}

/* Modal Couteau */
.couteau-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
}
.couteau-modal-dialog {
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
}
.couteau-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.couteau-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.couteau-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #500665;
}
.couteau-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  opacity: 0.5;
}
.couteau-modal-close:hover {
  opacity: 1;
}
.couteau-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.couteau-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.couteau-grid-item {
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.couteau-grid-item:hover {
  border-color: #500665;
  transform: scale(1.02);
}
.couteau-grid-item.selected {
  border-color: #500665;
  background: #E8DFF0;
}
.couteau-grid-item-preview {
  width: 100%;
  aspect-ratio: 4/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}
.couteau-grid-item-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.couteau-grid-item-preview svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.couteau-grid-item-preview.no-design {
  background: #f5f5f5;
  border-radius: 4px;
  color: #999;
  font-size: 12px;
}
.couteau-grid-item-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: #333;
}

/* Modal Coffret */
.coffret-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.coffret-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.coffret-item:hover {
  border-color: #500665;
  background: #f0e8f5;
}
.coffret-image {
  width: 150px;
  height: 120px;
  object-fit: contain;
  border-radius: 4px;
  margin-right: 15px;
  flex-shrink: 0;
}
.coffret-info {
  flex: 1;
}
.coffret-name {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}
.coffret-price {
  font-weight: bold;
  color: #500665;
  font-size: 15px;
}
.coffret-select-btn {
  padding: 8px 16px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.coffret-select-btn:hover {
  background: #3a044a;
}

/* === AVATAR SELECTOR - Styles spécifiques === */

.avatar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: start;
  justify-content: center;
  padding-top: 5vh;
}
.avatar-modal-dialog {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
}
.avatar-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 70vh;
}
.avatar-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avatar-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}
.avatar-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  opacity: 0.5;
}
.avatar-modal-close:hover {
  opacity: 1;
}
.avatar-modal-body {
  padding: 15px 20px 5px 20px;
  overflow-y: auto;
}
.avatar-card-wrapper {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
  position: relative;
}
.avatar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.avatar-card-title {
  font-weight: bold;
  font-size: 14px;
}
.avatar-card-price {
  color: #500665;
  font-weight: normal;
  font-size: 13px;
  margin-left: 5px;
}
.avatar-card-remove,
.avatar-remove-selection {
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}
.avatar-card-remove {
  background: #500665;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
}
.avatar-card-remove:hover {
  background: #3a044a;
}
.avatar-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.avatar-card-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-card-prenom-input {
  flex: 1;
}
.avatar-choose-btn {
  padding: 6px 12px;
  background: #500665;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.avatar-choose-btn:hover {
  background: #3a044a;
}
.avatar-selected-display {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #E8DFF0;
  border: 1px solid #C7B5CE;
  border-radius: 4px;
}
.avatar-selected-display.visible {
  display: flex;
}
.avatar-selected-thumbnail {
  width: auto;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
}
.avatar-selected-info {
  flex: 1;
  font-size: 14px;
  color: #333;
}
.avatar-selected-badge {
  font-weight: bold;
  color: #500665;
}
.avatar-remove-selection {
  background: #500665;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.avatar-remove-selection:hover {
  background: #3a044a;
}
.avatar-add-card-btn {
  width: 100%;
  padding: 10px;
  background: #AF82CB;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
}
.avatar-add-card-btn:hover {
  background: #9268B3;
}
.avatar-add-card-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 10px;
}
.avatar-grid-item {
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.2s;
  aspect-ratio: 1;
  padding: 10px;
  position: relative;
}
.avatar-grid-item:hover {
  border-color: #500665;
  transform: scale(1.05);
}
.avatar-grid-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  margin: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.avatar-number {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #500665;
  font-weight: bold;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
}
.avatar-filters {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.avatar-filters-label {
  font-weight: bold;
  font-size: 14px;
  margin-right: 10px;
  color: #333;
}
.avatar-filter-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.avatar-filter-btn:hover {
  background: #e0e0e0;
  border-color: #500665;
}
.avatar-filter-btn.active {
  background: #500665;
  color: white;
  border-color: #500665;
}
.avatar-validation-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px;
  border-radius: 5px;
  margin: 10px 0;
  display: none;
}
.avatar-validation-error.show {
  display: block;
}

/* === LOADER AJOUT PANIER === */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.loader-overlay.visible {
  display: flex;
}
.loader-content {
  background: white;
  padding: 30px 50px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
.loader-spinner-container {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
}
.loader-spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  border: 4px solid #E8DFF0;
  border-top-color: #500665;
  border-radius: 50%;
  box-sizing: border-box;
  animation: loader-spin 1s linear infinite;
}
.loader-spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
.loader-content p {
  margin: 0;
  color: #500665;
  font-weight: 500;
  font-size: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Couteau */
  .couteau-input-row {
    flex-wrap: wrap;
  }
  .couteau-text-input {
    width: 100%;
    flex: none;
  }
  .couteau-char-count {
    width: 100%;
    text-align: right;
    margin-top: 5px;
  }
  .couteau-buttons-row {
    flex-wrap: wrap;
  }
  .couteau-selected-display {
    flex-wrap: wrap;
  }
  .couteau-selected-thumbnail {
    width: 50px;
    height: 50px;
  }
  .couteau-modal-overlay {
    padding: 0;
  }
  .couteau-modal-dialog {
    width: 95%;
    margin-top: 60px;
  }
  .couteau-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .coffret-item {
    flex-direction: column;
    text-align: center;
  }
  .coffret-image {
    margin-right: 0;
    margin-bottom: 10px;
    width: 180px;
    height: 140px;
  }
  .coffret-info {
    margin-bottom: 10px;
  }
  .couteau-boite-item {
    flex-wrap: wrap;
  }
  
  /* Avatar */
  .avatar-modal-overlay {
    align-items: flex-start;
    padding: 0;
  }
  .avatar-modal-dialog {
    width: 95%;
    max-height: 85vh;
    margin-top: 80px;
  }
  .avatar-modal-content {
    max-height: 85vh;
  }
  .avatar-modal-header {
    padding: 12px 15px;
    flex-shrink: 0;
  }
  .avatar-modal-title {
    font-size: 1.1rem;
  }
  .avatar-modal-close {
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
    opacity: 0.7;
  }
  .avatar-modal-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .avatar-filters {
    padding: 10px;
    margin-bottom: 0;
    gap: 8px;
    flex-shrink: 0;
    background: white;
    border-bottom: 2px solid #e0e0e0;
  }
  .avatar-filter-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(120px, auto);
    overflow-y: auto;
    padding: 10px;
    gap: 8px;
    flex: 1;
    min-height: 0;
  }
  .avatar-grid-item {
    border-width: 1px;
    width: 100%;
    min-height: 110px;
    height: auto;
  }
  
  /* Selector commun */
  .selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .selector-modal-dialog {
    width: 95%;
    margin-top: 60px;
  }
}
