.decoupe-sur-mesure-page {
  color: #1c1c1c;
}

.activity-hero-image {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .activity-hero-image { max-height: 150px; }
}

.decoupe-sur-mesure-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.decoupe-material-card {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.decoupe-material-card:hover {
  transform: scale(1.02);
  border-color: #2b302e;
}

.decoupe-material-info {
  position: relative;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  text-align: center;
}

.decoupe-material-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.decoupe-material-subtitle {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decoupe-material-thicknesses {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.decoupe-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}

.decoupe-product-item {
  min-width: 0;
}

.decoupe-product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.decoupe-product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.decoupe-product-body {
  padding: 1rem 1rem 1.25rem;
}

.decoupe-product-kicker {
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.decoupe-product-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.decoupe-product-meta {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}

.decoupe-empty-state {
  width: 100%;
  padding: 2rem 1rem;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.04);
  color: #374151;
  text-align: center;
}

.decoupe-detail-page {
  color: #1c1c1c;
}

.decoupe-detail-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.decoupe-detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 18px;
}

.decoupe-detail-placeholder {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: #475569;
}

.decoupe-detail-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.decoupe-detail-breadcrumb {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.decoupe-detail-breadcrumb a {
  color: #1f2937;
  text-decoration: none;
}

.decoupe-detail-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.decoupe-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0;
}

.decoupe-price {
  font-size: 2rem;
  font-weight: 800;
}

.decoupe-price-sub {
  color: #64748b;
  font-size: 0.9rem;
}

.decoupe-description {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.decoupe-config-block {
  margin-bottom: 1.5rem;
}

.decoupe-field-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.decoupe-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.decoupe-variant-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 170px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.decoupe-variant-item.is-selected {
  border-color: #111827;
  box-shadow: inset 0 0 0 1px #111827;
}

.decoupe-variant-swatch {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-block;
  flex-shrink: 0;
}

.decoupe-variant-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.decoupe-variant-info small {
  color: #64748b;
  letter-spacing: 0.04em;
}

.decoupe-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.decoupe-shape-accordion {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.decoupe-shape-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  background: #f8fafc;
  padding: 0.9rem 1rem;
  text-align: left;
  color: #111827;
  cursor: pointer;
}

.decoupe-shape-summary-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
}

.decoupe-shape-summary-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.decoupe-shape-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.decoupe-shape-edit-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef2ff;
  color: #111827;
  font-size: 0.9rem;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
}

.decoupe-shape-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.decoupe-shape-selected-name {
  font-size: 1rem;
  font-weight: 700;
}

.decoupe-shape-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.decoupe-shape-panel.is-open {
  max-height: 500px;
}

.decoupe-shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.decoupe-shape-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decoupe-shape-option:hover {
  border-color: #111827;
}

.decoupe-shape-option.selected {
  border-color: #111827;
  box-shadow: inset 0 0 0 1px #111827;
}

.decoupe-shape-option input {
  display: none;
}

.decoupe-shape-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.decoupe-form-detail-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: left;
}

.decoupe-form-detail-summary-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 1rem;
}

.decoupe-form-detail-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.decoupe-form-detail-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.decoupe-form-detail-selected-name {
  font-size: 1rem;
  font-weight: 700;
}

.decoupe-form-detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.decoupe-form-detail-panel.is-open {
  max-height: 800px;
}

.decoupe-form-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  padding: 1rem 0 0;
}

.decoupe-form-detail-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decoupe-form-detail-option:hover {
  border-color: #111827;
}

.decoupe-form-detail-option.selected {
  border-color: #111827;
  box-shadow: inset 0 0 0 1px #111827;
}

.decoupe-form-detail-option > input[type="radio"] {
  display: none;
}

.decoupe-form-detail-image-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  align-self: center;
}

.decoupe-form-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: #334155;
}

.decoupe-form-detail-fields {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.decoupe-form-detail-fields label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.75rem;
  color: #475569;
}

.decoupe-form-detail-fields span {
  font-weight: 600;
}

.decoupe-form-detail-fields input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  background: #fff;
}

.decoupe-form-detail-fields input:focus {
  outline: 2px solid rgba(17, 24, 39, 0.15);
  border-color: #111827;
}

.decoupe-cta-row {
  margin-top: 1.5rem;
}

.decoupe-detail-section {
  padding-top: 1rem;
}

@media (max-width: 1400px) {
  .decoupe-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .decoupe-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .decoupe-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decoupe-product-image {
    height: 180px;
  }
}
