.portecles-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  font-family: sans-serif;
}
.sidebar {
  flex: 1;
  min-width: 250px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
}
.option { margin-bottom: 20px; }
.option input[type="text"],
.option input[type="color"],
.option input[type="file"] {
  margin-top: 8px;
  padding: 6px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.formes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.formes label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.formes input { display: none; }
.shape {
  width: 60px;
  height: 60px;
  border: 2px dashed #aaa;
  margin-bottom: 5px;
}
.shape.rect { border-radius: 10px; }
.shape.carre { border-radius: 0; }
.shape.rond { border-radius: 50%; }
.shape.ovale { border-radius: 50% / 30%; width: 80px; }
.formes input:checked + .shape {
  border: 3px solid #6a0dad;
  background: #f2e6ff;
}
.preview-area {
  flex: 2;
  text-align: center;
}
.preview-shape {
  width: 300px;
  height: 300px;
  margin: auto;
  border: 3px solid #222;
  background: #6a0dad;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-shape img {
  max-width: 80%;
  max-height: 80%;
  position: absolute;
  object-fit: contain;
}
.preview-shape span {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  position: relative;
  z-index: 2;
}
.preview-shape.rect { border-radius: 10px; }
.preview-shape.carre { border-radius: 0; aspect-ratio: 1/1; }
.preview-shape.rond { border-radius: 50%; aspect-ratio: 1/1; }
.preview-shape.ovale { border-radius: 50% / 30%; }
