:root {
  --bg: #F4F1E9;
  --bg-2: #EFEAE0;
  --card: #FFFDF8;
  --ink: #1E1C18;
  --ink-2: #39352D;
  --muted: #6E685C;
  --muted-2: #928A7A;
  --line: #E3DCCB;
  --line-2: #D2C8B2;
  --accent: #A67C2E;
  --accent-d: #85611F;
  --accent-soft: #F3E8CF;
  --ok: #2F6B4F;
  --ok-soft: #E7F0E9;
  --err: #A33B2B;
  --err-soft: #F8E7E2;
  --warn: #8A6520;
  --warn-soft: #FBF0D9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px 52px 28px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 28, 24, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.auth-brand:hover { text-decoration: none; }
.auth-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--accent-soft);
  display: grid; place-items: center; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.auth-brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1;
  display: flex; flex-direction: column;
}
.auth-brand-name small {
  font-family: var(--sans);
  font-size: .55rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.auth-aside h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.2vw, 2.45rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 30px 0 12px;
  max-width: 430px;
}
.auth-aside h2 em { color: var(--accent-d); font-style: italic; }
.auth-lead { color: var(--muted); font-size: .86rem; line-height: 1.55; max-width: 390px; margin: 0; }

.auth-plan { margin: 24px 0 20px; max-width: 300px; }
.auth-plan svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(30, 28, 24, .10)); }

.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; max-width: 410px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .76rem; color: var(--ink-2); line-height: 1.45; }
.auth-points i { color: var(--ok); font-size: .72rem; margin-top: 2px; }

.auth-quote {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.auth-avatar {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-d);
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; letter-spacing: .02em;
}
.auth-quote p { margin: 0; font-size: .68rem; color: var(--muted); line-height: 1.45; }
.auth-quote b { color: var(--ink-2); }

.auth-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .58rem; color: var(--muted-2);
  letter-spacing: .02em;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 32px;
  background:
    radial-gradient(circle at 78% 12%, rgba(166, 124, 46, .07), transparent 38%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 424px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px 36px 34px;
  box-shadow: 0 22px 60px rgba(30, 28, 24, .09), 0 2px 6px rgba(30, 28, 24, .04);
}

.auth-brand-mobile { display: none; }

.auth-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.auth-sub { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 0 0 22px; }

.auth-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-d);
  font-size: 18px; margin-bottom: 16px;
}

.auth-form { display: grid; gap: 0; }
.auth-field { display: block; margin-bottom: 14px; }
.auth-field > span {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth-field input,
.auth-field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #FFFCF5;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .84rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input::placeholder { color: #ABA18E; }
.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(166, 124, 46, .15);
}

.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 18px;
  font-size: .74rem; color: var(--muted);
}
.auth-row a { font-weight: 600; font-size: .72rem; }

.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; color: var(--muted); cursor: pointer;
}
.auth-check input { accent-color: var(--accent); width: 14px; height: 14px; }
.auth-check-block { align-items: flex-start; margin: 2px 0 18px; line-height: 1.5; }

.auth-hint { font-size: .66rem; color: var(--muted-2); margin: -4px 0 14px; line-height: 1.45; }

.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px;
  border: 0; border-radius: 9px;
  background: var(--ink); color: #FBF7EC;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.auth-btn:hover { background: #000; text-decoration: none; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn i { font-size: .72rem; }
.auth-btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.auth-btn-ghost:hover { background: var(--bg-2); }

.auth-alert {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: .74rem;
  line-height: 1.45;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.auth-alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #C9DCCD; }
.auth-alert.err { background: var(--err-soft); color: var(--err); border-color: #EBC9C0; }
.auth-alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #E9D5A9; }

.auth-note { font-size: .68rem; color: var(--muted-2); line-height: 1.5; margin: 16px 0 0; text-align: center; }
.auth-note code, .auth-dev code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; background: var(--bg-2); padding: 1px 4px; border-radius: 4px; }

.auth-dev {
  margin-top: 18px; padding: 12px;
  background: var(--warn-soft);
  border: 1px dashed #D9B96B;
  border-radius: 8px;
  font-size: .66rem; line-height: 1.5; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.auth-dev b { display: block; margin-bottom: 4px; color: var(--warn); }
.auth-dev a { font-size: .64rem; }

.auth-alt { text-align: center; margin: 18px 0 0; font-size: .76rem; color: var(--muted); }
.auth-alt-fine { margin-top: 8px; font-size: .68rem; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.muted { color: var(--muted); font-size: .78rem; line-height: 1.55; }

@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 26px 18px 40px; align-items: start; }
  .auth-card { max-width: 460px; margin: 12px auto 0; padding: 30px 26px; }
  .auth-brand-mobile { display: flex; margin-bottom: 26px; }
}

@media (max-width: 480px) {
  .auth-card { border: 0; box-shadow: none; background: transparent; padding: 8px 2px 20px; }
  .auth-main { background: var(--bg); }
  .auth-card h1 { font-size: 1.72rem; }
  .auth-grid2 { grid-template-columns: 1fr; gap: 0; }
}

/* ─── PAGE PUBLIQUE RSVP ─── */
.rsvp-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(166, 124, 46, .08), transparent 40%),
    var(--bg);
}
.rsvp-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px;
  box-shadow: 0 22px 60px rgba(30, 28, 24, .09);
}
.rsvp-card h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 8px; }
.rsvp-event { font-family: var(--serif); font-size: 1.18rem; margin: 2px 0 6px; color: var(--ink); }
.rsvp-meta { color: var(--muted); font-size: .76rem; line-height: 1.6; margin: 0 0 18px; }
.rsvp-meta i { color: var(--accent); width: 14px; }
.rsvp-status { display: inline-block; padding: 3px 7px; border-radius: 5px; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); color: var(--muted); }
.rsvp-status.confirmed { background: var(--ok-soft); color: var(--ok); }
.rsvp-status.declined { background: var(--err-soft); color: var(--err); }
.rsvp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 6px; }
.rsvp-btn { height: 46px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-family: var(--sans); font-size: .76rem; font-weight: 600; cursor: pointer; }
.rsvp-btn.yes { background: var(--ink); color: #FBF7EC; border-color: var(--ink); }
.rsvp-btn:hover { opacity: .9; }
.rsvp-note { color: var(--muted-2); font-size: .62rem; line-height: 1.5; text-align: center; margin-top: 14px; }
@media (max-width: 480px) { .rsvp-card { padding: 24px 20px; } .rsvp-actions { grid-template-columns: 1fr; } }
