/* ==========================================================================
   Plateforme digitale paroissiale — feuille de style
   Palette : bleu nuit liturgique, or, ivoire
   ========================================================================== */
:root {
  --navy: #1d2a44; --navy-2: #283a5e; --navy-3: #3a5080;
  --gold: #b8893b; --gold-2: #d8b06a; --gold-soft: #f4ead6;
  --ivory: #faf7f2; --paper: #ffffff; --line: #e7e1d6; --line-2: #d6cfc2;
  --ink: #1f2430; --ink-2: #545b69; --ink-3: #8a909c;
  --ok: #2f7d4f; --ok-bg: #e5f3ea; --warn: #9a6a00; --warn-bg: #fbf1d9;
  --bad: #b23a3a; --bad-bg: #f8e4e4; --info: #2c5b9a; --info-bg: #e5eef9;
  --wa: #1f9e5a;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(29,42,68,.06), 0 8px 24px rgba(29,42,68,.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--ink); background: var(--ivory); }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.pad { padding: 14px 16px; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a67a30; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--navy-3); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.brand-mark svg { width: 22px; fill: var(--gold-2); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-family: var(--serif); font-size: 17px; }
.brand-txt small { color: var(--ink-3); font-size: 11.5px; }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { white-space: nowrap; padding: 8px 9px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.mainnav a:hover { color: var(--navy); background: var(--ivory); }
.mainnav a.on { color: var(--navy); background: var(--gold-soft); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--navy); text-decoration: none; padding: 0; }
.icon-btn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.user-btn { border: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 10px 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

.notif { position: relative; }
.notif-panel { position: absolute; right: 0; top: 48px; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 18px 48px rgba(29,42,68,.18); overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.notif-head span { display: flex; gap: 12px; }
.notif-list { max-height: 380px; overflow: auto; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.notif-item:hover { background: var(--ivory); color: var(--ink); }
.notif-item.unread { background: #fbf8f1; border-left: 3px solid var(--gold); }
.notif-item .t { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.notif-item .d { color: var(--ink-3); font-size: 12px; }
.prio-haute .t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.notif-foot { display: block; text-align: center; padding: 10px; font-size: 13px; background: var(--ivory); }

.live-strip { display: flex; justify-content: center; align-items: center; gap: 10px; background: var(--bad); color: #fff; padding: 9px 16px;
  text-decoration: none; font-weight: 600; font-size: 14px; }
.live-strip:hover { color: #fff; background: #9c2f2f; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 500px at 85% 20%, rgba(216,176,106,.28), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(58,80,128,.7), transparent 60%); }
.hero-glyph { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .08; fill: var(--gold-2); }
.hero-in { position: relative; padding: 88px 0 96px; max-width: 680px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 58px); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 10px; display: block; }

.page-head { background: var(--navy); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0, rgba(216,176,106,.25), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: rgba(255,255,255,.78); margin: 8px 0 0; max-width: 680px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.crumbs a { color: rgba(255,255,255,.8); }

/* ---------- Sections & cartes ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--gold); }
.card-media { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel + .panel { margin-top: 20px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.meta span { display: inline-flex; gap: 5px; align-items: center; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }

.ph { aspect-ratio: 16/9; display: grid; place-items: center; width: 100%; }
.card a { text-decoration: none; }
.ph span { font-family: var(--serif); font-size: 54px; color: rgba(255,255,255,.85); }
.ph-0 { background: linear-gradient(135deg, #283a5e, #1d2a44); }
.ph-1 { background: linear-gradient(135deg, #b8893b, #8c6424); }
.ph-2 { background: linear-gradient(135deg, #3a5080, #283a5e); }
.ph-3 { background: linear-gradient(135deg, #6a5a8c, #3e3463); }
.ph.sq, img.sq { aspect-ratio: 1; object-fit: cover; }

/* Événement : bloc date */
.ev { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); align-items: start; }
.ev-date { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: 10px 0; }
.ev-date b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; }
.ev-date small { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--gold-2); }
.ev h3 { margin: 4px 0 6px; }
.ev h3 a { text-decoration: none; color: var(--navy); }
.places { font-size: 12.5px; font-weight: 600; }
.places.low { color: var(--bad); }

/* ---------- Badges, alertes ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eeece8; color: var(--ink-2); }
.badge-wa { background: #e3f6ec; color: var(--wa); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 18px 0 0; border: 1px solid; font-size: 14px; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe0cb; }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: #ecc2c2; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c4d6ef; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #ecd9a8; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.form-row.r3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 13.5px; color: var(--navy); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(58,80,128,.14); }
input[type=file] { font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }

/* Étapes d'inscription */
.steps { display: flex; gap: 8px; margin-bottom: 26px; counter-reset: s; }
.steps li { flex: 1; list-style: none; text-align: center; font-size: 12.5px; color: var(--ink-3); counter-increment: s; position: relative; padding-top: 38px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 600; background: #fff; }
.steps li.on { color: var(--navy); font-weight: 600; }
.steps li.on::before { border-color: var(--navy); background: var(--navy); color: #fff; }
.steps li.done::before { content: "✓"; border-color: var(--ok); background: var(--ok); color: #fff; }
.steps { padding: 0; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

.auth-wrap { max-width: 560px; margin: 48px auto; }
.auth-wrap.wide { max-width: 720px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f7f4ee; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]::after { content: " ↕"; opacity: .35; }
.tbl th.asc::after { content: " ↑"; opacity: 1; }
.tbl th.desc::after { content: " ↓"; opacity: 1; }
.dt-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.dt-bar input { max-width: 280px; }
.dt-pager { display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding: 12px 0; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.dt-pager button { min-width: 34px; height: 32px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; cursor: pointer; }
.dt-pager button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Boutique ---------- */
.product .price { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 650; }
.stock { font-size: 12.5px; color: var(--ink-2); }
.stock.out { color: var(--bad); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; background: #fff; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--navy); }
.qty input { width: 46px; border: 0; text-align: center; padding: 6px 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { position: sticky; top: 90px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 650; font-size: 18px; color: var(--navy); }

/* ---------- Divers ---------- */
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.prose { font-size: 16px; line-height: 1.75; }
.prose p { margin-bottom: 1.1em; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.cta-band { background: var(--gold-soft); border: 1px solid #ead9b6; border-radius: 18px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); }
.prog-cat { margin-bottom: 40px; }
.prog-cat h2 { display: flex; align-items: center; gap: 12px; }
.prog-cat h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prog { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.prog + .prog { margin-top: 10px; }
.prog .when { text-align: right; font-size: 13.5px; color: var(--ink-2); }
.prog .when strong { display: block; color: var(--navy); }
.video { aspect-ratio: 16/9; background: #0f1625; border-radius: var(--r); overflow: hidden; position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.75); padding: 20px; }
.video-off h3 { color: #fff; }
.live-badge { display: inline-flex; gap: 8px; align-items: center; background: var(--bad); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amounts .chip span { width: 100%; text-align: center; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat small { color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--navy); margin-top: 4px; line-height: 1.1; }
.stat .sub { font-size: 12.5px; color: var(--ink-2); }

/* Espace utilisateur */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.tabs a.on { color: var(--navy); border-color: var(--gold); }
.member-card { width: 100%; max-width: 420px; aspect-ratio: 1.586; border-radius: 18px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); box-shadow: 0 18px 40px rgba(29,42,68,.3); display: flex; flex-direction: column; justify-content: space-between; }
.member-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(216,176,106,.16); }
.member-card .mc-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); position: relative; z-index: 1; }
.member-card .mc-name { font-family: var(--serif); font-size: 22px; }
.member-card .mc-bottom { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 1; }
.member-card .qr { background: #fff; padding: 6px; border-radius: 8px; width: 104px; height: 104px; }
.member-card .qr img, .member-card .qr canvas { width: 92px !important; height: 92px !important; }
.pref { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--wa); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 4px 0 4px 18px; position: relative; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.wa-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #eef8f2; border: 1px solid #cfead9; border-radius: var(--r-sm); font-size: 13.5px; color: #1d5e3b; }
.wa-note svg { width: 20px; flex-shrink: 0; fill: var(--wa); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer h3, .footer h4 { color: #fff; }
.footer h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); }
.footer a { color: rgba(255,255,255,.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   Administration
   ========================================================================== */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: rgba(255,255,255,.8); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; padding: 4px 8px 18px; }
.side .brand-mark { background: var(--navy-2); }
.side .brand-txt small { color: rgba(255,255,255,.5); }
.side h6 { margin: 18px 10px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.side a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; }
.side a.item:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.item.on { background: rgba(216,176,106,.16); color: #fff; }
.side a.item .n { margin-left: auto; background: var(--gold); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 7px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); gap: 12px; position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 22px; margin: 0; }
.admin-body { padding: 26px 28px 60px; }
.admin-body .alert { margin: 0 0 18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .spacer { flex: 1; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { padding: 6px 8px; font-size: 13px; width: auto; }
.bar { height: 8px; background: #eee9df; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--wa); }
.wa-preview { background: #e9dfd2; border-radius: var(--r); padding: 18px; }
.wa-bubble { background: #fff; border-radius: 10px 10px 10px 2px; padding: 10px 12px; max-width: 360px; font-size: 14px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.side-toggle { display: none; }
code { background: #f1ede5; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ---------- Ticket 80 mm ---------- */
.ticket { width: 80mm; margin: 0 auto; padding: 4mm; font: 12px/1.45 "Courier New", monospace; color: #000; background: #fff; }
.ticket h2 { font: 700 15px/1.2 "Courier New", monospace; text-align: center; color: #000; margin: 0 0 2px; }
.ticket .c { text-align: center; }
.ticket hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.ticket table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ticket td { padding: 1px 0; vertical-align: top; }
.ticket td.r { text-align: right; white-space: nowrap; }
.ticket .tot { font-weight: 700; font-size: 14px; }
@media print {
  @page { size: 80mm auto; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1420px) {
  .mainnav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; padding: 12px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0,0,0,.08); display: none; margin: 0; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px; }
  .nav-toggle { display: block; order: 4; margin-left: 0; }
  .tools { margin-left: auto; }
}
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .summary { position: static; }
  .admin { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .side-toggle { display: inline-grid; }
  .admin-body, .admin-top { padding-inline: 16px; }
}
@media (max-width: 640px) {
  .brand-txt small, .tools .btn-gold { display: none; }
  .topbar-in { gap: 10px; }
  .form-row, .form-row.r3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .hero-in { padding: 56px 0 64px; }
  .section { padding: 44px 0; }
  .ev { grid-template-columns: 60px 1fr; padding: 16px; gap: 14px; }
  .prog { grid-template-columns: 1fr; }
  .prog .when { text-align: left; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
  .steps li { font-size: 0; }
}

/* Ajustements */
.badge { align-self: flex-start; }
.side { align-self: start; }
.admin-body .grid { align-items: start; }

@media (max-width: 640px) {
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-txt { min-width: 0; }
  .brand-txt strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
  .tools { gap: 6px; }
  .icon-btn, .avatar, .nav-toggle { width: 36px; height: 36px; }
  .nav-toggle { padding: 8px 7px; }
  .tools .btn-ghost { padding: 7px 10px; font-size: 12.5px; }
}
