/* ── La Toque d'Or · Formulaire Devis ──────────────────────────────── */
:root {
  --lto-gold:       #B8935A;
  --lto-gold-light: #D4AF7A;
  --lto-gold-pale:  #F5EDD8;
  --lto-gold-dark:  #7A5C2E;
  --lto-border:     rgba(0, 0, 0, 0.15);
  --lto-text:       #1A1612;
  --lto-muted:      #6B5E4E;
  --lto-hint:       #A89880;
}

.lto-form-wrap {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--lto-text);
}

.lto-form {
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Sections ── */
.lto-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lto-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.lto-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #292524;
  margin-bottom: 18px;
}

/* Step badge */
.lto-step {
  width: 24px;
  height: 24px;
  background: #F5EDD8;
  color: #7A5C2E;
  border-radius: 50%;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Grilles ── */
.lto-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.lto-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 16px;
}
.lto-col-full { grid-column: 1 / -1; }

/* ── Champs ── */
.lto-field {
  margin-bottom: 14px;
}
.lto-grid-2 .lto-field,
.lto-grid-3 .lto-field {
  margin-bottom: 0;
}

.lto-field label:not(.lto-checkbox-label) {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lto-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Inputs pill-shape — aligne sur le thème VamTam du site (border-radius: 24px) */
.lto-field input[type="text"],
.lto-field input[type="tel"],
.lto-field input[type="email"],
.lto-field input[type="number"],
.lto-field input[type="date"],
.lto-field input[type="time"],
.lto-field select {
  width: 100%;
  padding: 11px 20px;
  border: 1px solid var(--lto-border);
  border-radius: 24px;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--lto-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Textarea : rayon plus doux (pas de pill sur un champ multi-lignes) */
.lto-field textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--lto-border);
  border-radius: 14px;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--lto-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 96px;
}

.lto-field input::placeholder,
.lto-field textarea::placeholder {
  color: var(--lto-hint);
}

.lto-field input:focus,
.lto-field select:focus,
.lto-field textarea:focus {
  outline: none;
  border-color: var(--lto-gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.15);
}

.lto-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23B8935A' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
  cursor: pointer;
}

.lto-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(0,0,0,0.03);
}

/* ── Checkbox boissons ── */
.lto-checkbox-label {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.lto-checkbox-label input[type="checkbox"] { display: none; }

.lto-checkbox-box {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #c4a46e;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.lto-checkbox-label:hover .lto-checkbox-box {
  border-color: var(--lto-gold);
}
.lto-checkbox-label input:checked ~ .lto-checkbox-box {
  background: var(--lto-gold);
  border-color: var(--lto-gold);
}
.lto-checkbox-label input:checked ~ .lto-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.lto-checkbox-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lto-text);
}
.lto-checkbox-text small {
  display: block;
  font-size: 11px;
  color: var(--lto-muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ── Bouton submit — pill shape comme le site ── */
.lto-btn-submit,
.lto-btn-submit:link,
.lto-btn-submit:visited,
.lto-btn-submit:hover,
.lto-btn-submit:focus,
.lto-btn-submit:active {
  color: #ffffff !important;
}
.lto-btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(to right, var(--lto-gold), #9a7840);
  border: none;
  border-radius: 24px;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: 24px;
  display: block;
  box-shadow: 0 4px 14px rgba(184,147,90,0.25);
  text-align: center;
}
.lto-btn-submit:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(184,147,90,0.35);
}
.lto-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* ── Messages d'état ── */
.lto-error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 13px;
  margin-top: 14px;
}

.lto-success-msg {
  background: #F5EDD8;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 24px;
}
.lto-success-icon {
  width: 56px; height: 56px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.lto-success-msg h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 600;
  color: #7A5C2E;
  margin: 0 0 8px;
}
.lto-success-msg p { font-size: 15px; color: var(--lto-muted); margin: 0; }

/* ── Responsive mobile ── */
@media (max-width: 640px) {
  /* Grilles → colonne unique */
  .lto-grid-2,
  .lto-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .lto-col-full { grid-column: 1; }

  /* Sections plus compactes */
  .lto-section { margin-bottom: 24px; padding-bottom: 20px; }
  .lto-section-title { font-size: 15px; margin-bottom: 14px; }

  /* Espacement entre champs */
  .lto-field { margin-bottom: 12px; }
  .lto-grid-2 .lto-field,
  .lto-grid-3 .lto-field { margin-bottom: 0; }

  /* Inputs : font-size 16px pour éviter le zoom iOS au focus */
  .lto-field input[type="text"],
  .lto-field input[type="tel"],
  .lto-field input[type="email"],
  .lto-field input[type="number"],
  .lto-field input[type="date"],
  .lto-field input[type="time"],
  .lto-field select,
  .lto-field textarea {
    font-size: 16px;
    padding: 12px 18px;
  }
  .lto-field select { padding-right: 38px; }

  /* Checkbox — gap réduit sur mobile */
  .lto-checkbox-label { gap: 14px; }

  /* Bouton : plus de hauteur pour les doigts */
  .lto-btn-submit { padding: 16px 20px; font-size: 15px; margin-top: 20px; }

  /* Message succès */
  .lto-success-msg { padding: 32px 20px; }
}
