
:root {
  --jf-border: #d0d5dd;
  --jf-primary: #00c26f;
  --jf-primary-dark: #00a45f;
  --jf-text: #1f2933;
  --jf-muted: #6b7280;
  --jf-bg: #f7f8fa;
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  padding: 32px 8px;
  background: #edf1f7;
}

.form-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 20px 35px rgba(15, 23, 42, 0.12);
  padding: 32px 40px 40px;
}

h1 {
  text-align: center;
  margin: 0 0 4px;
  font-size: 26px;
  color: var(--jf-text);
}

.subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--jf-muted);
  margin-bottom: 24px;
}

.hero {
  margin: 0 -16px 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.hero-inner {
  position: relative;
  height: 200px;
}

/* Photo de la boulangerie */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo du gîte en médaillon */
.hero-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  background: #fff;
  object-fit: cover;
}

/* Bandeau texte déjà existant, à garder ou ajuster */
.hero-label {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 3px;
}

.info-text {
  font-size: 13px;
  color: var(--jf-muted);
  margin: 16px 0 28px;
  line-height: 1.5;
  text-align: center;
}

.section-title {
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--jf-text);
}

.section-subtitle {
  font-size: 12px;
  color: var(--jf-muted);
  margin-bottom: 12px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  margin-top: 8px;
}

.category-filter {
  font-size: 12px;
  color: var(--jf-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-filter select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--jf-border);
  font-size: 12px;
  background: #fff;
}

hr {
  border: none;
  border-top: 1px solid var(--jf-border);
  margin: 12px 0 18px;
}

.product-category-title {
  font-weight: 600;
  font-size: 14px;
  color: #2563eb;
  margin-bottom: 8px;
}

.product-list {
  border-top: 1px solid var(--jf-border);
  margin-bottom: 24px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 90px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  column-gap: 8px;
}

.product-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.product-main label {
  cursor: pointer;
}

.product-name {
  font-weight: 500;
}

.product-desc {
  font-size: 12px;
  color: var(--jf-muted);
}

.product-qty {
  text-align: center;
  font-size: 12px;
}

.product-qty span {
  display: block;
  margin-bottom: 4px;
  color: var(--jf-muted);
}

.product-qty input {
  width: 56px;
  padding: 4px 6px;
  text-align: center;
  border-radius: 3px;
  border: 1px solid var(--jf-border);
}

.product-price {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
}

.summary {
  text-align: right;
  font-size: 13px;
  margin: 12px 0 26px;
}

.summary div {
  margin-bottom: 2px;
}

.summary-label {
  font-weight: 500;
}

.summary-total {
  font-weight: 700;
}

.field-group {
  margin-bottom: 22px;
}

.field-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--jf-text);
}

.field-label small {
  color: #dc2626;
  margin-left: 2px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-row > * {
  flex: 1 1 180px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 3px;
  border: 1px solid var(--jf-border);
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.helper-text {
  font-size: 11px;
  color: var(--jf-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.submit {
  text-align: center;
  margin-top: 24px;
}

.submit button {
  border: none;
  border-radius: 4px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--jf-primary);
  color: #fff;
  transition: background 0.15s ease;
}

.submit button:hover {
  background: var(--jf-primary-dark);
}

@media (max-width: 640px) {
  .hero-inner {
    height: 180px;
  }

  .hero-logo {
    width: 70px;
    height: 70px;
    right: 12px;
    bottom: 12px;
  }
}


@media (max-width: 640px) {
  .form-wrapper {
    padding: 20px 16px 24px;
  }

  .hero {
    margin: 0 -8px 20px;
  }

  .product-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .product-price {
    grid-column: 2/3;
    grid-row: 1/2;
  }

  .product-qty {
    grid-column: 1/2;
    grid-row: 2/3;
    text-align: left;
  }
}
