/* ========================================================
   La Fermette des Ours — style chaleureux & mobile-first
   ======================================================== */
:root {
  --paille:   #f6e6b4;
  --paille-2: #fbf3da;
  --terre:    #7a4f2a;
  --terre-2:  #9c6b3f;
  --herbe:    #7fae6e;
  --herbe-2:  #5e8c52;
  --creme:    #fffaf0;
  --texte:    #3b2c1e;
  --gris:     #8a7a68;
  --ombre:    0 6px 22px rgba(122, 79, 42, .14);
  --radius:   18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  color: var(--texte);
  background:
    radial-gradient(circle at 20% -10%, var(--paille-2), transparent 55%),
    radial-gradient(circle at 100% 0%, #eaf3e3, transparent 45%),
    var(--creme);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 24px 18px 48px; }

/* En-tête */
header { text-align: center; padding: 18px 0 8px; }
.logo { width: 92px; height: 92px; margin: 0 auto 6px; display: block; }
h1 {
  font-size: 1.9rem; margin: .2rem 0 .1rem; color: var(--terre);
  letter-spacing: .3px;
}
.tagline { color: var(--terre-2); margin: 0 0 4px; font-weight: 600; }
.sub { color: var(--gris); font-size: .95rem; margin: 0; }

/* Cartes */
.card {
  background: #fff;
  border: 1px solid #f0e3c8;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 20px;
  margin: 18px 0;
}
.card h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--terre); }

/* Bandeau stock */
.stock-banner {
  background: linear-gradient(135deg, var(--herbe), var(--herbe-2));
  color: #fff; text-align: center;
}
.stock-banner .big { font-size: 2.6rem; font-weight: 800; display: block; line-height: 1.1; }
.stock-banner small { opacity: .92; }
.stock-banner.empty { background: linear-gradient(135deg, #b98a5a, var(--terre)); }

/* Infos collecte */
.info-line { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.info-line .ico { font-size: 1.25rem; line-height: 1.4; }

/* Sélection de lots */
.lot {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #eadfc6; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px; background: var(--paille-2);
}
.lot .label { font-weight: 700; }
.lot .price { color: var(--terre-2); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--terre); color: #fff; font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; transition: transform .08s, background .2s;
}
.stepper button:hover { background: var(--terre-2); }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { background: #d8cbb4; cursor: not-allowed; }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* Formulaire */
label.field { display: block; margin-bottom: 12px; font-weight: 600; font-size: .95rem; }
label.field input {
  width: 100%; margin-top: 5px; padding: 12px 14px;
  border: 1px solid #e0d3b8; border-radius: 12px; font-size: 1rem;
  background: #fffdf8;
}
label.field input:focus { outline: 2px solid var(--herbe); border-color: var(--herbe); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Total + bouton */
.total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.15rem; margin: 14px 0; padding-top: 12px;
  border-top: 1px dashed #e3d6bb;
}
.total strong { font-size: 1.5rem; color: var(--terre); }

.btn {
  width: 100%; border: none; border-radius: 14px; padding: 16px;
  font-size: 1.1rem; font-weight: 800; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--herbe), var(--herbe-2));
  box-shadow: 0 6px 16px rgba(94,140,82,.35); transition: transform .08s, filter .2s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  background: #d8cbb4; box-shadow: none; cursor: not-allowed; color: #8c7d68;
}

.note { font-size: .85rem; color: var(--gris); text-align: center; margin-top: 10px; }
.error { color: #b3402f; font-weight: 600; text-align: center; margin-top: 10px; }

/* Confirmation */
.confirm { text-align: center; }
.confirm .check { font-size: 3rem; }
.confirm h2 { color: var(--herbe-2); }

/* Footer */
footer { text-align: center; margin-top: 28px; color: var(--gris); font-size: .85rem; }
footer a { color: var(--gris); text-decoration: none; opacity: .7; }
footer a:hover { text-decoration: underline; }

.hidden { display: none !important; }
