/* =========================================================
   Je prépare mon mariage — organisateur de mariage gratuit
   Style : ivoire, vert sauge et doré. Typo Cormorant + Jost.
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-alt: #f3eee6;
  --surface: #ffffff;
  --surface-2: #f7f3ec;
  --border: #e4dccf;
  --text: #2d2a26;
  --text-muted: #7a7166;
  --accent: #6f8a6b;        /* vert sauge */
  --accent-strong: #56704f;
  --accent-soft: #e6ede3;
  --gold: #b8955a;
  --gold-soft: #f4ead8;
  --rose: #c77d74;
  --rose-soft: #f7e6e3;
  --ok: #4f8a5b;
  --warn: #c48a2c;
  --danger: #b5523f;
  --on-accent: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 10px 30px rgba(60, 45, 25, 0.08);
  --transition: 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1916;
    --bg-alt: #201f1b;
    --surface: #26241f;
    --surface-2: #2d2b25;
    --border: #3b3830;
    --text: #f1ece3;
    --text-muted: #aaa294;
    --accent: #93ae8e;
    --accent-strong: #a9c3a4;
    --accent-soft: #2f3a2d;
    --gold: #d2b27a;
    --gold-soft: #3a3226;
    --rose: #df988f;
    --rose-soft: #3d2926;
    --on-accent: #16180f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ----- Reset léger ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a3824a; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: var(--rose-soft); }
.icon-btn {
  border: 0; background: transparent; cursor: pointer; color: var(--text-muted);
  padding: 0.3rem 0.45rem; border-radius: 6px; line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); color: var(--danger); }

/* =========================================================
   Site vitrine (index.html)
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; white-space: nowrap; }
.brand-name em { color: var(--gold); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--accent-strong); }
.show-sm { display: none; }
.site-nav .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
  .brand-name { font-size: 1.2rem; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}

.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(ellipse at 50% 30%, var(--gold-soft), transparent 60%);
  z-index: -1;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: var(--gold); font-weight: 500; }
.hero h1 { margin: 0.8rem auto 1.2rem; max-width: 22ch; text-wrap: balance; }
.hero h1 em { color: var(--accent-strong); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.badges { display: flex; gap: 0.6rem 1.4rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; color: var(--text-muted); font-size: 0.92rem; }
.badges span::before { content: "✓ "; color: var(--accent); font-weight: 600; }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.8rem; }
.section-head p { color: var(--text-muted); margin-top: 0.8rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.feature .ico { font-size: 1.8rem; margin-bottom: 0.6rem; }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { padding-left: 3.2rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 1.3rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.compare thead th { background: var(--surface-2); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .us { background: var(--accent-soft); font-weight: 500; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--danger); }
.mid { color: var(--warn); }

.faq { max-width: 50rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin-top: 0.6rem; }

.cta-band { text-align: center; }
.cta-band p { color: var(--text-muted); margin: 0.8rem auto 1.6rem; max-width: 40rem; }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--text-muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--text-muted); }

.prose { max-width: 48rem; margin: 0 auto; padding: 3rem var(--gutter); }
.prose h1 { font-size: 2.4rem; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2rem; }

/* =========================================================
   Application (app.html)
   ========================================================= */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 1.2rem 0.9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.sidebar .brand { padding: 0 0.5rem; }
.sidebar .brand-name { font-size: 1.2rem; white-space: normal; line-height: 1.15; }
.couple-chip { padding: 0.8rem; background: var(--gold-soft); border-radius: var(--radius); font-size: 0.9rem; }
.couple-chip strong { font-family: var(--font-display); font-size: 1.2rem; display: block; line-height: 1.2; }
.tabs { display: flex; flex-direction: column; gap: 0.15rem; }
.tab {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.6rem 0.75rem; border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; text-align: left; color: var(--text); font-size: 0.95rem;
}
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.tab .t-ico { width: 1.4rem; text-align: center; }
.tab .t-count { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; }
.sidebar-foot button, .sidebar-foot a {
  background: none; border: 0; padding: 0.35rem 0.75rem; text-align: left; cursor: pointer;
  color: var(--text-muted); text-decoration: none; border-radius: 6px;
}
.sidebar-foot button:hover, .sidebar-foot a:hover { background: var(--surface-2); color: var(--text); }
.save-state { padding: 0 0.75rem; font-size: 0.78rem; color: var(--ok); }

.main { padding: clamp(1rem, 3vw, 2.2rem); min-width: 0; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.panel-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.panel-head p { color: var(--text-muted); }
.panel-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.stat .label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; margin: 0.2rem 0; }
.stat .sub { font-size: 0.85rem; color: var(--text-muted); }

.countdown { text-align: center; padding: 2rem 1rem; background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft)); }
.countdown .big { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1; color: var(--accent-strong); }
.countdown .names { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width var(--transition); }
.progress.over > span { background: var(--danger); }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-size: 0.85rem; color: var(--text-muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); min-width: 0;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 8rem; resize: vertical; }
.form-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.quick-add { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quick-add .input { flex: 1 1 200px; }
.quick-add select.input { flex: 0 1 180px; }

/* Tableaux de données éditables */
.data { width: 100%; border-collapse: collapse; }
.data th { text-align: left; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data td { padding: 0.3rem 0.35rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.cell {
  width: 100%; border: 1px solid transparent; background: transparent; padding: 0.35rem 0.4rem;
  border-radius: 6px; min-width: 4rem;
}
.cell:hover { border-color: var(--border); }
.cell:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.data .num { text-align: right; }
.data tfoot td { font-weight: 600; padding: 0.6rem 0.5rem; border-top: 2px solid var(--border); }
.data-scroll { overflow-x: auto; }
.data-scroll .data { min-width: 760px; }

.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.pill-ok { background: var(--accent-soft); color: var(--accent-strong); }
.pill-warn { background: var(--gold-soft); color: var(--gold); }
.pill-no { background: var(--rose-soft); color: var(--danger); }
.pill-mute { background: var(--surface-2); color: var(--text-muted); }

select.cell.st-oui { color: var(--ok); font-weight: 500; }
select.cell.st-non { color: var(--danger); }
select.cell.st-attente { color: var(--warn); }

/* Rétroplanning */
.period { margin-bottom: 1.4rem; }
.period-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.period-head h2 { font-size: 1.45rem; }
.period-head .when { font-size: 0.85rem; color: var(--text-muted); }
.period.is-late .period-head .when { color: var(--danger); font-weight: 500; }
.period.is-now { border-left: 3px solid var(--gold); padding-left: 0.8rem; }
.task {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0.4rem;
  border-bottom: 1px dashed var(--border);
}
.task:last-child { border-bottom: 0; }
.task input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--accent); flex: none; cursor: pointer; }
.task .t-body { flex: 1; min-width: 0; }
.task .t-title { cursor: text; }
.task.done .t-title { text-decoration: line-through; color: var(--text-muted); }
.task .t-tip { font-size: 0.85rem; color: var(--text-muted); }
.task .t-tag { font-size: 0.72rem; }
.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 99px;
  padding: 0.3rem 0.85rem; cursor: pointer; font-size: 0.88rem;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Plan de table */
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.table-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0.9rem; min-height: 160px; transition: border-color var(--transition), background var(--transition); }
.table-card.drop-hover, .unseated.drop-hover { border-color: var(--accent); background: var(--accent-soft); }
.table-card.full .tc-count { color: var(--danger); }
.table-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.table-card header .cell { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 0.1rem 0.3rem; border-radius: 6px; min-width: 0; flex: 1 1 100%; order: -1; }
.table-card header .cell:focus { border-color: var(--accent); outline: none; }
.tc-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.tc-places { width: 3.2rem; padding: 0.15rem 0.3rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.seat-list { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 2rem; }
.guest-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px;
  padding: 0.2rem 0.65rem; font-size: 0.85rem; cursor: grab; user-select: none;
}
.guest-chip.dragging { opacity: 0.4; }
.guest-chip.selected { border-color: var(--gold); background: var(--gold-soft); }
.guest-chip .kid { font-size: 0.7rem; color: var(--text-muted); }
.unseated { border: 1px dashed var(--border); border-radius: var(--radius); padding: 0.9rem; margin-bottom: 1rem; background: var(--surface); }

/* Déroulé Jour J */
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--border); }
.tl-item { position: relative; display: grid; grid-template-columns: 6.5rem 1fr 1fr 1fr auto; gap: 0.4rem; align-items: center; padding: 0.3rem 0; }
.tl-item::before { content: ""; position: absolute; left: -1.2rem; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.375rem; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface); }
.tl-item .cell { border: 1px solid transparent; background: transparent; padding: 0.35rem 0.4rem; border-radius: 6px; min-width: 0; width: 100%; }
.tl-item .cell:hover { border-color: var(--border); }
.tl-item .cell:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.tl-item .cell.time { font-weight: 600; }
@media (max-width: 760px) {
  .tl-item { grid-template-columns: 5.5rem 1fr auto; }
  .tl-item .cell.opt { grid-column: 2 / 3; }
}

/* Partenaires */
.partners-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.partner-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.1rem; }
.partner-card h3 { margin: 0.5rem 0 0.3rem; }
.partner-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.partner-link { color: var(--gold); font-weight: 500; text-decoration: none; }
.partner-link:hover { text-decoration: underline; }
.partner-site { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); max-width: 52rem; margin: 0 auto; }

/* Convocations / messages */
.msg-box { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 0.8rem; font-size: 0.92rem; border: 1px solid var(--border); }

.empty { text-align: center; color: var(--text-muted); padding: 2rem 1rem; }
.empty .ico { font-size: 2rem; margin-bottom: 0.4rem; }
.tip { background: var(--gold-soft); border-radius: var(--radius); padding: 0.8rem 1rem; font-size: 0.92rem; }
.tip strong { color: var(--gold); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }

/* Fenêtre de bienvenue */
dialog.modal {
  border: 0; border-radius: 14px; padding: 0; max-width: 34rem; width: calc(100% - 2rem);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
dialog.modal::backdrop { background: rgba(30, 25, 20, 0.45); backdrop-filter: blur(3px); }
.modal-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-body h2 { font-size: 1.9rem; }

.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(calc(100% + 2rem));
  visibility: hidden;
  background: var(--text); color: var(--bg); padding: 0.7rem 1.2rem; border-radius: 99px;
  font-size: 0.92rem; transition: transform var(--transition), visibility var(--transition); z-index: 100; max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

/* Mobile : barre d'onglets horizontale */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 0.8rem var(--gutter); }
  .sidebar .couple-chip, .sidebar-foot { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { width: auto; white-space: nowrap; }
  .tab .t-count { display: none; }
  .mobile-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
}

/* Impression : seul l'onglet affiché est imprimé */
@media print {
  .sidebar, .panel-actions, .no-print, .quick-add, .icon-btn, .toast, .mobile-bar, .filters { display: none !important; }
  .app { display: block; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; break-inside: avoid; }
  .data .cell, .tl-item .cell { border: 0 !important; }
  .data-scroll .data { min-width: 0; }
}

/* =========================================================
   Page de réponse des invités (reponse.html)
   ========================================================= */
.rsvp-page { background: radial-gradient(ellipse at 50% 0%, var(--gold-soft), var(--bg) 60%); min-height: 100vh; }
.rsvp { max-width: 34rem; margin: 0 auto; padding: clamp(1.5rem, 6vw, 3.5rem) 16px 1rem; }
.rsvp-card { text-align: center; padding: clamp(1.4rem, 5vw, 2.4rem); }
.rsvp-names { font-size: clamp(2.2rem, 9vw, 3.2rem); font-style: italic; color: var(--accent-strong); margin: 0.4rem 0; }
.rsvp-date { font-family: var(--font-display); font-size: 1.35rem; }
.rsvp-sep { border: 0; border-top: 1px solid var(--border); margin: 1.4rem auto; width: 40%; }
.rsvp-hello { margin-bottom: 1rem; }
.rsvp-choice { display: grid; gap: 0.6rem; }
.rsvp-btn {
  border: 1.5px solid var(--border); background: var(--surface); border-radius: 12px;
  padding: 0.9rem 1rem; font-size: 1.05rem; cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.rsvp-btn:hover { border-color: var(--accent); }
.rsvp-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.rsvp-card .field { text-align: left; }
.rsvp-send { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.rsvp-send .panel-actions { justify-content: center; margin-top: 0.6rem; }
.rsvp-send details { text-align: left; }
.rsvp-foot { text-align: center; padding: 0 16px 2rem; }

/* =========================================================
   Pages guides (SEO)
   ========================================================= */
.guide-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 0.2rem; }
.guide-nav a { font-size: 0.85rem; padding: 0.25rem 0.8rem; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; color: var(--text-muted); background: var(--surface); }
.guide-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.guide { max-width: 50rem; margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.guide h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.4rem 0 1rem; }
.guide h2 { font-size: 1.7rem; margin: 2rem 0 0.8rem; }
.guide .lead { font-size: 1.1rem; color: var(--text-muted); }
.guide p { margin-bottom: 0.6rem; }
.guide-cta { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1.5rem 0; background: var(--accent-soft); box-shadow: none; }
.guide-cta p { margin: 0; flex: 1 1 18rem; }
.checklist { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.checklist li { color: var(--text-muted); }
.checklist li strong { color: var(--text); font-weight: 500; }
.partner-aside { margin: 1.5rem 0; background: var(--gold-soft); box-shadow: none; }
.guide-link { text-decoration: none; color: inherit; transition: transform var(--transition), border-color var(--transition); }
.guide-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.guide .table-wrap .num, .compare .num { text-align: right; white-space: nowrap; }
