:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --error: #c62828;
  --border: #ddd;
  --bg: #f7f7f5;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 2rem 1rem;
  color: #222;
}

.wizard {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wizard.wizard-wide { max-width: 720px; }

.logo { display: block; max-width: 220px; height: auto; margin: 0.5rem auto 1rem; }
h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.subtitle { margin: 0 0 1.5rem; color: #666; font-size: 0.9rem; line-height: 1.5; }

.step h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.hidden { display: none !important; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.field-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.3rem;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

button:hover { background: var(--primary-dark); }
button:disabled { background: #999; cursor: not-allowed; }

.btn-secondaire {
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}
.btn-secondaire:hover { background: var(--bg); }

.error {
  color: var(--error);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin-top: 0.5rem;
}

.creneau-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: #222;
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  padding: 0.6rem 0.8rem;
}

.creneau-btn:hover { border-color: var(--primary); }
.creneau-btn.selected { background: var(--primary); color: white; }

.animal-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: #222;
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  padding: 0.6rem 0.8rem;
}

#recap, #succes-recap { background: var(--bg); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }

/* Grille de créneaux façon CaptainVet : jours en colonnes, flèches de pagination. */
.jours-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.jours-nav .jour-titre {
  font-weight: 600;
  color: var(--primary-dark);
  min-width: 220px;
  text-align: center;
}

.nav-arrow {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-arrow:disabled { background: #ccc; }

.jours-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .jours-grille { grid-template-columns: 1fr; }
}

.jour-colonne { display: flex; flex-direction: column; }

.jour-entete {
  text-align: center;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.5rem;
}

.jour-entete .jour-nom { text-transform: capitalize; display: block; }
.jour-entete .jour-date { font-weight: 400; color: #666; font-size: 0.85rem; }

.creneau-heure {
  display: block;
  width: 100%;
  background: #eef6ee;
  color: var(--primary-dark);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.creneau-heure:hover { border-color: var(--primary); }
.creneau-heure.selected { background: var(--primary); color: white; }
.jour-vide { color: #999; font-size: 0.85rem; text-align: center; padding: 1rem 0; }

.rdv-carte {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.rdv-carte .rdv-date { font-weight: 600; }
.rdv-carte .rdv-detail { color: #555; font-size: 0.9rem; margin: 0.2rem 0 0.6rem; }
.rdv-carte .rdv-actions { display: flex; gap: 0.5rem; }
.rdv-carte .rdv-actions button { width: auto; flex: 1; padding: 0.45rem 0.6rem; font-size: 0.85rem; }
.rdv-carte .btn-annuler { background: white; color: var(--error); border: 1px solid var(--error); }
.rdv-carte .btn-annuler:hover { background: #fdecea; }
.rdv-carte .btn-deplacer { background: white; color: var(--primary-dark); border: 1px solid var(--primary); }
.rdv-carte .btn-deplacer:hover { background: var(--bg); }

.animal-ajoute-carte {
  border: 1px solid var(--primary);
  background: #eef6ee;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.animal-ajoute-carte .animal-ajoute-detail { font-size: 0.9rem; }
.animal-ajoute-carte button {
  width: auto;
  background: white;
  color: var(--error);
  border: 1px solid var(--error);
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.animal-ajoute-carte button:hover { background: #fdecea; }
#multi-duree-totale { font-size: 0.9rem; color: #555; margin: 0.5rem 0 1rem; }
