/* css sur mobile */
@media (max-width: 768px) {
    .vitrage-container {
        flex-direction: column;
    }

    .vitrage-container>div:first-child {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .vitrage-container>div:last-child {
        flex: 0 0 auto;
        width: 100%;
        padding: 1rem;
    }

    .btn-container {
        justify-content: center !important;
    }

    .btn-container button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

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

/* Image gauche */
.cloisons-left {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloisons-left img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Bloc droit */
.cloisons-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;
}

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

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

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

/* Grilles */
.cloisons-grid,
.cadre-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  justify-items: center;
}

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

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

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

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

/* Formulaire */
.cloisons-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.cloisons-form-2col label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
  display: block;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cloisons-form-2col input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  outline: none;
  border-radius: 3px;
  transition: border-color 0.2s ease;
}

.cloisons-form-2col input:focus {
  border-color: #4FA862;
}

.measure-row {
  display: flex;
  gap: 0.8rem;
}

.measure-row input {
  flex: 1;
}

/* Bouton */
.submit-area {
  background: #4FA862;
  color: white;
  text-align: center;
  padding: 0.7rem 2rem;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  width: fit-content;
  margin: 1.2rem auto 0;
  transition: background 0.3s ease;
  user-select: none;
  border-radius: 4px;
}

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

/* Sélection (style cliqué) */
.cloisons-item img.selected {
  outline: 3px solid #4FA862;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* ✅ Responsive */
@media (max-width: 991px) {
  .cloisons-section {
    flex-direction: column;
    padding: 1rem;
  }

  .cloisons-left,
  .cloisons-right {
    flex: 0 0 100%;
  }

  .cloisons-left img {
    height: auto;
    object-fit: contain;
  }

  .cloisons-content {
    width: 100%;
    padding: 1rem;
  }

  .cloisons-grid,
  .cadre-placeholder {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.6rem;
  }

  .cloisons-item img {
    width: 65px;
    height: 65px;
  }

  .cloisons-item span {
    font-size: 0.8rem;
  }

  .cloisons-form-2col {
    grid-template-columns: 1fr;
  }

  .measure-row {
    flex-direction: column;
  }

  .submit-area {
    width: 100%;
  }
}
