/* bouton initial */
main .vitrage-btn {
  background-color: #eeeeee;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  width: 110px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* bouton hoverisé   */
main .vitrage-btn:hover {
  background-color: #3d8f51;
  color: white;
}

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

  .vitrage-container>div:first-child {
    order: 1;
    /* image en premier */
    width: 100%;
    /* prend toute la largeur */
  }

  .vitrage-container>div:last-child {
    order: 2;
    width: 100%;
    padding-top: 2rem;
  }
}

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

  /* ✅ Centrer le bouton sur mobile */
  .btn-container {
    justify-content: center !important;
  }

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

/* div 2  */
.vitrage-section {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 8%;
  box-sizing: border-box;
}

/* --- IMAGE GAUCHE --- */
.vitrage-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vitrage-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.vitrage-left img:hover {
  transform: scale(1.05);
}

/* --- FORMULAIRE DROITE --- */
.vitrage-right {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FORMULAIRE --- */
.vitrage-form {
  width: 100%;
  max-width: 650px;
  background: #fff;
  border: 2px solid #4FA862;
  padding: 3rem 3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* --- TITRE (si tu veux en ajouter un) --- */
.vitrage-form h3 {
  color: #4FA862;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- COLONNES --- */
.form-columns {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

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

/* --- LABELS --- */
label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  letter-spacing: 0.3px;
}

/* --- INPUTS / SELECTS --- */
input,
select {
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: #4FA862;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(79, 168, 98, 0.25);
}

/* --- MESURES EN LIGNE --- */
.measure-row {
  display: flex;
  gap: 1rem;
}

.measure-row label {
  flex: 1;
  position: relative;
}

/* Ajout “cm” plus discret et aligné */
.measure-row label::after {
  content: "cm";
  position: absolute;
  right: 10px;
  top: 57%;
  transform: translateY(-50%);
  color: #777;
  font-size: 0.9rem;
  pointer-events: none;
}

.measure-row input {
  padding-right: 2.3rem;
}

/* --- BOUTON --- */
.submit-btn {
  background: #4FA862;
  color: white;
  border: 2px solid #4FA862;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  align-self: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #fff;
  color: #4FA862;
  border-color: #4FA862;
  box-shadow: 0 3px 12px rgba(79, 168, 98, 0.25);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .vitrage-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

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

  .vitrage-left img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
  }

  .vitrage-form {
    max-width: 100%;
    padding: 2rem;
    gap: 1.8rem;
  }

  .form-columns {
    flex-direction: column;
  }

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

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

