/**
 * @file printers.scss
 * @brief Import des styles pour la page printers
 * @author Superpictor Team + AI Assistants
 * @created 2026-01-27
 * @modified 2026-01-27 by [AI:Claude] - Creation du fichier d'import
 */
/**
 * @file printers.scss
 * @brief Styles pour la page de recherche des ateliers de marquage
 * @author Superpictor Team + AI Assistants
 * @created 2026-01-27
 * @modified 2026-01-30 by [AI:Claude] - Ajout styles validation fichiers images
 *
 * @history
 *   2026-01-30 [AI:Claude] Ajout styles file-input-wrapper et file-error-message
 *   2026-01-29 [AI:Claude] Ajout style pour section filtre pays
 *   2026-01-29 [AI:Claude] Refacto inputs, boutons, checkboxes vers persyde
 *   2026-01-28 [AI:Claude] Ajout bouton fermer popup carte epinglee
 *   2026-01-27 [AI:Claude] Creation des styles printers
 */
.printers-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; }

.printers-header {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  border-radius: var(--radius-lg);
  color: white; }
  .printers-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: white; }
  .printers-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9; }

.printers-search-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
  padding: 8px; }
  .printers-search-bar .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center; }
    .printers-search-bar .search-input-wrapper .input {
      width: 350px;
      max-width: 100%;
      padding-right: 40px; }
  .printers-search-bar .search-reset {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--color-neutral-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition); }
    .printers-search-bar .search-reset:hover {
      background: var(--color-neutral-600); }
  .printers-search-bar button[type="submit"] {
    background: white !important;
    color: var(--color-primary-600) !important;
    border-color: var(--color-primary-600) !important; }

.printers-map-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); }
  .printers-map-container #printersMap {
    width: 100%;
    height: 100%; }
  .printers-map-container .leaflet-popup-close-button {
    display: none !important; }

.map-popup-card {
  position: relative;
  padding: 10px;
  min-width: 250px;
  background: var(--color-neutral-50); }
  .map-popup-card .map-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    z-index: 10; }
  .map-popup-card .map-popup-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 30px;
    margin-bottom: 10px; }
  .map-popup-card .map-popup-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--color-neutral-100);
    flex-shrink: 0; }
  .map-popup-card .map-popup-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0; }
  .map-popup-card .map-popup-info {
    flex: 1;
    min-width: 0; }
    .map-popup-card .map-popup-info h4 {
      margin: 0 0 4px 0;
      font-size: 1rem; }
    .map-popup-card .map-popup-info .map-popup-address {
      font-size: var(--font-size-caption);
      color: var(--color-text-secondary); }
  .map-popup-card .map-popup-technos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0; }
  .map-popup-card .map-popup-techno {
    background: var(--color-primary-50);
    color: var(--color-primary-600);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-caption); }
  .map-popup-card .map-popup-contact {
    margin-top: 10px; }
    .map-popup-card .map-popup-contact .prsd-btn {
      width: 100%; }

.printers-content {
  display: flex;
  gap: 30px; }

.printers-filters {
  width: 280px;
  flex-shrink: 0; }

.printers-filters-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 10px);
  margin-bottom: var(--spacing-lg, 20px); }
  .printers-filters-buttons .prsd-btn {
    width: 100%;
    text-align: center;
    justify-content: center; }

.printers-filters-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); }
  .printers-filters-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0; }
  .printers-filters-card h3.filter-section-title {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0; }

.printers-filters-card .checkbox {
  margin-bottom: 4px; }

.printers-results {
  flex: 1; }

.printers-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px; }
  .printers-results-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333; }

.printers-count {
  color: #888;
  font-size: 0.95rem; }

.printers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg); }

.printer-card .printer-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700; }
.printer-card .prsd-card__media-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white; }
.printer-card .prsd-card__media-wrapper .prsd-card__media {
  object-fit: contain !important;
  background: white; }
.printer-card .prsd-card__body {
  display: flex;
  flex-direction: column;
  flex: 1; }
  .printer-card .prsd-card__description::before {
    content: "📍 "; }
.printer-card .prsd-card__attributes {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: auto;
  margin-bottom: 15px; }
  .printer-card .prsd-card__attributes::-webkit-scrollbar {
    height: 3px; }
  .printer-card .prsd-card__attributes::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
    border-radius: 2px; }
  .printer-card .prsd-card__attributes::-webkit-scrollbar-thumb {
    background: var(--color-neutral-300);
    border-radius: 2px; }
.printer-card .prsd-card__attribute {
  flex-shrink: 0; }

.printers-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px; }
  .printers-pagination a, .printers-pagination span {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500; }
  .printers-pagination a {
    background: #f5f5f5;
    color: #333;
    transition: background 0.2s; }
    .printers-pagination a:hover {
      background: #667eea;
      color: white; }
  .printers-pagination .current {
    background: #667eea;
    color: white; }

.printers-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888; }
  .printers-no-results h3 {
    margin: 0 0 10px 0;
    color: #333; }

.btn-reset-filters {
  margin-top: 20px; }

.file-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center; }
  .file-input-wrapper .input--file {
    flex: 1; }
  .file-input-wrapper .file-reset-btn {
    flex-shrink: 0; }

.file-error-message {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--color-error-50, #fef2f2);
  border: 1px solid var(--color-error-300, #fca5a5);
  border-radius: var(--radius-md, 8px);
  color: var(--color-error-700, #b91c1c);
  font-size: var(--font-size-body-sm, 0.875rem); }

.success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s; }
  .success-popup-overlay.active {
    opacity: 1;
    visibility: visible; }

.success-popup {
  background: white;
  border-radius: var(--radius-lg, 12px);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: popupScale 0.3s ease; }

@keyframes popupScale {
  from {
    transform: scale(0.8);
    opacity: 0; }
  to {
    transform: scale(1);
    opacity: 1; } }

.success-popup-icon {
  width: 60px;
  height: 60px;
  background: var(--color-success-500, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
  font-weight: bold; }

.success-popup-message {
  font-size: 1.1rem;
  color: var(--color-text-primary, #333);
  margin: 0 0 25px 0; }

@media (max-width: 900px) {
  .printers-content {
    flex-direction: column; }
  .printers-filters {
    width: 100%; }
  .printers-filters-card {
    position: static; } }

@media (max-width: 600px) {
  .printers-header h1 {
    font-size: 1.8rem; }
  .printers-search-bar input[type="text"] {
    width: 100%; }
  .printers-grid {
    grid-template-columns: 1fr; } }

/**
 * @file contact-modal.scss
 * @brief Styles pour la modal de contact des ateliers de marquage
 * @author Superpictor Team + AI Assistants
 * @created 2026-01-27
 * @modified 2026-01-29 by [AI:Claude] - Refacto vers design system persyde
 *
 * @history
 *   2026-01-29 [AI:Claude] Refacto inputs, boutons vers persyde
 *   2026-01-27 [AI:Claude] Extraction des styles modal depuis printers.scss
 */
.printer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px; }
  .printer-modal-overlay.active {
    display: flex; }

.printer-modal {
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg); }

.printer-modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center; }
  .printer-modal-header h4 {
    margin: 0; }
  .printer-modal-header .modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center; }

.printer-modal-body {
  padding: var(--spacing-lg); }

.printer-modal-body .form-group {
  margin-bottom: var(--spacing-md); }

.form-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  align-items: flex-end; }
  .form-row .form-group {
    flex: 1 1 50%;
    min-width: 0;
    margin-bottom: 0; }
  .form-row .input {
    width: 100%; }

.printer-modal-body textarea.input {
  resize: vertical;
  min-height: 100px;
  padding: var(--spacing-sm) var(--spacing-md); }

.printer-modal-body .input--file {
  padding: var(--spacing-sm);
  border-style: dashed;
  cursor: pointer; }
  .printer-modal-body .input--file:hover {
    border-color: var(--color-primary-600); }
  .printer-modal-body .input--file::file-selector-button {
    background: white;
    color: var(--color-primary-600);
    border: 1px solid var(--color-primary-600);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition);
    margin-right: var(--spacing-sm); }
    .printer-modal-body .input--file::file-selector-button:hover {
      background: var(--color-primary-50); }

.printer-modal-body .btn-submit {
  width: 100%;
  margin-top: var(--spacing-md); }

.required {
  color: var(--color-error-600); }

.optional {
  color: var(--color-neutral-400);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-caption); }

.printer-login-required {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md); }
  .printer-login-required p {
    font-size: var(--font-size-h4);
    color: var(--color-neutral-700);
    margin-bottom: var(--spacing-lg); }

.preference-radios {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap; }

.radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer; }

.radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0; }

.radio__box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-neutral-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition); }
  .radio__box::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-neutral-600);
    transform: scale(0);
    transition: transform var(--transition); }

.radio__input:checked + .radio__box::after {
  transform: scale(1); }

.radio:hover .radio__box {
  background: var(--color-neutral-100); }

.radio__label {
  font-size: var(--font-size-body);
  color: var(--color-neutral-700); }

.printer-form-message {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-body-sm); }
  .printer-form-message.success {
    background: var(--color-success-50);
    color: var(--color-success-700);
    border: 1px solid var(--color-success-100); }
  .printer-form-message.error {
    background: var(--color-error-50);
    color: var(--color-error-700);
    border: 1px solid var(--color-error-100); }

/**
 * @file admin-view.scss
 * @brief Styles pour la page admin des ateliers de marquage
 * @author Superpictor Team + AI Assistants
 * @created 2026-01-30
 * @modified 2026-01-30 by [AI:Claude] - Ajout styles modales printer et techno
 *
 * @history
 *   2026-01-30 [AI:Claude] Ajout styles modales pour ajout printer et techno
 *   2026-01-30 [AI:Claude] Creation des styles admin printers
 */
.printers-admin {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: var(--color-neutral-100);
  min-height: 100vh; }

.printers-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); }
  .printers-admin-header h1 {
    margin: 0;
    font-size: var(--font-size-h3);
    color: var(--color-text-primary); }

.printers-admin-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center; }
  .printers-admin-actions #btnSaveAll {
    background: var(--color-success-600, #22c55e);
    border-color: var(--color-success-600, #22c55e);
    color: white; }
    .printers-admin-actions #btnSaveAll:hover {
      background: var(--color-success-700, #16a34a);
      border-color: var(--color-success-700, #16a34a); }
    .printers-admin-actions #btnSaveAll:disabled {
      opacity: 0.6; }

.btn-save-all {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-success-600);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  transition: background var(--transition); }
  .btn-save-all:hover {
    background: var(--color-success-700); }
  .btn-save-all:disabled {
    opacity: 0.5;
    cursor: not-allowed; }
  .btn-save-all.saving {
    background: var(--color-warning-500); }

.printers-admin-table-wrapper {
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto; }

.printers-admin-table {
  width: 100%;
  border-collapse: collapse; }
  .printers-admin-table th, .printers-admin-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-neutral-200); }
  .printers-admin-table th {
    background: var(--color-neutral-100);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-body-sm);
    color: var(--color-text-secondary);
    position: sticky;
    top: 0; }
  .printers-admin-table th.techno-col {
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    padding: var(--spacing-md) var(--spacing-xs); }
  .printers-admin-table td.techno-cell {
    text-align: center; }
  .printers-admin-table tr:hover {
    background: var(--color-neutral-100); }
  .printers-admin-table tr.inactive {
    opacity: 0.5; }

.printer-name {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary); }

.printers-admin-table .checkbox-cell {
  width: 40px; }
  .printers-admin-table .checkbox-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary-600); }

.priority-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-body-sm);
  text-align: center; }
  .priority-input:focus {
    outline: none;
    border-color: var(--color-primary-500); }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block; }
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0; }
  .toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-neutral-400);
    transition: var(--transition);
    border-radius: 24px; }
    .toggle-switch .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: var(--transition);
      border-radius: 50%; }
  .toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-success-500); }
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px); }

.printers-admin-toast {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-success-600);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1000; }
  .printers-admin-toast.error {
    background: var(--color-error-600); }
  .printers-admin-toast.show {
    display: block;
    animation: toastSlideIn 0.3s ease; }

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0; }
  to {
    transform: translateX(0);
    opacity: 1; } }

.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s; }
  .admin-modal-overlay.active {
    opacity: 1;
    visibility: visible; }

.admin-modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScale 0.3s ease; }
  .admin-modal--large {
    width: 600px;
    max-width: 95%; }
  .admin-modal--small {
    width: 400px;
    max-width: 95%; }
  .admin-modal .label {
    display: block;
    padding: 0;
    background-color: transparent;
    color: var(--field-label-color);
    font-size: var(--field-label-font-size);
    font-weight: var(--field-label-font-weight);
    line-height: var(--line-height-label);
    white-space: normal;
    text-shadow: none;
    border-radius: 0;
    vertical-align: baseline; }
    .admin-modal .label .required {
      color: var(--color-error-500); }

@keyframes modalScale {
  from {
    transform: scale(0.9);
    opacity: 0; }
  to {
    transform: scale(1);
    opacity: 1; } }

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--color-neutral-200); }
  .admin-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-h4);
    color: var(--color-text-primary); }

.admin-modal-body {
  padding: var(--spacing-lg); }

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-neutral-200);
  margin-top: var(--spacing-lg); }

.form-group {
  margin-bottom: var(--spacing-md); }
  .form-group .input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-body); }
    .form-group .input:focus {
      outline: none;
      border-color: var(--color-primary-500);
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
  .form-group select.input {
    cursor: pointer; }

.form-row {
  display: flex;
  gap: var(--spacing-md); }
  .form-row .form-group {
    flex: 1; }
    .form-row--3 .form-group {
      flex: 1; }
