/* ============================================================
   STUDIO R by RUNGYM — Style (mobile d'abord)
   Ambiance « Sable et terracotta » (validée le 29/09) :
   fond sable clair, accent terracotta, Cormorant Garamond + DM Sans.
   Toutes les couleurs sont ici : changer l'ambiance = changer ce bloc.
   ============================================================ */

:root {
  --bg: #f6f1ea;          /* sable clair (fond de page) */
  --surface: #ffffff;     /* cartes */
  --surface-2: #efe5d8;   /* sable (zones secondaires) */
  --line: #e4d7c6;        /* filets */
  --text: #2b2522;        /* texte principal */
  --muted: #76685c;       /* texte secondaire (contraste AA sur fond sable) */
  --red: #a85a40;         /* accent terracotta (nom historique conservé) */
  --red-dark: #8f4a33;
  --accent-soft: #f3e3da; /* terracotta très clair */
  --on-accent: #ffffff;
  --ok: #4f7a4b;          /* sauge */
  --ok-soft: #e6eee1;
  --warn: #9a6a1c;        /* ocre */
  --warn-soft: #f6ead2;
  --danger: #a3392a;
  --danger-soft: #f7e1db;
  --shadow: 0 10px 30px rgba(74, 52, 38, .12);
  --radius: 16px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

/* chiffres « modernes » alignés (Cormorant affiche sinon 18h00 comme « 18hoo ») */
/* !important : le raccourci « font: » utilisé plus bas réinitialiserait ce réglage */
* { font-variant-numeric: lining-nums !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: inherit; }

/* ---------- En-tête ---------- */
.demo-banner {
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-r {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  color: var(--red);
  font: 500 22px var(--display);
  border-radius: 50%;
}

.brand-txt { font: 500 22px var(--display); letter-spacing: .03em; line-height: 1; }
.brand-txt small { display: block; font: 400 11px var(--body); color: var(--muted); letter-spacing: .06em; margin-top: 3px; }

.announce {
  background: var(--red);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  padding: 10px 16px;
  white-space: pre-line;
}

/* Offre flash : bandeau cliquable avec compte à rebours */
.flash-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  background: var(--text); color: #fff; text-decoration: none;
  font-size: 14px; line-height: 1.35; text-align: center; padding: 10px 16px;
}
.flash-banner[hidden] { display: none; }
.flash-tag {
  background: var(--red); color: var(--on-accent); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; padding: 3px 10px;
}
.flash-time { color: #e9cdbf; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flash-txt b { font-weight: 500; }

/* ---------- Mise en page ---------- */
main { max-width: 520px; margin: 0 auto; padding: 12px 20px 56px; }

.view { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 15vw, 68px);
  line-height: .95;
  margin: 18px 0 10px;
}
.red { color: var(--red); font-style: italic; }
.hero-sub { color: var(--muted); margin: 0 0 28px; }

.section-title { font: 500 34px var(--display); margin: 8px 0 12px; line-height: 1.1; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---------- Onglets + formulaires ---------- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.tab {
  flex: 1;
  background: none;
  border: 0;
  color: var(--muted);
  font: 500 15px var(--body);
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(74, 52, 38, .1); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: 16px var(--body);
  padding: 13px 14px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); background: var(--surface); }
.form textarea { resize: vertical; font-family: var(--body); }
/* Mot de passe : bouton œil Afficher / Masquer (ajouté par dialog.js) */
.pw-wrap { position: relative; display: block; }
.form .pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--red); outline: none; background: var(--surface-2); }
.pw-toggle svg { width: 22px; height: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.form .check { flex-direction: row; align-items: flex-start; gap: 12px; color: var(--text); font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); flex-shrink: 0; }
.check small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: 500 16px var(--body);
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, background .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-red { background: var(--red); color: var(--on-accent); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-big { font-size: 18px; padding: 20px; }

.link-btn { background: none; border: 0; color: var(--muted); font: 500 14px var(--body); cursor: pointer; text-decoration: underline; padding: 4px; }

/* ---------- Accueil ---------- */
.hello { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.hello strong { display: block; font: 500 32px var(--display); color: var(--text); line-height: 1.1; }

.credits-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  text-align: center;
}
.credits-label { display: block; color: var(--muted); font-size: 14px; }
.credits-num { display: block; font: 500 80px var(--display); line-height: 1.05; color: var(--red); }
.credits-unit { display: block; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.lots { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--muted); }
.lots:empty { display: none; }
.lots li { padding: 5px 0; }
.lots li b { color: var(--text); font-weight: 500; }
.lots li small { display: block; font-size: 12px; }

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--warn-soft);
  color: var(--warn);
}
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.big-actions { display: grid; gap: 10px; margin: 22px 0 18px; }

.link-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.link-row:hover { color: var(--text); }

.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 4px; }

/* ---------- Boutique ---------- */
.plans { display: grid; gap: 14px; margin: 14px 0 18px; }

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}
.plan.featured { border: 1.5px solid var(--red); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 65%); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--red);
  color: var(--on-accent);
  font: 500 11px var(--body);
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
}
.plan-name { font: 500 24px var(--display); line-height: 1.15; }
.plan-meta { color: var(--muted); font-size: 13px; grid-column: 1; }
.plan-price { font: 500 32px var(--display); grid-row: 1 / span 2; grid-column: 2; text-align: right; line-height: 1; }
.plan-price small { display: block; font: 400 12px var(--body); color: var(--muted); margin-top: 4px; }
.plan .btn { grid-column: 1 / -1; margin-top: 14px; font-size: 15px; padding: 12px; }

.plan.flash { border: 1.5px solid var(--text); background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%); }
.plan.flash .plan-badge { background: var(--text); }
.flash-note { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14px; }
.flash-info {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  margin-top: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.flash-info b { color: var(--red); font-weight: 500; }
#shop-flash:empty { display: none; }
.flash-time, .flash-info span { font-variant-numeric: lining-nums tabular-nums !important; }

/* ---------- Planning / cours ---------- */
.sub-title { font: 500 22px var(--display); color: var(--text); margin: 26px 0 10px; }

.day-title {
  font: 500 20px var(--display);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.day-title::first-letter { text-transform: uppercase; }
.day-title:first-child { margin-top: 8px; }

.classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.class-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.class-card.mine { border-color: var(--ok); background: linear-gradient(160deg, var(--ok-soft), var(--surface) 70%); }
.class-card.full { opacity: .85; }
.class-card.waiting { border-color: var(--warn); border-style: dashed; }

.class-time { font: 500 26px var(--display); line-height: 1; min-width: 62px; }
.class-time small { display: block; font: 400 11px var(--body); color: var(--muted); margin-top: 4px; }
.class-info { min-width: 0; }
.class-title { font-weight: 500; font-size: 15px; }
.class-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.class-meta .ok { color: var(--ok); font-weight: 500; }
.class-meta .last { color: var(--warn); font-weight: 500; }

.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font: 500 13px var(--body); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.empty-card { text-align: center; color: var(--muted); padding: 28px 20px; }

/* ---------- Fenêtre de confirmation (dialog.js) ---------- */
.dlg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(43, 37, 34, .45);
  animation: fade .15s ease;
}
.dlg {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
}
.dlg-title { font: 500 26px var(--display); margin: 0 0 10px; line-height: 1.15; }
.dlg-msg { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.55; }
.dlg-input {
  width: 100%;
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: 16px var(--body);
  padding: 12px 14px;
}
.dlg-input:focus { outline: none; border-color: var(--red); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.dlg-actions .btn { font-size: 15px; }
.dlg-actions .btn-ghost { font-size: 14px; }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #862e21; }

/* ---------- Historique ---------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.history .h-txt { font-size: 15px; }
.history .h-date { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.history .h-delta { font: 500 24px var(--display); white-space: nowrap; }
.history .plus { color: var(--ok); }
.history .minus { color: var(--red); }
.history .empty { color: var(--muted); justify-content: center; border: 0; }

/* ---------- Divers ---------- */
.spinner {
  width: 34px;
  height: 34px;
  margin: 80px auto;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: 488px;
  margin: 0 auto;
  background: var(--text);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.toast.ok { background: var(--ok); color: #fff; }

/* ---------- Mentions légales dans les formulaires ---------- */
.legal-note { margin: 2px 0 0; }
.legal-note a, #view-boutique .small a { color: var(--muted); }

/* ---------- Appli sur le téléphone : carte « Installer » ---------- */
.install-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  margin-top: 22px; padding: 16px 44px 16px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.install-card[hidden] { display: none; }
.install-card img { border-radius: 11px; flex-shrink: 0; }
.install-card b { font: 500 20px var(--display); }
.install-txt { margin: 4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.install-txt b { font: 500 14px var(--body); color: var(--text); }
.install-btn[hidden] { display: none; }
.ios-share { width: 17px; height: 17px; vertical-align: -3px; color: var(--text); }
.install-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px;
  background: none; border: 0; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.install-close:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Planning public ---------- */
.pub-link { margin: -4px 0 18px; }
.card.pub-cta { margin-top: 28px; display: grid; gap: 10px; justify-items: center; }
.pub-cta p { margin: 0; }
.pub-cta .btn { width: 100%; }
#pub-list .class-card .btn { text-decoration: none; }
.pub-prices-title { margin-top: 34px; }
.pub-prices-title[hidden] { display: none; }
#pub-prices .plan .btn { text-decoration: none; text-align: center; }

/* ---------- Adresse du studio ---------- */
.address {
  display: flex; align-items: center; gap: 8px; margin: -6px 0 18px;
  font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none;
}
.address > span:last-child {
  margin-left: auto; flex-shrink: 0; color: var(--red); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.address-card {
  margin: 18px 0 0; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.address-card b { font: 500 18px var(--display); }

/* ---------- Offre après la séance découverte (accueil) ---------- */
.offre-card {
  display: grid; gap: 4px; margin: 0 0 16px; padding: 16px 18px; text-decoration: none; color: var(--text);
  background: var(--accent-soft); border: 1.5px solid var(--red); border-radius: var(--radius);
}
.offre-card[hidden] { display: none; }
.offre-tag { font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
.offre-card b { font: 500 22px var(--display); }
.offre-card s { color: var(--muted); font-size: 14px; }
.offre-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.offre-go { font-weight: 500; color: var(--red); margin-top: 4px; }
.cal-link { color: var(--red); white-space: nowrap; }

/* ---------- Mes messages ---------- */
.msg-new { background: var(--red); color: var(--on-accent); font: 500 11px var(--body); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.msg-new[hidden] { display: none; }
.msg-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.msg-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.msg-list li.unread { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.msg-list li.none { color: var(--muted); text-align: center; }
.msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msg-top b { font: 500 19px var(--display); }
.msg-top span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.msg-list p { margin: 6px 0 0; white-space: pre-line; font-size: 15px; line-height: 1.5; }
.install-link { display: block; margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.install-link[hidden] { display: none; }

/* ---------- Programme fidélité (accueil) ---------- */
.fid-card { margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fid-card[hidden] { display: none; }
.fid-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fid-tag { font: 500 20px var(--display); color: var(--red); }
.fid-top b { font-weight: 500; font-size: 14px; }
.fid-bar { height: 8px; background: var(--surface-2); border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.fid-bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.fid-card p { margin: 0; font-size: 13px; color: var(--muted); }
.fid-card p b { color: var(--text); font-weight: 500; }

/* ---------- Numéro partagé : invitation à mettre à jour ---------- */
.dup-alert { display: block; text-decoration: none; color: var(--warn); background: var(--warn-soft); margin: 0 0 16px; }
.dup-alert[hidden] { display: none; }
.dup-alert u { display: block; margin-top: 6px; font-weight: 500; }
#form-compte input:disabled { opacity: .7; }
.offre-line { display: block; }
.offre-line em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--red); margin-left: 4px; }

/* ---------- Niveau des cours ---------- */
.lvl { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  font: 500 11px var(--body); letter-spacing: .02em; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.lvl-intermediaire { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.lvl-confirme { color: var(--on-accent); border-color: var(--red); background: var(--red); }

/* ---------- Sondages (accueil cliente) ---------- */
.poll-card { display: block; margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.poll-tag { font: 500 13px var(--body); color: var(--red); letter-spacing: .02em; }
.poll-q { font: 500 20px/1.25 var(--display); margin: 4px 0 6px; color: var(--text); }
.poll-hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.poll-options { display: grid; gap: 6px; margin: 0 0 12px; }
.poll-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.poll-opt:has(input:checked) { border-color: var(--red); background: var(--accent-soft); }
.poll-opt input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.poll-results { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 8px; }
.poll-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.poll-row b { font-weight: 500; }
.poll-results .mine .poll-row span { color: var(--red); font-weight: 500; }
.poll-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 3px; }
.poll-bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.poll-foot { margin: 0; font-size: 13px; color: var(--muted); }
.poll-foot .link-btn { font-size: 13px; padding: 0; }

/* ---------- Questionnaire santé ---------- */
.hq { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 0 0 12px; display: grid; gap: 8px; }
.hq legend { font-size: 15px; color: var(--text); padding: 0; margin-bottom: 6px; line-height: 1.35; }
.hq-yn { display: flex; gap: 8px; }
.hq-yn label { flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; color: var(--text); font-size: 15px; }
.hq-yn label:has(input:checked) { border-color: var(--red); background: var(--accent-soft); }
.form .hq-yn input[type=radio] { accent-color: var(--red); margin: 0; width: 18px; height: 18px; padding: 0; flex: none; }
.hq-detail[hidden] { display: none; }
.ok-notice { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* ---------- Reçu de paiement ---------- */
.history li .btn-sm { flex: none; text-decoration: none; }
.recu { font-size: 14px; line-height: 1.5; color: var(--text); }
.recu-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.recu-no { display: grid; align-content: start; }
.recu-no span { font: 500 22px var(--display); color: var(--red); }
.recu-no small { color: var(--muted); }
.recu-client { margin: 14px 0; }
.recu-client span { display: block; font-size: 12px; color: var(--muted); }
.recu-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.recu-table th { text-align: left; font: 500 12px var(--body); color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 0; }
.recu-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.recu-table th:last-child, .recu-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.recu-table tfoot td { border-bottom: 0; padding: 4px 0; }
.recu-total td { font-weight: 500; font-size: 16px; border-top: 1px solid var(--text) !important; padding-top: 8px !important; }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  #view-recu, #view-recu *, #view-cadeau, #view-cadeau * { visibility: visible; }
  #view-recu, #view-cadeau { position: absolute; inset: 0; padding: 24px; }
  .no-print { display: none !important; }
  .gift-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .recu { border: 0; box-shadow: none; color: #000; }
}
.poll-card[hidden] { display: none; }

/* ---------- Cartes cadeaux ---------- */
.gift-offer { display: grid; gap: 10px; }
.gift-offer .poll-q, .gift-offer .poll-hint { margin: 0; }
.redeem-row { display: flex; gap: 8px; margin-top: 8px; }
.redeem-row input { flex: 1; min-width: 0; font: 500 15px var(--body); letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); }
.gift-card { max-width: 460px; margin: 0 auto 16px; padding: 28px 26px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%, var(--surface-2)); border: 1px solid var(--line); color: var(--text); }
.gc-brand { display: inline-flex; align-items: center; gap: 10px; text-align: left; font: 500 20px var(--display); }
.gc-brand small { display: block; font: 400 11px var(--body); color: var(--muted); }
.gc-logo { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); display: grid; place-items: center; font: 500 22px var(--display); }
.gc-kicker { margin: 22px 0 0; font: 500 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.gc-title { margin: 6px 0 2px; font: 600 34px/1.1 var(--display); }
.gc-sub { margin: 0; color: var(--muted); }
.gc-to { margin: 18px 0 0; font-size: 15px; }
.gc-msg { margin: 8px auto 0; max-width: 34ch; font: italic 500 19px/1.35 var(--display); color: var(--red); }
.gc-code { margin: 20px auto 0; display: inline-grid; gap: 2px; padding: 10px 18px; border: 1.5px dashed var(--red); border-radius: 14px; background: var(--surface); }
.gc-code span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.gc-code b { font: 500 20px var(--body); letter-spacing: .08em; }
.gc-how { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.gc-addr { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.gift-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Demande d'activation des notifications ---------- */
.push-ask { text-align: center; }
.push-ask-icon { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.push-ask .dlg-msg { margin-bottom: 10px; }
.push-steps { text-align: left; margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--text); }
.push-steps li { margin: 4px 0; }
