/* ========================================================
   auth.css — Styles partagés pour toutes les pages auth
   (login, register, me, edit_profile, delete_account,
    my_reservations, allergies, fidelite…)
   ======================================================== */

/* ── Conteneurs ─────────────────────────────────────────── */
.auth-section,
.profile-section,
.account-section,
.resa-section {
  margin: 1.5rem auto 2.5rem;
  padding: 0 16px;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(30,16,0,.08));
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 8, 0, .06);
  padding: 1.2rem 1.3rem;
}
.card-title {
  margin: 0 0 .75rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
}
.card-actions {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ── Header de page ─────────────────────────────────────── */
.page-header { margin-bottom: 14px; }
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.header-row h1 { margin: 0 0 .2rem 0; font-size: 1.6rem; }

/* ── Alertes ────────────────────────────────────────────── */
.alert {
  border: 1px solid var(--line, rgba(30,16,0,.08));
  border-radius: 10px;
  padding: .8rem 1rem;
  margin: .75rem 0;
  font-size: .95rem;
}
.alert p { margin: 0 0 .25rem 0; }
.alert p:last-child { margin-bottom: 0; }
.alert-error   { background: #fff5f3; border-color: #f5cfc8; color: #7a2e2e; }
.alert-success { background: #f3fcf6; border-color: #b7e4c7; color: #1A5c35; }

/* ── Formulaires ────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-weight: 600; color: var(--text, #1A1208); font-size: .94rem; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1.5px solid #DDD6CB;
  border-radius: 8px;
  background: #fff;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text, #1A1208);
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand, #B5752E);
  box-shadow: 0 0 0 3px rgba(181, 117, 46, .15);
  outline: none;
}

/* ── Checkbox ───────────────────────────────────────────── */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  line-height: 1.15;
  font-size: .94rem;
}
.checkbox input[type="checkbox"] {
  margin: 0; width: 1rem; height: 1rem;
  padding: 0; border: 0;
  accent-color: var(--brand, #B5752E);
}

/* ── Password toggle ────────────────────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.3rem; }
.pw-toggle {
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #DDD6CB;
  background: #fff;
  border-radius: 6px;
  padding: .22rem .38rem;
  cursor: pointer;
  font-size: .88rem;
  line-height: 1;
  transition: background .15s;
}
.pw-toggle:hover { background: var(--bg-soft, #F3EDE3); }

/* ── Actions ────────────────────────────────────────────── */
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .35rem;
  align-items: center;
}

/* ── Boutons ────────────────────────────────────────────── */
/* Primaire */
.btn {
  background: linear-gradient(135deg, var(--brand, #B5752E), var(--brand-dark, #8A561C));
  color: #fff;
  padding: .68rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, filter .15s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  font-size: .95rem;
  box-shadow: 0 4px 14px rgba(181, 117, 46, .25);
  line-height: 1.3;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(181, 117, 46, .32); }
.btn:active { transform: translateY(0); }
.btn:focus  { outline: none; box-shadow: 0 0 0 3px rgba(181, 117, 46, .22); }

/* Ghost */
.btn-ghost {
  background: #fff;
  color: var(--text, #1A1208);
  border: 1.5px solid #DDD6CB;
  border-radius: 999px;
  padding: .62rem 1.1rem;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
  line-height: 1.3;
}
.btn-ghost:hover { background: var(--bg-soft, #F3EDE3); border-color: #C9BFB2; }

/* Succès */
.btn-success {
  background: linear-gradient(135deg, #1A7A48, #156039) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(26, 122, 72, .25) !important;
}
.btn-success:hover { filter: brightness(.96) !important; }

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #C23B22, #9A2E18) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(194, 59, 34, .25) !important;
}
.btn-danger:hover { filter: brightness(.95) !important; }

/* ── Utilitaires ────────────────────────────────────────── */
.muted { color: var(--muted, #7A6E63); }
small.muted { display: block; margin-top: .2rem; }
