/* Pages compte (inscription, connexion, compte, bienvenue) et pages légales. S'ajoute à style.css. */
.acc { min-height: 100vh; display: flex; flex-direction: column; }
.acc-top { padding: 18px 0; }
.acc-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-top a.back { font-weight: 600; font-size: 14.5px; color: var(--green-900); text-decoration: none; }
.acc-top a.back:hover { text-decoration: underline; }
.acc-main { flex: 1; display: grid; place-items: center; padding: 20px 0 60px; position: relative; overflow: hidden; }
.acc-main::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--sage-soft); right: -200px; top: -120px; }
.acc-main::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--sage-soft); left: -170px; bottom: -150px; }

.acc-card { position: relative; z-index: 1; width: min(480px, 100% - 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 34px 32px 28px; box-shadow: 0 30px 60px -30px rgba(0, 61, 37, .4); }
.acc-card--wide { width: min(760px, 100% - 32px); }
.acc-card h1 { font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.acc-card .lead { font-size: 15px; margin-bottom: 22px; }
.acc-pets { position: absolute; right: 18px; top: -70px; display: flex; align-items: flex-end; }
.acc-pets img { width: 74px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 61, 37, .2)); }
.acc-pets img + img { width: 60px; margin-left: -14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; color: var(--green-900); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: 15px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--sage-soft); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.check a, .acc-alt a, .legal a { color: var(--green); font-weight: 600; }
.form-err { min-height: 20px; color: #c0392b; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.form-ok { color: var(--green); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.acc-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Espace compte */
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.box { border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: #fff; }
.box h2 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.box p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.box dl { margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; }
.box dl div { display: flex; justify-content: space-between; gap: 10px; }
.box dt { color: var(--muted); }
.box dd { margin: 0; font-weight: 600; text-align: right; }
.box--sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; background: var(--sage-soft); border-color: transparent; }
.box--sub img { width: 86px; height: auto; flex: none; }
.box--sub > div { flex: 1; }
.box--sub.is-off { background: var(--tan-soft); }
.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.is-off .status { background: #9a5413; }
.price-line { font-size: 14.5px; color: var(--ink); margin: 6px 0 12px; }
.price-line b { font: 700 20px var(--display); color: var(--green-900); }
.link-btn { background: none; border: 0; padding: 0; font: 600 14px var(--body); color: var(--green); cursor: pointer; text-decoration: underline; }
.link-btn--danger { color: #c0392b; }
.acc-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 13.5px; }

/* Pages légales */
.legal { position: relative; z-index: 1; width: min(820px, 100% - 32px); margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 40px 44px; box-shadow: var(--shadow); }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .upd { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { color: #2c3a31; font-size: 15.5px; line-height: 1.65; }
.legal p { margin-bottom: 10px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }

@media (max-width: 560px) {
  .acc-card { padding: 28px 20px 22px; }
  .acc-card h1 { font-size: 24px; }
  .row2, .acc-grid { grid-template-columns: 1fr; }
  .box--sub { flex-direction: column; align-items: flex-start; }
  .acc-pets img { width: 58px; } .acc-pets img + img { width: 48px; }
  .acc-pets { top: -56px; }
  .legal { padding: 28px 20px; }
  .legal h1 { font-size: 26px; }
}
.danger { margin-top: 18px; }
.danger form { margin-top: 12px; }
#sub-text { margin: 8px 0 0; }
.field input, .field textarea { width: 100%; min-width: 0; }
.row2 > * { min-width: 0; }
.acc-main { padding-top: 90px; }
[hidden] { display: none !important; }
