* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #222;
}

/* Conteneur principal */

.home-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* Carte standard (ACCUEIL) */

.home-card {
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 1.8rem 1.6rem 2rem;
  max-width: 520px; /* ⭐ Accueil : largeur raisonnable */
  width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Variante large (VIDE-GRENIER) */

.home-card-wide {
  max-width: 980px; /* ⭐ Page formulaire : vraiment plus large */
}

/* Logo */

.home-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.2rem;
}

/* Titres */

.home-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-subtitle {
  margin: 0.5rem 0 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #555;
}

/* Bandeau rose sous le titre (ACCUEIL) */

.home-banner {
  background: #ffe4e0;
  color: #c9483d;
  border-radius: 0.9rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

/* Bandeau infos (VIDE-GRENIER) */

.info-banner {
  background: linear-gradient(135deg, #ffe5ec, #fff2f6);
  border: none;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
  color: #b03052;
  box-shadow: 0 6px 14px rgba(176, 48, 82, 0.15);
  text-align: left;
}

/* Illustration sur l'accueil */

.home-hero {
  background: #fff6ea;
  border-radius: 1.2rem;
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.home-hero img {
  width: 100%;
  max-height: 260px;     /* ⭐ On limite la hauteur */
  object-fit: contain;
  display: block;
}

/* Actions / boutons sur l'accueil */

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 boutons côte à côte sur grand écran */
  gap: 1rem;
  margin-top: 1.3rem;
}

.home-actions .home-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #1b365d, #3a6fc1);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(27, 54, 93, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-actions .home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 54, 93, 0.35);
}

/* Séparateur doux (VIDE-GRENIER) */

.soft-separator {
  border: none;
  border-top: 1px dashed #ddd;
  margin: 1.0rem 0 1.3rem;
}

/* Formulaires */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem 1.3rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

input,
select,
textarea {
  border-radius: 0.7rem;
  border: 1px solid #d0d4dc;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff7a18;
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.2);
}

textarea {
  resize: vertical;
}

/* Bouton principal (formulaire) */

.form-actions {
  margin-top: 0.8rem;
}

.form-actions button {
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.35);
  font-size: 1.05rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 1rem;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 122, 24, 0.45);
}

/* Petites indications */

.hint {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
}

/* Jauge de remplissage vide-grenier */

.stock-gauge {
  margin-bottom: 1.2rem;
  text-align: left;
}

.stock-gauge-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.stock-gauge-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f0f2f5;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.stock-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  transition: width 0.4s ease;
}

.stock-gauge-text {
  font-size: 0.85rem;
  color: #555;
}

/* Footer (si tu l'utilises plus tard) */

.site-footer {
  padding: 1rem 0 1.5rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* RESPONSIVE */

/* Mobile : boutons en colonne */

@media (max-width: 650px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
}

/* Écrans moyens et grands : formulaire en 2 colonnes, un peu moins de marge haute */

@media (min-width: 700px) {
  .home-wrapper {
    padding-top: 1.5rem;
  }

  .home-card-wide .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}