

.produit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.form-section legend {
  font-weight: bold;
  padding: 0 10px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100%;
}

.form-col label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-col input,
.form-col select {
  padding: 10px;
}

/* Ligne de mesures */
.measure-row {
  display: flex;
  gap: 0.8rem;
}

.measure-row input {
  flex: 1;
}




/* ============================
   GRILLES D'IMAGES
============================ */
.produit-grid,
.cadre-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.produit-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.produit-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produit-item img:hover {
  transform: scale(1.05);
}

.produit-item span {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}


/* ==================== produit SECTION ==================== */
.produit-section {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  box-sizing: border-box;
}

/* Image gauche */
.produit-left {
  flex: 0 0 45%;
}

.produit-left img {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
  display: block;
}

/* Bloc droit */
.produit-right {
  flex: 0 0 55%;
  background: #fff;
  border: 2px solid #0b9866;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 5px;
}

.produit-content {
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0;
}

/* Titres */
.produit-title {
  color: #4FA862;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Séparateur */
.produit-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1rem 0;
}

/* ============================
   BOUTON D’ENVOI
============================ */
.submit-area {
  background: #4FA862;
  color: white;
  text-align: center;
  padding: 0.7rem 2rem;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  margin: 1.5rem auto 0;
  border-radius: 4px;
  transition: background 0.3s ease;
  user-select: none;
}

.submit-area:hover {
  background: #3c8a56;
}

/* ============================
   PANNEAU SUCCÈS POST-AJOUT (popup flottant)
============================ */
.success-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border-left: 6px solid #4FA862;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  min-width: 300px;
  max-width: 90vw;
}

.success-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4FA862;
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.success-message {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d7a40;
  margin: 0;
}

.success-sub {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.success-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-add-another {
  background: white;
  color: #4FA862;
  border: 2px solid #4FA862;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-another:hover {
  background: #4FA862;
  color: white;
}

.btn-send-quote {
  background: #4FA862;
  color: white;
  border: 2px solid #4FA862;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-send-quote:hover {
  background: #3c8a56;
}

.btn-send-quote:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-close-panel {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 0.25rem;
}

.btn-close-panel:hover {
  color: #333;
}

/* ============================
   WIDGET PANIER FLOTTANT
============================ */
.cart-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
}

.cart-btn {
  position: relative;
  background: #4FA862;
  color: white;
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.cart-btn:hover {
  background: #3c8a56;
  transform: scale(1.07);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  line-height: 1;
}

/* ============================
   MODAL DÉTAIL COMMANDE
============================ */
.order-modal {
  position: fixed;
  inset: 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.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.order-modal.show {
  opacity: 1;
  visibility: visible;
}

.order-modal-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.order-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #2d7a40;
}

.order-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.order-modal-close:hover {
  background: #f2f2f2;
  color: #333;
}

.order-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.order-customer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin-bottom: 1.2rem;
}

.order-customer p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.order-items-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.8rem;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.order-table th {
  background: #f5f5f5;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
}

.order-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: middle;
}

.order-table tr:last-child td {
  border-bottom: none;
}

.order-table tr:hover td {
  background: #fafafa;
}

.order-product-badge {
  display: inline-block;
  background: #e8f5ec;
  color: #2d7a40;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.order-modal-loading {
  text-align: center;
  padding: 2rem;
  color: #888;
}

.order-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}
