/* Marcher avec Jésus — précommande */
:root {
  --navy: #061c34;
  --navy-2: #124577;
  --ink: #10243c;
  --muted: #53657d;
  --gold: #f1c35c;
  --gold-dark: #b87b08;
  --line: #d8dfeb;
  --bg: #f4f6fa;
  --error: #b3261e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* En-tête et pied de page */
.site-header {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px max(6vw, 20px); border-bottom: 1px solid #ffffff24;
}
.brand { display: block; line-height: 0; }
.brand img { height: 60px; width: auto; }
nav { display: flex; gap: 28px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--gold); }
.site-footer { text-align: center; padding: 30px 20px; background: var(--navy); color: #fff; }
.site-footer img { height: 46px; width: auto; }
.site-footer p { margin: 8px 0 0; font-size: 14px; color: #c8d3e1; }

/* Présentation */
.hero {
  background: radial-gradient(ellipse at right, var(--navy-2), #061b33 70%); color: #fff;
  display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: center;
  padding: 64px max(8vw, 24px);
}
.hero img { width: 100%; max-width: 400px; justify-self: center; border-radius: 8px; box-shadow: 0 30px 60px #0006; }
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: 2px; color: var(--gold-dark); }
.hero .eyebrow, .hero h2 { color: var(--gold); }
h1 { font: clamp(40px, 6vw, 78px)/1.05 Georgia, serif; margin: 20px 0; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font: 34px/1.25 Georgia, serif; }
h3 { font-size: 23px; margin: 0 0 6px; }
h3:focus { outline: none; }
.price { font-size: 30px; font-weight: 700; }
.price small { font-size: 15px; font-weight: 400; }

/* Boutons */
.button, button {
  display: inline-block; background: linear-gradient(#ffdc7a, #e9ae28); color: #172032;
  border: 0; border-radius: 8px; padding: 15px 24px; text-decoration: none;
  font: 700 16px system-ui; cursor: pointer;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.wide { width: 100%; margin-top: 18px; }
.ghost { background: #fff; border: 1px solid #adbfd2; font-weight: 600; }
.link-button { background: none; padding: 6px 0; font-weight: 600; color: #0a5a8a; text-decoration: underline; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #5ca9da; outline-offset: 2px; }

/* Formulaire */
.order { padding: 48px max(6vw, 16px) 64px; }
.order > h2, .order > .eyebrow { text-align: center; }
.order > h2 { margin-top: 0; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 30px; }
.checkout { max-width: 680px; margin: 28px auto 0; scroll-margin-top: 16px; }
.narrow-notice { max-width: 680px; margin: 0 auto; }
label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
input, select {
  width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #abb9ca; border-radius: 7px;
  font: 16px system-ui; background: #fff; color: var(--ink);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); background: #fff8f7; }
.field-error { display: block; color: var(--error); font-size: 14px; margin-top: 2px; }
.row { display: flex; gap: 18px; }
.row > label { flex: 1; min-width: 0; }
input[type=radio], input[type=checkbox] { width: auto; margin: 0 8px 0 0; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend, .pay-title { font-weight: 600; font-size: 14px; padding: 0; margin: 0 0 8px; }
.muted { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.check { font-weight: 400; display: flex; align-items: flex-start; gap: 2px; }
.check input { margin-top: 5px; }
.trap { display: none; }
.digits { letter-spacing: 12px; font-size: 24px; max-width: 220px; display: block; }

.stepper { list-style: none; display: flex; gap: 8px; margin: 0 0 24px; padding: 0; counter-reset: s; }
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  padding-bottom: 10px; border-bottom: 3px solid var(--line);
}
.stepper span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--line); color: var(--ink); font-size: 14px;
}
.stepper li[aria-current] { color: var(--ink); border-color: #e9ae28; }
.stepper li[aria-current] span { background: #e9ae28; }
.stepper li.done { border-color: #2e8b57; }
.stepper li.done span { background: #2e8b57; color: #fff; font-size: 0; }
.stepper li.done span::after { content: "✓"; font-size: 14px; }

.total-line {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  border-top: 1px solid #c9d5e4; margin: 22px 0 0; padding-top: 16px; font-size: 20px;
}

.recap { background: #eaf0f8; border-radius: 12px; padding: 16px 20px; margin-top: 14px; }
.recap dl { margin: 0; }
.recap dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 15px; }
.recap dt { color: var(--muted); flex: none; }
.recap dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.recap .recap-total { border-top: 1px solid #c9d5e4; margin-top: 6px; padding-top: 10px; font-size: 19px; font-weight: 700; }
.recap .recap-total dt { color: var(--ink); }

.num {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12px; vertical-align: 1px;
}
.payment { flex: 1; border: 1px solid #adbfd2; border-radius: 8px; padding: 14px; background: #fff; margin: 0; cursor: pointer; }
.payment:has(input:checked) { border-color: #009ac9; background: #e6faff; }
.pay-step { margin-top: 20px; }
.payment-details { font-size: 15px; border-left: 4px solid #d8ac46; background: #fffaf0; padding: 10px 16px; border-radius: 0 8px 8px 0; margin-bottom: 10px; }
.payment-details p { margin: 4px 0; }
.pay-hint { font-size: 15px; color: var(--muted); background: #f4f6fa; border: 1px dashed #adbfd2; border-radius: 8px; padding: 12px 16px; margin: 0 0 10px; }
.pay-number { font-size: 24px; font-weight: 700; letter-spacing: 1px; color: var(--navy); }

.notice { background: #fff5d9; border-left: 4px solid #c79725; padding: 15px; border-radius: 5px; }
.form-errors { background: #fdecea; border-left: 4px solid var(--error); padding: 12px 16px; border-radius: 5px; margin-bottom: 16px; }
.form-errors p { margin: 0 0 4px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors:focus { outline: none; }

/* Pages simples */
.narrow { max-width: 760px; margin: 50px auto; }
.narrow h1 { font-size: 40px; margin-top: 6px; }
.big-ref { font: 700 28px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 1px; background: #eaf0f8; display: inline-block; padding: 10px 18px; border-radius: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }

/* Administration */
.site-header .admin-title { color: #fff; font-weight: 600; margin-right: auto; }
.site-header form { margin: 0; }
.site-header .header-link { color: #fff; font-size: 14px; white-space: nowrap; }
.site-header .header-link:hover { color: var(--gold); }
.site-header button { padding: 9px 14px; font-size: 14px; }
.admin { max-width: 1400px; margin: 0 auto; padding: 24px 20px 50px; }
.admin h1 { font-size: 36px; margin: 10px 0 18px; }
.flash { background: #e7f6ec; border-left: 4px solid #2e8b57; padding: 12px 16px; border-radius: 5px; }
.flash.error { background: #fdecea; border-color: var(--error); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 700; line-height: 1.25; }
.stat .sub { font-size: 13px; color: var(--muted); }
.stat.highlight { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat.highlight .label, .stat.highlight .sub { color: #c8d3e1; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.tabs a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { display: flex; gap: 8px; align-items: end; }
.search label { margin: 0; }
.search input { min-width: 260px; }
.search button { padding: 12px 18px; }
.scroll { overflow: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { padding: 12px; text-align: left; border-bottom: 1px solid #e3e8f0; vertical-align: top; }
th { background: #f7f9fc; font-size: 13px; color: var(--muted); }
td small { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.pending { background: #fff1c7; color: #7a5300; }
.badge.confirmed { background: #dff3e6; color: #1d6b3f; }
.badge.delivered { background: #dde8f6; color: #1b4a80; }
.badge.rejected { background: #fbe1df; color: #9b1c16; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row-actions form { margin: 0; }
.row-actions button { padding: 7px 10px; font-size: 13px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 16px; }
  .brand img { height: 40px; }
  nav { gap: 16px; font-size: 14px; }
  nav a:not([href$="#commande"]) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 35px 24px; gap: 25px; text-align: center; }
  .hero img { max-width: 280px; }
  .hero h1 { font-size: 51px; }
  .hero h2 { font-size: 25px; }
  .order { padding: 28px 12px; }
  .order h2 { font-size: 30px; }
  .card { padding: 20px; }
  .narrow { margin: 20px 12px; }
  .narrow h1 { font-size: 32px; }
  .row { gap: 10px; }
  .payment { padding: 12px 10px; }
  .stepper li { font-size: 13px; gap: 6px; }
  .recap { padding: 14px; }
  .search input { min-width: 0; }
  .admin h1 { font-size: 28px; }
}
