/* ============================================
   Mariage — Lisa & Thomas
   Charte « Save the Date » — 5 couleurs de base :
   crème · rose · orange terracotta · pistache · doré
   ============================================ */

:root {
  /* --- Palette « Toussaint chic au Château de Chavagnac » --- */
  --cream:     #f3ebdd; /* ivoire pierre — fond */
  --champagne: #dcc9a3; /* champagne */
  --olive:     #7c8060; /* vert olivier */
  --rose:      #cea9a3; /* rose ancien */
  --rose-deep: #b57a86; /* bois de rose */
  --gold:      #b99733; /* or vieilli */
  --wine:      #733f4a; /* lie-de-vin */
  --saffron:   #d6a448; /* safran doux */

  /* --- Déclinaisons --- */
  --cream-2: #ecdfc4;
  --parchment: #dcc9a3;
  --rose-soft: #e3cfc8;
  --gold-soft: #d8c089;
  --pistache: #9ca07e;
  --pistache-deep: #6e7253;
  --orange: var(--saffron);   /* accents chauds (RSVP « non », etc.) */

  /* --- Encre / texte (brun-prune doux) --- */
  --ink: #4a3a33;
  --ink-soft: #5e4a42;
  --ink-muted: #8a7a6e;

  /* --- Filets / bordures --- */
  --rule: #d8c9a3;
  --rule-soft: #e6d8b8;

  /* --- Accent principal : lie-de-vin --- */
  --burgundy: var(--wine);
  --burgundy-deep: #5c313b;

  /* --- Vert (feuillage / nature) --- */
  --moss: var(--olive);

  --shadow: 0 1px 0 rgba(74, 58, 51, 0.04), 0 8px 24px -12px rgba(74, 58, 51, 0.2);
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}
/* Couleur de secours sous la photo ; #root reste transparent pour la laisser voir. */
html { background: var(--cream); }
#root { background: transparent; }
html { scroll-behavior: smooth; }
/* Décalage pour que la barre sticky ne masque pas le haut des sections */
.scroll-section { scroll-margin-top: 84px; }

body {
  position: relative;
  background-image:
    radial-gradient(1200px 800px at 20% -10%, rgba(168, 135, 83, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(107, 36, 23, 0.06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.12 0 0 0 0 0.07 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-blend-mode: multiply, multiply, normal;
}

/* Photo de fond : pseudo-élément réellement fixe (sans background-attachment: fixed,
   qui provoque saccades de scroll et bugs sur Safari/iOS). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(243, 235, 221, 0.40), rgba(243, 235, 221, 0.40)),
    url("/assets/background.png?v=1") center / cover no-repeat;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: "IM Fell DW Pica", "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.script {
  font-family: "Tangerine", "Cormorant Garamond", cursive;
  font-weight: 700;
}

.dropcap::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--burgundy);
  font-weight: 600;
}

/* ---------- Layout ---------- */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.page {
  flex: 1;
  padding: 56px 0 96px;
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .page { padding: 32px 0 64px; }
  .welcome-body { padding: 0 4px; }
}

/* ---------- Top Nav ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(243, 233, 210, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .amp {
  font-family: "Tangerine", cursive;
  font-size: 36px;
  line-height: 1;
  color: var(--rose);
  font-weight: 700;
  margin-top: -6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-item {
  background: none;
  border: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 0;
  position: relative;
  transition: color 160ms;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--burgundy); }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: var(--burgundy);
}
.nav-item.admin-tab {
  color: var(--gold);
}
.nav-item.admin-tab.active { color: var(--burgundy); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--rule);
  background: var(--cream-2);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.user-chip .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.user-chip.admin .avatar { background: var(--gold); color: var(--ink); }
.user-chip:hover { background: var(--parchment); }
.user-chip .badge {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--burgundy);
  color: var(--cream);
  padding: 2px 6px;
  margin-left: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--burgundy);
  --fg: #f6ecd5;
  appearance: none;
  border: 0;
  /* inline-block + max-width : sur un libellé long qui passe à la ligne (mobile),
     le padding s'applique à toute la boîte et le texte ne se fait pas recouvrir
     par le fond de la ligne suivante. */
  display: inline-block;
  max-width: 100%;
  text-align: center;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 0;
  transition: transform 100ms, background 160ms;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--burgundy-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--ink-soft);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(43, 32, 20, 0.04); }
.btn.gold { --bg: var(--gold); --fg: var(--ink); }
.btn.gold:hover { --bg: var(--gold-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cards / Surfaces ---------- */

.card {
  background: #fbf3df;
  border: 1px solid var(--rule);
  padding: 32px;
  position: relative;
}

.card.ornate::before,
.card.ornate::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
}
.card.ornate::before {
  top: 6px; left: 6px;
  border-right: 0; border-bottom: 0;
}
.card.ornate::after {
  bottom: 6px; right: 6px;
  border-left: 0; border-top: 0;
}

/* ---------- Ornamental dividers ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}
.divider .diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  background: #fbf3df;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 160ms;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--burgundy); }

/* ---------- Centered auth shell ---------- */

.auth-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fbf3df;
  border: 1px solid var(--rule);
  padding: 56px 48px;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-card .ornament {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 14px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

.auth-card.admin {
  border-color: var(--gold);
  background: #fff5dc;
}
.auth-card.admin .ornament { color: var(--burgundy); }

/* ---------- Profile grid ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.profile-tile {
  appearance: none;
  border: 1px solid var(--rule);
  background: #fbf3df;
  padding: 22px 16px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 100ms;
  font: inherit;
  color: var(--ink);
}
.profile-tile:hover {
  border-color: var(--burgundy);
  background: #fff5dc;
}
.profile-tile.selected {
  border-color: var(--burgundy);
  background: #fff5dc;
  box-shadow: 0 0 0 1px var(--burgundy) inset;
}
.profile-tile .avatar-lg {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  border: 2px solid var(--gold);
}
.profile-tile .name {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
}
.profile-tile .meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
/* Profil déjà réservé par un autre invité */
.profile-tile.claimed {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--cream-2);
}
.profile-tile.claimed:hover {
  border-color: var(--rule);
  background: var(--cream-2);
}
.profile-tile.claimed .avatar-lg {
  background: var(--ink-muted);
  border-color: var(--rule);
}
.profile-tile.claimed .meta {
  color: var(--orange);
  font-weight: 600;
}

/* ---------- RSVP (page Informations) ---------- */
.rsvp-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.rsvp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  background: #fbf3df;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 160ms, background 160ms;
  text-align: left;
}
.rsvp-opt:hover { background: #fff5dc; }
.rsvp-opt input { accent-color: var(--burgundy); width: 18px; height: 18px; }
.rsvp-opt.on {
  border-color: var(--pistache-deep);
  background: #f1f3df;
  box-shadow: 0 0 0 1px var(--pistache-deep) inset;
}
.rsvp-opt.no.on {
  border-color: var(--orange);
  background: #faeadf;
  box-shadow: 0 0 0 1px var(--orange) inset;
}

.rsvp-address {
  max-width: 420px;
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  text-align: left;
}
.rsvp-address label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rsvp-address textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
  background: #fbf3df;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  resize: vertical;
}
.rsvp-address textarea:focus { border-color: var(--burgundy); }

/* ---------- Home hero ---------- */

.hero {
  text-align: center;
  padding: 40px 0 24px;
}
.hero .greeting {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  color: var(--burgundy);
  margin-bottom: 8px;
}
.hero .couple {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.04em;
}
.hero .couple .amp {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  color: var(--rose);
  font-size: 1.6em;
  line-height: 0;
  margin: 0 8px;
}
.hero .date-line {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.welcome-body {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: left;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Info page ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }

.info-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 6px;
}
.info-card .label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.info-card .big {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.info-card .sub {
  font-size: 15px;
  color: var(--ink-muted);
}

.timeline {
  margin-top: 16px;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: baseline;
}
.timeline-row .t {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: var(--burgundy);
}
.timeline-row .l { font-size: 15px; color: var(--ink-soft); }

/* ---------- Game page ---------- */

.game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.game-canvas-frame {
  border: 1px solid var(--rule);
  padding: 10px;
  background: #fbf3df;
  position: relative;
  box-shadow: var(--shadow);
}
.game-canvas-frame canvas {
  display: block;
  background: #e8dab5;
  cursor: pointer;
  touch-action: manipulation;
}
.game-meta {
  display: flex;
  gap: 32px;
  align-items: baseline;
  margin-top: 4px;
}
.game-meta .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--burgundy);
  line-height: 1;
}
.game-meta .lbl {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.game-embed {
  border: 1px solid var(--rule);
  background: #fbf3df;
  padding: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.game-embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
  background: #e8dab5;
}
@media (max-width: 900px) {
  .game-embed iframe { height: 1400px; }
}
@media (max-width: 600px) {
  .game-embed iframe { height: 1500px; }
}

/* ---------- Admin table ---------- */

.admin-table {
  display: flex;
  flex-direction: column;
  min-width: 920px;
}
.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.85fr 88px 1.3fr 1.5fr 44px 44px;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--rule-soft);
}
.rsvp-select.yes { color: var(--pistache-deep); font-weight: 600; }
.rsvp-select.no { color: var(--orange); font-weight: 600; }
/* Cellule lecture seule (e-mail, adresse) : tronquée, complète au survol */
.admin-ro {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-right: 1px solid var(--rule-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  align-self: center;
}
.rsvp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--rule-soft);
  color: var(--ink-muted);
}
.rsvp-cell.yes { color: var(--pistache-deep); }
.rsvp-cell.no { color: var(--orange); }
.admin-fiche {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.admin-row:last-child { border-bottom: 0; }
.admin-row.admin-head {
  background: var(--parchment);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-row.admin-head > div { padding: 10px 14px; }

.admin-row input,
.admin-row select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule-soft);
  color: var(--ink);
  border-radius: 0;
  outline: none;
}
.admin-row input:focus,
.admin-row select:focus {
  background: #fff5dc;
}

.row-del {
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  font-size: 16px;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.row-del:hover {
  background: var(--burgundy);
  color: var(--cream);
}
/* ✉ mis en avant quand un message personnel existe */
.row-del.has-msg {
  color: var(--gold);
}
.row-del.has-msg:hover {
  color: var(--cream);
}

/* Éditeur de message personnel (ligne dépliée sous l'invité) */
.admin-msg {
  padding: 12px 14px 16px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--rule-soft);
}
.admin-msg label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.admin-msg textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
  background: #fff5dc;
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  resize: vertical;
}
.admin-msg textarea:focus {
  border-color: var(--burgundy);
}

/* ---------- Misc ---------- */

.center { text-align: center; }
.muted { color: var(--ink-muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.spacer-l { height: 32px; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--burgundy); cursor: pointer;
  font: inherit; text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--burgundy-deep); }

.error-msg {
  color: var(--burgundy);
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 12px;
}

/* Dropdown menu for user chip */
.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fbf3df;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  z-index: 20;
}
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.menu button:hover { background: var(--parchment); }
.menu .sep { height: 1px; background: var(--rule); }

/* ============================================================
   Responsive / Smartphone
   ============================================================ */
@media (max-width: 760px) {
  /* Barre de navigation : marque + compte sur une ligne,
     onglets sur une 2e ligne défilante horizontalement. */
  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px 12px;
  }
  .brand { font-size: 18px; gap: 8px; }
  .brand .amp { font-size: 28px; margin-top: -4px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
  }
  .nav::-webkit-scrollbar { height: 0; }
  .nav-item {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .user-chip { font-size: 13px; max-width: 60vw; }
  .user-chip > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Conteneurs / pages */
  .container { padding: 0 16px; }
  .page { padding: 28px 0 56px; }

  /* Accueil */
  .welcome-body { font-size: 17px; margin-top: 24px; }

  /* Connexion / sélection de profil */
  .auth-stage { padding: 24px 14px; }
  .auth-card { padding: 36px 22px; }
  .profile-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .profile-tile { padding: 16px 10px 14px; }
  .profile-tile .avatar-lg { width: 46px; height: 46px; font-size: 18px; }

  /* Cartes : un peu moins de rembourrage */
  .card { padding: 20px 18px; }

  /* Champs : police ≥ 16px pour éviter le zoom automatique iOS */
  input, select, textarea { font-size: 16px !important; }

  /* RSVP : pleine largeur */
  .rsvp-choice, .rsvp-address { max-width: 100%; }
}

@media (max-width: 420px) {
  .brand { font-size: 16px; gap: 6px; }
  .brand .amp { font-size: 24px; }
  .nav-item { padding: 7px 9px; font-size: 11px; }
  .auth-card { padding: 30px 18px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
