.sym-param-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  align-items: flex-end;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e2e2;   /* bord autour des filtres */
  border-radius: 8px;
  background: #fafafa;
}


.sym-param-filter-item label {
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sym-param-filter-item select,
.sym-param-filter-item input[type="search"] {
  min-width: 180px;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.sym-param-filter-actions {
  display: flex;
  gap: 0.5rem;
}

.sym-param-filter-actions button {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.85rem;
}


.sym-parametric-gallery {
  margin: 2rem 0;
  position: relative;
}

.sym-parametric-gallery.is-loading::after {
  content: "Chargement…";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.sym-param-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sym-param-card {
  flex: 0 0 calc(50% - 0.75rem); /* 2 par ligne */
}

@media (max-width: 700px) {
  .sym-param-card {
    flex: 0 0 100%;
  }
}

.sym-param-card-inner {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: left;
  background: #fafafa; /* fond plus neutre */
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}


.sym-param-card-inner:hover,
.sym-param-card-inner:focus-within {
  border-color: #61ce70;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  background: #ffffff;
}


.sym-param-card.is-selected .sym-param-card-inner {
  border-color: #61ce70;
  box-shadow: 0 0 0 2px rgba(97, 206, 112, 0.25);
}

.sym-param-thumb {
  flex: 0 0 300px;
  max-width: 300px;
  aspect-ratio: 1 / 1; /* carré 300x300 */
  height: auto;
  background: #fafafa;          /* même fond que la carte */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;    /* ✅ bord autour du thumbnail */
}


.sym-param-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .sym-param-card-inner {
    flex-direction: column;
  }
  .sym-param-thumb {
    flex: 0 0 auto;
    max-width: 100%;
  }
}


.sym-param-thumb-placeholder {
  font-size: 0.8rem;
  color: #888;
}

.sym-param-meta {
  flex: 1 1 auto;
}

.sym-param-title {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.sym-param-cat {
  margin: 0 0 .25rem;
  font-size: .85rem;
  color: #666;
}

.sym-param-desc {
  margin: 0 0 .25rem;
  font-size: .85rem;
  color: #444;
}

.sym-param-updated {
  margin: 0;
  font-size: .75rem;
  color: #888;
}

.sym-param-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.sym-param-page-btn {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 0.85rem;
}
.sym-param-page-btn:disabled {
  opacity: .5;
  cursor: default;
}

.sym-param-page-info {
  font-size: .85rem;
  color: #555;
}

.sym-param-details {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafafa;
}

.sym-param-details-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sym-param-details-thumb {
  flex: 0 0 120px;
  max-width: 120px;
}
.sym-param-details-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #e0e0e0; /* bord aussi dans la fiche détail */
}


.sym-param-details-main h2 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
}
.sym-param-details-cat {
  margin: 0 0 .5rem;
  font-size: .85rem;
  color: #666;
}
.sym-param-details-desc {
  margin: 0 0 .5rem;
}
.sym-param-details-updated {
  margin: 0;
  font-size: .8rem;
  color: #888;
}

.sym-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.sym-param-table th,
.sym-param-table td {
  border: 1px solid #ddd;
  padding: 0.35rem 0.4rem;
}
.sym-param-table th {
  background: #f0f0f0;
}
.sym-param-table code {
  font-size: .8rem;
}


/* --- Table variables : colonnes + layout --- */
.sym-param-table--vars{
  table-layout: fixed;
}

.sym-param-table--vars th.col-label,
.sym-param-table--vars td.col-label{ width: 52%; }

.sym-param-table--vars th.col-value,
.sym-param-table--vars td.col-value{ width: 30%; }

.sym-param-table--vars th.col-unit,
.sym-param-table--vars td.col-unit{ width: 18%; }

/* Evite que le contenu explose la colonne */
.sym-param-table--vars td.col-label,
.sym-param-table--vars td.col-unit{
  vertical-align: top;
}

/* Input/select prennent toute la colonne valeur */
.sym-param-table--vars .sym-param-var-input{
  width: 100%;
  box-sizing: border-box;
}

/* Libellé + description */
.sym-param-var-label{
  font-weight: 600;
  line-height: 1.15;
}

.sym-param-var-desc{
  margin-top: 2px;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.2;
}

/* Unité : min/max en petit et clair + unité dessous */
.sym-param-var-range{
  font-size: 0.78rem;
  color: #777;
  line-height: 1.2;
}

.sym-param-var-unit{
  margin-top: 2px;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.2;
}

/* Optionnel : sur petits écrans, on garde lisible */
@media (max-width: 700px){
  .sym-param-table--vars th.col-label,
  .sym-param-table--vars td.col-label{ width: 55%; }
  .sym-param-table--vars th.col-value,
  .sym-param-table--vars td.col-value{ width: 30%; }
  .sym-param-table--vars th.col-unit,
  .sym-param-table--vars td.col-unit{ width: 15%; }
}



.sym-param-error {
  color: #c0392b;
}


.sym-param-redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);          /* comme le module */
  z-index: 9999;                       /* dessus du reste de la page */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anneau animé identique visuellement au module */
.sym-param-redirect-spinner::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  border-top-color: #60B339;          /* vert Symbio */
  animation: symModuleSpin 0.9s linear infinite;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

/* Anim rotation (même que côté module) */
@keyframes symModuleSpin {
  to { transform: rotate(360deg); }
}

/* Boîte centrale identique au module */
.sym-param-redirect-spinner {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  font-size: 1.1rem;
  font-weight: 500;
  color: #3D3D3D;
  text-align: center;
  position: relative;
}

.sym-param-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1rem;
}

.sym-param-vars,
.sym-param-viewer {
  flex: 1 1 0;
  min-width: 280px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.sym-param-viewer { position: relative; }

.sym-param-vars h3,
.sym-param-viewer h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.sym-param-viewer-canvas {
  width: 100%;
  min-height: 320px;
  border-radius: 6px;
  background: #f5f5f5;
  overflow: hidden;
  flex: 1 1 auto;
}

.sym-param-viewer-dims {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #555;
}

@media (max-width: 900px) {
  .sym-param-layout {
    flex-direction: column;
  }
}

/* ---- Spinner visionneuse ---- */


.sym-param-viewer-spinner{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(2px);
  z-index:20;
  pointer-events:none;
}

.sym-param-viewer.is-loading .sym-param-viewer-spinner{ display:flex; }

/* Spinner (robuste + animé) */
.sym-spinner{
  display:inline-block;
  box-sizing:border-box;
  flex:0 0 auto;
  width:48px;
  height:48px;
  aspect-ratio:1 / 1;
  border:4px solid #ddd;
  border-top-color:#61ce70;
  border-radius:50% !important;
  line-height:0;
  animation:sym-spin .8s linear infinite;
}

/* petit spinner */
.sym-spinner--sm{
  width:14px;
  height:14px;
  border-width:3px; /* plus joli en petit */
}

@keyframes sym-spin{ to { transform:rotate(360deg); } }

.sym-param-status{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}

.sym-param-status-spinner{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

/* Boutons disabled */
.sym-param-vars-actions button.is-disabled,
.sym-param-vars-actions button:disabled{
  opacity:.55;
  filter:grayscale(.15);
  cursor:not-allowed !important;
  pointer-events:none;
}
.sym-param-vars-actions button:disabled{ box-shadow:none; }

/* bouton reset valeurs */

.sym-param-value-wrap{
  display:flex;
  align-items:center;
  gap:.4rem;
}

.sym-param-var-input{
  width:100%;
}

.sym-param-reset-btn{
  flex:0 0 auto;
  border:1px solid #e6e6e6;
  background:transparent;
  border-radius:999px;
  padding:.1rem .3rem;
  font-size:.8rem;
  line-height:1;
  opacity:.25;
  cursor:pointer;
}

.sym-param-reset-btn:hover{
  opacity:.6;
  background:#f7f7f7;
}

/* état désactivé */
.sym-param-reset-btn.is-disabled,
.sym-param-reset-btn:disabled{
  opacity:.12;
  cursor:default;
  pointer-events:none;
  background:transparent;
}

