/* Kemit Ancestral : thème « Veillée »
   Nuit verte, or du halo, papier clair. Mobile d'abord.
   Une seule feuille de style pour toutes les pages. */

:root {
  --night: #0b1f18;
  --night-2: #102c22;
  --forest: #14382d;
  --forest-2: #1c4a3b;
  --gold: #e7b24a;
  --gold-soft: #f3d894;
  --gold-deep: #80540a;
  --paper: #f5f8f3;
  --card: #ffffff;
  --ink: #12261e;
  --ink-2: #47594f;
  --line: #d9e3da;
  --line-2: #c5d3c8;
  --ok: #1b7a4a;
  --err: #b3261e;
  --on-night: #f4f7f2;
  --on-night-2: #c1cac4;
  --focus: #1c4a3b;

  --r-lg: 24px;
  --r-md: 16px;
  --gutter: 20px;
  --maxw: 1120px;
  --tabbar-h: 72px;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom, 0px));
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .masthead :focus-visible, .site-footer :focus-visible, .tabbar :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Titres ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--gold-deep); }
.on-dark h1 em, .on-dark h2 em, .masthead h1 em, .on-dark h3 em { color: var(--gold); }

p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid currentColor; box-shadow: inset 0 0 0 2.5px transparent;
  background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px);
}
.on-dark .eyebrow, .masthead .eyebrow { color: var(--gold); }

.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.on-dark .lede, .masthead .lede { color: var(--on-night-2); }

.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); color: var(--night); }
.btn-ghost { color: var(--on-night); border-color: rgba(244, 247, 242, .42); background: transparent; }
.btn-ghost:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--line-2); background: transparent; }
.btn-outline:hover { color: var(--ink); border-color: var(--forest); background: rgba(20, 56, 45, .05); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête et navigation ---------- */

.masthead {
  position: relative;
  color: var(--on-night);
  background:
    radial-gradient(110% 90% at 88% -12%, rgba(231, 178, 74, .22), transparent 56%),
    radial-gradient(80% 70% at 0% 100%, rgba(28, 74, 59, .85), transparent 62%),
    var(--night);
  overflow: clip;
}

/* Anneaux concentriques : le halo, la voix, le soleil levant */
.masthead::before {
  content: ""; position: absolute; inset-inline-end: -150px; top: -170px;
  width: 440px; height: 440px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 40px, rgba(231, 178, 74, .2) 40px 41px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}

/* Bordure dentelée, clin d'œil aux tissus bogolan et kente */
.masthead::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M-1 12.5 L14 1.2 L29 12.5 Z' fill='%23f5f8f3' stroke='%23e7b24a' stroke-width='1.2' stroke-opacity='.75'/%3E%3C/svg%3E") repeat-x center bottom;
}

.site-header { position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; gap: 12px; min-height: 68px; padding-block: 10px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--on-night); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: .01em; white-space: nowrap;
}
.brand:hover { color: var(--on-night); }
.brand svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand em { font-style: italic; font-weight: 600; color: var(--gold-soft); }

.top-nav { display: none; align-items: center; gap: 4px; margin-inline-start: auto; }
.top-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--on-night-2); text-decoration: none; font-weight: 500; font-size: .96875rem;
  transition: color .15s ease, background-color .15s ease;
}
.top-nav a:not(.btn):hover { color: var(--on-night); background: rgba(255, 255, 255, .07); }
.top-nav a[aria-current="page"]:not(.btn) { color: var(--gold-soft); background: rgba(231, 178, 74, .12); }
.top-nav .btn { margin-inline-start: 8px; }

/* Langue et devise : un seul bouton discret */
.prefs { position: relative; margin-inline-start: auto; }
.prefs summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; user-select: none;
  color: var(--on-night); font-size: .9375rem; font-weight: 600;
  border: 1px solid rgba(244, 247, 242, .25); background: rgba(255, 255, 255, .04); white-space: nowrap;
}
.prefs summary::-webkit-details-marker { display: none; }
.prefs summary svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.prefs[open] summary { border-color: var(--gold); }
.prefs-panel {
  /* Fixe : un en-tête qui rogne son contenu (masthead) ne peut plus couper le panneau ; il défile en lui-même quand il dépasse l'écran. */
  position: fixed; inset-inline-end: var(--gutter); top: var(--prefs-top, 72px); z-index: 60;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--prefs-top, 72px) - var(--tabbar-h) - 28px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - var(--prefs-top, 72px) - var(--tabbar-h) - 28px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
@media (min-width: 880px) {
  .prefs-panel { max-height: calc(100vh - var(--prefs-top, 72px) - 16px); max-height: calc(100dvh - var(--prefs-top, 72px) - 16px); }
}
.prefs-panel label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 14px; }
.prefs-panel label:last-child { margin-bottom: 0; }
.prefs-panel select { margin-top: 6px; }
/* Choix de la représentation de Kemit : deux aperçus à toucher */
.rep-box { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.rep-box legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .9375rem; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prefs-panel label.rep, label.rep { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 600; }
.rep input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rep-card { display: grid; justify-items: center; gap: 6px; padding: 8px 6px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; text-align: center; font-size: .875rem; }
.rep-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.rep input:checked + .rep-card { border-color: var(--forest); background: #eef4ee; box-shadow: 0 0 0 2px var(--gold); }
.rep input:focus-visible + .rep-card { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Barre d'onglets mobile */
.tabbar {
  position: fixed; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
  background: rgba(11, 31, 24, .97); border: 1px solid rgba(231, 178, 74, .3); border-radius: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 6px 1px; border-radius: 18px; min-width: 0;
  color: var(--on-night-2); text-decoration: none; font-size: .8125rem; font-weight: 600; line-height: 1.1;
  transition: background-color .15s ease, color .15s ease;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { background: var(--gold); color: var(--night); }

@media (min-width: 880px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .top-nav { display: flex; }
  .top-nav + .prefs { margin-inline-start: 6px; }
}

/* ---------- Bandeau de page (pages intérieures) ---------- */

.page-head { padding-block: 22px 56px; }
.page-head h1 { font-size: clamp(2.3rem, 8vw, 3.8rem); margin-top: 14px; }
.page-head .lede { margin-top: 14px; }

/* ---------- Sections ---------- */

.section { padding-block: 56px; }
.section.tight { padding-block: 40px; }
.band-white { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 40rem; }
.section-head .lede { color: var(--ink-2); }

@media (min-width: 880px) {
  .section { padding-block: 88px; }
  .section.tight { padding-block: 56px; }
  .section-head { margin-bottom: 44px; }
}

/* ---------- Accueil : héros ---------- */

.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: center; text-align: center; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .cta-row { justify-content: center; width: 100%; }
.hero-copy .cta-row .btn { flex: 1 1 220px; }

.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: .9375rem; color: var(--on-night-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.halo { --halo: 168px; position: relative; width: var(--halo); aspect-ratio: 1; margin-inline: auto; isolation: isolate; order: -1; }
.halo::before {
  content: ""; position: absolute; inset: -46%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(231, 178, 74, .4) 0%, rgba(231, 178, 74, .12) 38%, transparent 66%);
}
.halo .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(231, 178, 74, .55); z-index: -1; }
.halo .r1 { inset: -9%; }
.halo .r2 { inset: -21%; border-color: rgba(231, 178, 74, .34); }
.halo .r3 { inset: -34%; border-color: rgba(231, 178, 74, .2); }
.halo .r4 { inset: -49%; border-color: rgba(231, 178, 74, .1); }
.halo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 0 0 6px var(--night), 0 0 0 7px rgba(231, 178, 74, .6), 0 0 56px rgba(231, 178, 74, .28);
}

@media (prefers-reduced-motion: no-preference) {
  .halo .ring { animation: breathe 8s ease-in-out infinite; }
  .halo .r2 { animation-delay: -1.6s; }
  .halo .r3 { animation-delay: -3.2s; }
  .halo .r4 { animation-delay: -4.8s; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: .65; }
}

@media (min-width: 880px) {
  .hero { padding-block: 72px 104px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-copy { justify-items: start; text-align: start; }
  .hero-copy .lede { margin-inline: 0; }
  .hero-copy .cta-row { justify-content: flex-start; width: auto; }
  .hero-copy .cta-row .btn { flex: 0 0 auto; }
  .trust { justify-content: flex-start; }
  .halo { --halo: min(380px, 100%); order: 0; }
}

/* ---------- Accueil : parole du jour ---------- */

.precept {
  position: relative; overflow: clip; color: var(--on-night);
  background: linear-gradient(155deg, var(--forest) 0%, var(--night) 100%);
  border-radius: 32px; padding: clamp(28px, 6vw, 64px);
}
.precept::before {
  content: "\201C"; position: absolute; inset-inline-start: .08em; top: -.02em;
  font-family: var(--font-display); font-size: clamp(8rem, 26vw, 15rem); line-height: 1;
  color: rgba(231, 178, 74, .2); pointer-events: none;
}
.precept::after {
  content: ""; position: absolute; inset-inline-end: -140px; bottom: -170px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 36px, rgba(231, 178, 74, .24) 36px 37px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%);
}
.precept > * { position: relative; z-index: 1; }
.precept-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; }
.precept-date { display: inline-block; font-size: .9375rem; color: var(--on-night-2); }
.precept-date::first-letter { text-transform: uppercase; }
.precept blockquote { margin: 0 0 28px; }
.precept blockquote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 6vw, 3.6rem); line-height: 1.16;
  max-width: 24em;
}
.precept cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.precept-theme { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(231, 178, 74, .28); color: var(--on-night-2); font-size: .9375rem; max-width: 40rem; }
.precept-event { margin-top: 8px; color: var(--gold-soft); font-size: .9375rem; }
.precept .btn-ghost { border-color: rgba(244, 247, 242, .5); }
.precept .cta-row .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .precept .cta-row .btn { flex: 0 0 auto; } }

/* ---------- Accueil : trois façons ---------- */

.paths { display: grid; gap: 16px; }
.path { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.path p { color: var(--ink-2); }
.path > .btn { margin-top: auto; align-self: flex-start; }
.path-main { background: linear-gradient(160deg, var(--forest) 0%, var(--night) 100%); border-color: transparent; color: var(--on-night); }
.path-main p { color: var(--on-night-2); }
.path-main { position: relative; overflow: clip; justify-content: space-between; gap: 28px; }
.path-main::after {
  content: ""; position: absolute; inset-inline-end: -110px; bottom: -130px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 30px, rgba(231, 178, 74, .22) 30px 31px);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%); mask-image: radial-gradient(circle, #000 15%, transparent 68%);
}
.path-main > * { position: relative; z-index: 1; }
.path-top, .path-mid, .path-bottom { display: grid; gap: 14px; }
.path-bottom { justify-items: start; }
.path-main h3 { font-size: clamp(2rem, 6vw, 2.8rem); }
.path-main h3 em { color: var(--gold); }

.plans-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plans-mini li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
  padding: 12px 16px; border-radius: var(--r-md); border: 1px solid rgba(231, 178, 74, .35); background: rgba(255, 255, 255, .04);
}
.plans-mini li.featured { background: rgba(231, 178, 74, .14); border-color: var(--gold); }
.pm-min { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 1.75rem; font-weight: 600; line-height: 1; }
.pm-min b { font-weight: 600; }
.pm-min span { font-family: var(--font-body); font-size: .9375rem; color: var(--on-night-2); }
.pm-price { text-align: end; font-weight: 700; font-size: 1.0625rem; color: var(--gold); white-space: nowrap; }
.pm-per { grid-column: 1 / -1; font-size: .875rem; color: var(--on-night-2); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(231, 178, 74, .45); color: var(--gold-soft); font-size: .9375rem; font-weight: 500;
}

.fineprint { font-size: .9375rem; }
.path-main .fineprint { color: var(--on-night-2); }

/* Déroulé de la célébration : une barre qui s'intensifie jusqu'à la bénédiction */
.seg { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; }
.seg li { flex: var(--w); background: var(--gold); opacity: calc(.22 + var(--i) * .15); }
.seg-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .9375rem; color: var(--ink-2); }
.seg-legend b { color: var(--ink); font-weight: 600; }

@media (min-width: 880px) {
  .paths { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
  .path-main { grid-row: span 2; padding: 40px; }
}

/* ---------- Accueil : guides ---------- */

.guides { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.guide { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--gold);
}
.guide h3 { font-size: 1.3rem; }
.guide p { font-size: .9375rem; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.guides-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 7.8' fill='none' stroke='%23f3d894' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.split { display: grid; gap: 32px; }
.split-head .guides-foot { margin-top: 28px; }
.split .guides { align-content: start; }
.split-head .checks { margin-top: 4px; }

@media (min-width: 900px) {
  .split { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .split-head { position: sticky; top: 24px; }
}

/* ---------- Accueil : appel final ---------- */

.final-cta { position: relative; overflow: clip; text-align: center; color: var(--on-night); padding-block: 72px; background: radial-gradient(100% 120% at 50% 130%, rgba(231, 178, 74, .26), transparent 60%), var(--night); }
.final-cta .wrap { display: grid; gap: 18px; justify-items: center; }
.final-cta h2 { max-width: 14em; }
.final-cta h2 em { color: var(--gold); }
.final-cta p { color: var(--on-night-2); max-width: 30rem; }

/* ---------- Discussion gratuite ---------- */

.chat-wrap { max-width: 780px; }
.chat, .chat.card { display: flex; flex-direction: column; padding: 0; overflow: clip; }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fbfdfb; }
.chat-avatar {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--night); color: var(--gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold);
}
.chat-avatar svg { width: 26px; height: 26px; }
.chat-id { display: grid; flex: 1 1 150px; min-width: 0; line-height: 1.25; }
.chat-head .btn { margin-inline-start: auto; }
.chat-id strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-2); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.chat-banner { margin: 0; padding: 10px 16px; background: #fbf3de; color: #4a3608; font-size: .9375rem; }

.chat-log {
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scroll-behavior: smooth;
  height: min(60vh, 560px); min-height: 340px; padding: 18px 16px; background: var(--paper);
}
.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.msg-assistant, .msg-error { align-self: flex-start; }
.bubble { padding: 12px 15px; border-radius: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.msg-user .bubble { background: var(--forest); color: #fff; border-end-end-radius: 6px; }
.msg-assistant .bubble { background: #fff; border: 1px solid var(--line); border-end-start-radius: 6px; }
.bubble p { margin: 0; }
.bubble p + p, .bubble ul, .bubble ol { margin-top: .6em; }
.bubble ul, .bubble ol { margin-bottom: 0; padding-inline-start: 1.2em; display: grid; gap: .3em; }
.msg-error .bubble { display: grid; gap: 10px; justify-items: start; background: #fdecea; border: 1px solid #f3c1bc; color: #7a1c14; border-end-start-radius: 6px; }
.msg-note { align-self: stretch; max-width: 100%; }
.msg-note .bubble { background: #fbf3de; border: 1px solid #ecd9a3; color: #4a3608; border-radius: 14px; }
.msg-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-inline: 4px; font: .75rem/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); }
.msg-copy { min-height: 32px; padding: 6px 4px; border: 0; background: none; font: inherit; color: var(--forest-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.typing { display: flex; align-items: center; gap: 5px; padding: 16px 18px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .typing span { animation: dot 1.2s ease-in-out infinite; }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }
}
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; background: var(--paper); }
.chat-suggest:empty { display: none; }
.suggest {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff;
  font: 600 .9375rem/1 var(--font-body); color: var(--forest); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.suggest:hover:not(:disabled) { border-color: var(--forest); background: rgba(20, 56, 45, .05); }
.suggest:disabled { opacity: .5; cursor: not-allowed; }

/* Outils sous le fil : quiz kémite, actualité kémite */
.chat-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; background: var(--paper); }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--forest); border-radius: 999px; background: transparent; font: 600 .9375rem/1 var(--font-body); color: var(--forest); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tool[hidden] { display: none; }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { background: var(--forest); color: #fff; }

/* Quiz kémite et actualité dans le fil */
.msg-quiz, .msg-news { max-width: 100%; }
.quiz-card, .news-card { display: grid; gap: 10px; width: min(100%, 560px); }
.quiz-card p, .news-card p { margin: 0; }
.quiz-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--ink-2); }
.quiz-level { padding: 2px 10px; border-radius: 999px; background: rgba(20, 56, 45, .08); font-weight: 700; color: var(--forest); }
.quiz-level-2 { background: #fbf3de; color: #5a4208; }
.quiz-level-3 { background: #f6e1de; color: #7a1c14; }
.quiz-progress { height: 6px; border-radius: 999px; background: rgba(20, 56, 45, .1); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--forest); transition: width .3s ease; }
.quiz-question { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; outline: none; }
.quiz-choices { display: grid; gap: 8px; }
.quiz-choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; font: 500 1rem/1.4 var(--font-body); color: var(--ink); text-align: start; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.quiz-choice:hover:not(:disabled) { border-color: var(--forest); background: rgba(20, 56, 45, .05); }
.quiz-choice:disabled { cursor: default; }
.quiz-letter { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 56, 45, .1); color: var(--forest); font-size: .8125rem; }
.quiz-choice.is-right { border-color: #2f7d4f; background: #e8f5ec; }
.quiz-choice.is-right .quiz-letter { background: #2f7d4f; color: #fff; }
.quiz-choice.is-wrong { border-color: #b3382c; background: #fdecea; }
.quiz-choice.is-wrong .quiz-letter { background: #b3382c; color: #fff; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { display: grid; gap: 6px; }
.quiz-verdict.is-right strong { color: #1f6a3d; }
.quiz-verdict.is-wrong strong { color: #9a2a20; }
.quiz-ref, .quiz-note { font-size: .8125rem; color: var(--ink-2); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.quiz-actions:empty { display: none; }
.quiz-stop, .news-report { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: .875rem; color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz-title, .news-title { font-weight: 700; font-size: 1.0625rem; }
.quiz-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.quiz-score strong { font-family: var(--font-display, inherit); font-size: 2rem; line-height: 1; color: var(--forest); }
.quiz-score span { padding: 3px 12px; border-radius: 999px; background: #fbf3de; font-weight: 700; color: #5a4208; font-size: .9375rem; }
.quiz-themes, .quiz-read { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quiz-themes li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.quiz-read li { padding: 4px 10px; border-radius: 8px; background: rgba(20, 56, 45, .06); font-size: .9375rem; }
.quiz-sub { font-weight: 700; font-size: .875rem; }
.news-date { font-size: .8125rem; color: var(--ink-2); }
.news-date::first-letter { text-transform: uppercase; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.news-list li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-headline { font-size: 1rem; line-height: 1.35; }
.news-summary { font-size: .9375rem; color: var(--ink); }
.news-link { justify-self: start; font-size: .875rem; font-weight: 600; }
.news-note, .news-warn { font-size: .8125rem; color: var(--ink-2); }
.news-warn { padding: 6px 10px; border-radius: 8px; background: #fbf3de; color: #5a4208; }
@media (prefers-reduced-motion: reduce) { .quiz-progress span { transition: none; } }

.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 16px 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { min-height: 50px; max-height: 150px; padding-block: 13px; line-height: 1.4; resize: none; }
.chat-send { width: 50px; min-height: 50px; padding: 0; }
.chat-send svg { width: 22px; height: 22px; }
.chat-count { grid-column: 1 / -1; justify-self: end; font: .75rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); }
.chat-count.near { color: var(--err); }
.chat-note { margin: 14px 4px 0; }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }

/* Fenêtre de confirmation, sans jamais passer par confirm() */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(5, 16, 12, .6); }
.modal-panel { display: grid; gap: 14px; width: min(440px, 100%); padding: 28px; border-radius: 24px; background: #fff; }
.modal-panel h2 { font-size: 1.8rem; }

@media (max-width: 600px) {
  .chat-log { height: min(56vh, 500px); min-height: 300px; }
  .msg { max-width: 94%; }
}

/* ---------- Musique kémite personnalisée ---------- */

.music-band {
  display: grid; gap: 28px; border-radius: 32px; padding: clamp(28px, 6vw, 56px); color: var(--on-night);
  background: linear-gradient(160deg, var(--forest) 0%, var(--night) 100%);
}
.music-copy { display: grid; gap: 14px; align-content: start; }
.music-copy h2 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); }
.music-copy .lede { color: var(--on-night-2); }
.music-copy .cta-row { margin-top: 6px; }
@media (min-width: 880px) {
  .music-band { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }
}

/* Accueil : présentation de la Détente spirituelle, un tableau des gardiens et un bouton « Expérimenter ». */
.detente-band { display: grid; gap: 22px; justify-items: center; text-align: center; }
.detente-band[hidden] { display: none; }
.detente-art { margin: 0; width: min(100%, 880px); border-radius: 28px; overflow: hidden; border: 1px solid rgba(231, 178, 74, .55); box-shadow: 0 22px 50px rgba(11, 31, 24, .22); background: #0b1f18; }
.detente-art img { display: block; width: 100%; height: auto; }
.detente-copy { display: grid; gap: 10px; justify-items: center; max-width: 640px; }
.detente-copy h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.detente-copy .lede { color: var(--ink-2, inherit); }
.detente-copy .cta-row { justify-content: center; margin-top: 6px; }

.tiers { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.tiers legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .96875rem; }
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
.tier { position: relative; display: block; cursor: pointer; }
.tier input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.tier-box {
  display: grid; gap: 2px; justify-items: center; align-content: center; text-align: center;
  min-height: 92px; padding: 12px 8px; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tier-box b { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 1.8rem; font-weight: 600; line-height: 1; }
.tier-box span { font-size: .9375rem; font-weight: 700; color: var(--forest-2); }
.tier-box small { font-size: .8125rem; color: var(--ink-2); }
.tier input:checked + .tier-box { background: var(--forest); border-color: var(--forest); color: #fff; }
.tier input:checked + .tier-box span { color: var(--gold-soft); }
.tier input:checked + .tier-box small { color: var(--on-night-2); }
.tier input:focus-visible + .tier-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.tier input:disabled { cursor: not-allowed; }
.tier input:disabled + .tier-box { opacity: .55; }

.result { margin-bottom: 20px; display: grid; gap: 14px; }
.result h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.result audio { width: 100%; min-height: 54px; }
.lyrics { white-space: pre-wrap; margin: 0 0 8px; color: var(--ink-2); line-height: 1.6; }

/* Anneaux qui respirent pendant la composition */
.compose { position: relative; width: 84px; height: 84px; margin-block: 4px; }
.compose span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: .8; }
.compose span:nth-child(2) { inset: 14px; opacity: .55; }
.compose span:nth-child(3) { inset: 28px; background: var(--gold); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .compose span { animation: breathe 2.6s ease-in-out infinite; }
  .compose span:nth-child(2) { animation-delay: -.5s; }
  .compose span:nth-child(3) { animation-delay: -1s; }
}

/* ---------- Forfaits d'appel ---------- */

.plans { display: grid; gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.plan-name { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.plan-minutes { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: clamp(3.6rem, 13vw, 5rem); font-weight: 600; line-height: 1; margin-top: 6px; }
.plan-minutes b { font-weight: 600; }
.plan-minutes { word-spacing: -.22em; }
.plan-minutes span { word-spacing: normal; margin-inline-start: .35em; }
.plan-minutes span { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); }
.plan-price { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.plan-permin { font-weight: 600; color: var(--ink); }
.plan-eur { min-height: 1.5em; margin-bottom: 18px; font-size: .9375rem; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan-tag {
  align-self: flex-start; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: var(--night); font-size: .8125rem; font-weight: 700;
}
.plan-featured { background: linear-gradient(160deg, var(--forest) 0%, var(--night) 100%); border-color: transparent; color: var(--on-night); }
.plan-featured .plan-name { color: var(--gold); }
.plan-featured .plan-minutes span, .plan-featured .plan-eur { color: var(--on-night-2); }
.plan-featured .plan-price { color: var(--gold); }
.plan-featured .plan-permin { color: var(--on-night); }

@media (min-width: 880px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { padding: 32px; }
  .plan-featured { margin-block: -14px; padding-block: 46px; }
}

/* ---------- Pied de page ---------- */

.site-footer { color: var(--on-night-2); background: #07140e; border-top: 1px solid rgba(231, 178, 74, .28); padding-block: 48px 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid p { max-width: 22rem; }
.foot-h { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(244, 247, 242, .14); font-size: .9375rem; }

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ---------- Formulaires ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 5vw, 36px); }
.card + .card { margin-top: 16px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .96875rem; margin-bottom: 7px; }
.field > small { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }

input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6b7d73; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(20, 56, 45, .15); }
select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2347594f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] select { background-position: left 16px center; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--forest); flex: none; }
input[type="date"], input[type="time"] { color-scheme: light; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; font-size: .96875rem; color: var(--ink-2); }
.check input { margin-top: 2px; }

.form-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.status { min-height: 1.5em; margin-top: 16px; font-weight: 600; line-height: 1.45; }
.status[data-state="ok"] { color: var(--ok); }
.status[data-state="error"] { color: var(--err); }

details.more { margin-bottom: 18px; border: 1px dashed var(--line-2); border-radius: 14px; padding: 4px 16px; }
details.more summary { min-height: 46px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--forest-2); }
details.more[open] { padding-bottom: 8px; }
details.more[open] summary { margin-bottom: 8px; }

.subform { margin-bottom: 18px; padding: 16px 16px 2px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-bottom: 24px; border-radius: 999px; background: #e7eee8; }
.tabs button {
  min-height: 46px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 .96875rem/1 var(--font-body); color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.tabs button[aria-selected="true"] { background: var(--forest); color: #fff; }

.narrow { max-width: 560px; margin-inline: auto; }
.two-col { display: grid; gap: 20px; align-items: start; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.15fr .85fr; gap: 28px; } }

.aside-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.aside-list li { padding-inline-start: 18px; position: relative; color: var(--ink-2); }
.aside-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.aside-list strong { color: var(--ink); }

.note {
  border-inline-start: 4px solid var(--gold); background: #fbf3de; color: #4a3608;
  padding: 14px 16px; border-radius: 12px; line-height: 1.55;
}

/* ---------- Boutique ---------- */

.shop-tools { display: grid; gap: 14px; margin-bottom: 28px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font: 600 .96875rem/1 var(--font-body);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--forest); }
.filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

.shop-grid { display: grid; gap: 14px; }
.product { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.product-top { display: flex; align-items: center; gap: 14px; }
.product-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--forest); color: var(--gold); }
.product-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product h3 { font-size: 1.5rem; }
.product .ref { font-size: .875rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .02em; }
.product p { color: var(--ink-2); }
.product details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--forest-2); }
.product details ul { margin: 0 0 6px; padding-inline-start: 20px; color: var(--ink-2); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.price small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: .8125rem; color: var(--ink-2); }

@media (min-width: 640px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }

/* ---------- Guides, à propos, étapes ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.steps > li:last-child { padding-bottom: 0; }
[dir="rtl"] .steps > li { padding: 0 64px 32px 0; }
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--forest); color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold);
}
.steps > li::after { content: ""; position: absolute; inset-inline-start: 22px; top: 54px; bottom: 6px; width: 2px; background: var(--line-2); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.6rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; padding: 0; }
.tags li { padding: 4px 12px; border-radius: 999px; background: #e7eee8; color: var(--forest); font-size: .875rem; font-weight: 600; }

.profiles { display: grid; gap: 14px; }
.profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; }
.verified { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 12px; border-radius: 999px; background: var(--forest); color: var(--gold-soft); font-size: .875rem; font-weight: 700; }
.rating { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.rating small { font-family: var(--font-body); font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
@media (min-width: 720px) { .profiles { grid-template-columns: 1fr 1fr; } }

.pullquote {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.8rem, 5.6vw, 3rem); line-height: 1.2; color: var(--forest);
  padding-inline-start: 22px; border-inline-start: 4px solid var(--gold); max-width: 30em;
}

/* ---------- Pages de texte (juridique) ---------- */

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose section { margin-top: 2.6em; }
.prose section:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 4.6vw, 2.2rem); margin-bottom: .5em; }
.prose h3 { font-size: 1.4rem; margin: 1.4em 0 .4em; }
.prose p, .prose li { color: #2c4036; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: .5em; margin: .8em 0; }
.prose a { font-weight: 600; }
.prose .note { margin-block: 1.2em; }

/* ---------- Langues à écriture de droite à gauche ---------- */

[dir="rtl"] .eyebrow, [dir="rtl"] .foot-h { letter-spacing: 0; text-transform: none; }

/* ---------- Petits écrans ---------- */

@media (max-width: 380px) {
  .tabbar a { font-size: .75rem; }
  .brand { font-size: 1.2rem; }
  .brand svg { width: 26px; height: 26px; }
  .prefs summary { padding: 0 11px; }
}

@media print {
  .tabbar, .prefs, .cart-link, .top-nav, .masthead::before, .masthead::after { display: none !important; }
  body { padding: 0; }
}

/* ---------- Panier de la boutique et suivi de commande ---------- */

.product-opts { display: grid; gap: 6px; }
.product-opts label { font-weight: 600; font-size: .9375rem; }
.product-opts select { min-height: 46px; }
.product-foot .btn { min-height: 46px; padding-inline: 18px; }
.soon { display: inline-block; width: fit-content; padding: 6px 14px; border-radius: 999px; background: #e7eee8; color: var(--forest); font-size: .875rem; font-weight: 700; }

.cart { margin-top: 36px; scroll-margin-top: 96px; }
.cart h2 { font-size: 1.9rem; margin-bottom: 16px; }
.cart-lines { list-style: none; margin: 0 0 20px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-name { font-weight: 700; }
.cart-sub { color: var(--ink-2); font-size: .9375rem; }
.cart-amount { font-variant-numeric: lining-nums; font-weight: 700; text-align: end; }
.cart-amount small { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.cart-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font: 700 1.25rem/1 var(--font-body); color: var(--forest); cursor: pointer; border-radius: 999px; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: lining-nums; }
.link-btn { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--forest-2); font: 600 .9375rem/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-totals { margin: 0 0 14px; display: grid; gap: 8px; }
.cart-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-totals dt { color: var(--ink-2); }
.cart-totals dd { margin: 0; font-weight: 600; font-variant-numeric: lining-nums; text-align: end; }
.cart-totals .grand { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.125rem; }
.cart-totals .grand dt, .cart-totals .grand dd { color: var(--ink); font-weight: 700; }
.cart-totals small { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }

.cart-bar {
  position: fixed; inset-inline: 12px; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  background: var(--night); color: var(--on-night); border: 1px solid rgba(231, 178, 74, .45); border-radius: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.cart-bar strong { display: block; font-variant-numeric: lining-nums; }
.cart-bar span { font-size: .875rem; color: var(--on-night-2); }
@media (min-width: 880px) { .cart-bar { inset-inline: auto 24px; bottom: 24px; width: 380px; } }

.steps > li[data-state="todo"] { opacity: .5; }
.steps > li[data-state="current"] h3 { color: var(--gold-deep); }
.order-ref { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.track { margin: 18px 0; padding: 16px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); display: grid; gap: 6px; }
.track strong { font-variant-numeric: lining-nums; }

/* Gestion des commandes (propriétaire) */
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-list { display: grid; gap: 16px; }
.adm-order { display: grid; gap: 14px; }
.adm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.adm-top h3 { font-size: 1.5rem; }
.adm-meta { color: var(--ink-2); font-size: .9375rem; }
.fiche { margin: 0; padding: 14px 16px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); font: 500 .9375rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-form { display: grid; gap: 0 14px; padding: 16px 16px 2px; border-radius: 14px; border: 1px dashed var(--line-2); }
@media (min-width: 640px) { .adm-form { grid-template-columns: 1fr 1fr 1fr; } }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e7eee8; color: var(--forest); font-size: .875rem; font-weight: 700; }
.badge[data-tone="todo"] { background: #fbe9c4; color: var(--gold-deep); }
.badge[data-tone="bad"] { background: #f7dcd9; color: var(--err); }

/* ---------- Réservation d'un accompagnement ---------- */

.step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.step > .small { margin: -4px 0 12px; }
.svc-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { position: relative; display: block; cursor: pointer; }
.svc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.svc-box { display: grid; gap: 4px; align-content: start; min-height: 84px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.svc-box strong { font-size: 1.0625rem; }
.svc-box span { font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
.svc input:checked + .svc-box { background: var(--forest); border-color: var(--forest); color: #fff; }
.svc input:checked + .svc-box span { color: var(--on-night-2); }
.svc input:focus-visible + .svc-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.tier-box i { font-style: normal; font-size: .8125rem; color: var(--ink-2); }
.tier input:checked + .tier-box i { color: var(--on-night-2); }
.price-line { margin: 12px 0 0; font-weight: 600; }
.price-line small { display: block; margin-top: 2px; font-weight: 500; color: var(--ink-2); }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .time-grid { grid-template-columns: repeat(5, 1fr); } }
.time { min-height: 46px; padding: 0 6px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: 600 1rem/1 var(--font-body); font-variant-numeric: lining-nums; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.time:hover { border-color: var(--forest); }
.time[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.recap { display: grid; gap: 8px; margin: 0 0 18px; padding: 16px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); }
.recap > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.recap dt { color: var(--ink-2); }
.recap dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: lining-nums; }
.recap small { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; background: #fbf1d8; border: 1px solid var(--gold); }
.banner p { margin: 0; flex: 1 1 260px; }
.done-box { display: grid; gap: 16px; }
.done-box h2 { font-size: 2rem; }
.next-box { padding: 16px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); display: grid; gap: 10px; }
.link-line { word-break: break-all; font-size: .9375rem; color: var(--ink-2); }

/* Proposition d'un guide dans la discussion */
.sg-card { align-self: stretch; display: grid; gap: 10px; margin-top: 4px; padding: 16px; border-radius: 18px; background: #fbf1d8; border: 1px solid var(--gold); }
.sg-card strong { font-size: 1.0625rem; }
.sg-card p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.sg-card .cta-row { margin-top: 2px; }

/* Types d'accompagnement et tarifs (page Forfaits) */
.svc-list { display: grid; gap: 14px; }
@media (min-width: 880px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc-item { display: grid; gap: 10px; align-content: start; }
.svc-item h3 { font-size: 1.6rem; }
.svc-item p { margin: 0; color: var(--ink-2); }
.svc-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-prices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.svc-prices b { font-variant-numeric: lining-nums; }
.svc-prices small { display: block; color: var(--ink-2); font-size: .8125rem; }

/* Une grille à deux colonnes ne doit jamais s'élargir à cause d'une rangée qui défile (jours du calendrier) */
.two-col > * { min-width: 0; }
.card .filters { margin-inline: 0; padding-inline: 0; }

/* Écoute à voix haute des réponses de Souffle Ancestral */
.msg-listen { display: inline-flex; align-items: center; gap: 6px; }
.msg-listen::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ico-sound) center / contain no-repeat; mask: var(--ico-sound) center / contain no-repeat; }
.msg-listen[data-state="playing"]::before { -webkit-mask-image: var(--ico-stop); mask-image: var(--ico-stop); }
.msg-listen[data-state="loading"]::before { animation: pulse 1s ease-in-out infinite; }
:root {
  --ico-sound: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E");
  --ico-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E");
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .msg-listen[data-state="loading"]::before { animation: none; } }

/* Comptes : code de connexion, page « Mon compte » */
.code-input { font: 700 1.9rem/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .45em; text-align: center; padding-inline-start: calc(16px + .45em); }
.acct-stack > * + * { margin-top: 16px; }
.acct-h { font-size: 1.9rem; margin: 0 0 14px; }
.rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.row-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.row-item audio { width: 100%; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.pill-ok { background: #e3f3e8; color: var(--ok); }
.pill-wait { background: #fbf3de; color: #4a3608; }
.pill-off { background: #eceeed; color: var(--ink-2); }
.btn-danger { color: var(--err); border-color: var(--err); background: transparent; }
.btn-danger:hover { color: #fff; background: var(--err); border-color: var(--err); }
.acct-end { padding-block: 22px; }

/* Transparence : répartition du prix, chiffres, tableaux */
.split-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin: 6px 0 16px; background: var(--line); }
.split-bar span { display: block; height: 100%; }
.split-bar [data-part="guide"], .split-legend [data-part="guide"] { background: var(--forest-2); }
.split-bar [data-part="charity"], .split-legend [data-part="charity"] { background: var(--gold); }
.split-bar [data-part="platform"], .split-legend [data-part="platform"] { background: var(--line-2); }
.split-legend { display: grid; gap: 10px; list-style: none; margin: 0 0 10px; padding: 0; }
.split-legend li { display: flex; gap: 10px; align-items: baseline; }
.split-legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 8px; }
.figure b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--forest); }
.figure span { color: var(--ink-2); font-size: .9375rem; }
.tbl-scroll { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--ink-2); font-weight: 700; }

/* Mobile et application installée : rien ne dépasse de l'écran, ni à gauche ni à droite.
   Une piste de grille « auto » se règle sur le contenu le plus large : min-width: 0 la laisse rétrécir. */
html { overflow-x: clip; }
article, section, .card, .product, .svc-item { min-width: 0; }
.svc-prices li { flex-wrap: wrap; }
/* Zones sûres (encoche, barre d'état, coins arrondis) : le contenu les évite, les fonds les recouvrent. */
.wrap { width: min(var(--maxw), 100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
.tabbar { inset-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.masthead { padding-top: env(safe-area-inset-top, 0px); }

/* Bandeau d'installation de l'application */
.install-banner {
  position: fixed; inset-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 46;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  max-width: 560px; margin-inline: auto; padding: 12px 14px; border-radius: 20px;
  background: var(--night); color: var(--on-night); border: 1px solid rgba(231, 178, 74, .35); box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.install-banner[hidden] { display: none; }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; }
.install-banner strong { display: block; font-size: 1rem; line-height: 1.2; }
.install-banner span { display: block; color: var(--on-night-2); font-size: .875rem; line-height: 1.35; }
.install-banner .install-actions { display: flex; gap: 6px; align-items: center; }
.install-banner .btn { min-height: 40px; padding-inline: 14px; }
.install-banner .install-close { background: none; border: 0; color: var(--on-night-2); min-width: 40px; min-height: 40px; font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 12px; }
.install-banner .install-close:hover { color: var(--on-night); }
@media (min-width: 880px) { .install-banner { bottom: 18px; } }
.install-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.install-line { margin-top: 6px; }
.install-line .install-link { min-height: 44px; color: var(--on-night); text-underline-offset: 3px; }
.install-line .install-link:hover { color: var(--gold-soft); }
.product-foot { flex-wrap: wrap; }
.adm-order h3, .adm-order p, .adm-order .adm-meta { overflow-wrap: anywhere; }

/* Dictée vocale : micro à droite du champ */
/* Mon compte : espace des chants */
.storage { display: grid; gap: 6px; margin: 0 0 12px; font-size: .875rem; color: var(--ink-2); }
.storage[hidden] { display: none; }
.storage-bar { display: block; height: 6px; border-radius: 999px; background: rgba(20, 56, 45, .1); overflow: hidden; }
.storage-bar i { display: block; height: 100%; width: 0; background: var(--forest); }

/* Réservation : prix remisé */
.tier-box small del, #priceLine del { opacity: .55; }
.tier-box .promo { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #fbe9c4; color: #5a4208; font-style: normal; font-size: .75rem; font-weight: 700; }

/* Page Chant ancestral : offre, conseil d'essai, essais compris, formulaire d'essai */
.offer-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #fff9e8, #f8edd2); border: 1px solid rgba(231, 178, 74, .6); }
.offer-banner[hidden] { display: none; }
.offer-banner strong { flex: 1 1 100%; }
.offer-banner span { flex: 1 1 220px; }
.tip { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef6f0; border: 1px solid #cfe3d5; color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.tip[hidden] { display: none; }
.tier-box del { opacity: .55; margin-inline-end: 2px; }
.tier-box .tries { color: var(--forest-2); font-weight: 600; }
.quote-note { min-height: 0; margin: 0 0 8px; }
.quote-note:empty { display: none; }
.retry-box { display: grid; gap: 10px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfb; }
.retry-box h3 { margin: 0; font-size: 1.0625rem; }
.retry-box .field { margin: 0; }
.result-slot:empty { display: none; }
.result-slot { margin-top: 12px; display: grid; gap: 10px; }
.link-button { border: 0; background: none; padding: 8px 2px; font: inherit; font-size: .9375rem; color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.voice-wrap { position: relative; display: block; }
.voice-wrap > input, .voice-wrap > textarea { padding-inline-end: 52px; }
.voice-wrap .mic {
  position: absolute; inset-inline-end: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--forest-2); cursor: pointer;
}
.voice-wrap > textarea ~ .mic { top: 8px; }
.voice-wrap .mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.voice-wrap .mic:hover { background: #e7eee8; }
.voice-wrap .mic[aria-pressed="true"] { background: var(--err); color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, .45); } 50% { box-shadow: 0 0 0 8px rgba(179, 38, 30, 0); } }
@media (prefers-reduced-motion: reduce) { .voice-wrap .mic[aria-pressed="true"] { animation: none; } }
.voice-msg { display: block; margin-top: 6px; color: var(--ink-2); font-size: .875rem; }
.ref-box { display: grid; gap: 0 16px; padding: 14px 16px 2px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfb; }
.ref-box > strong { display: block; margin-bottom: 8px; }

/* Séance en visio : carte d'accueil, puis salle plein écran avec durée comptée et montant en direct */
.visio-card { max-width: 640px; margin-inline: auto; }
.visio-count { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--forest-2); }
.visio-stage { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--night); color: var(--on-night); height: 100vh; height: 100dvh; padding-top: env(safe-area-inset-top); }
.visio-stage[hidden] { display: none; }
.visio-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right)); background: var(--night-2); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.visio-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-width: 0; }
.visio-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; }
.visio-live i { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: visioPulse 2s ease-out infinite; }
.visio-fig { display: inline-flex; flex-direction: column; line-height: 1.15; }
.visio-fig small { color: var(--on-night-2); font-size: .75rem; }
.visio-fig b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.visio-bar .btn-danger { color: #ffb4ad; border-color: #ffb4ad; }
.visio-bar .btn-danger:hover { color: #fff; background: var(--err); border-color: var(--err); }
.visio-notice { margin: 0; padding: 8px 14px; background: var(--gold-soft); color: var(--night); font-weight: 600; font-size: .9375rem; text-align: center; }
.visio-notice[hidden] { display: none; }
.visio-frame { flex: 1; min-height: 0; background: #000; }
.visio-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
body.in-call { overflow: hidden; }
@keyframes visioPulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .visio-live i { animation: none; } }

/* Tarif à la minute : montant maximum bloqué et facturation finale, sur la réservation et dans les espaces */
.bill-note { padding: 12px 14px; border-radius: 14px; background: #eef4ee; border: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.bill-note strong { color: var(--ink); }

/* Portrait de l'accueil : seconde image pour le fondu entre deux portraits (représentation afro) */
.halo .portrait-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; box-shadow: none; pointer-events: none; }
.halo .portrait-layer.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .halo .portrait-layer { transition: none; } }

/* Charte éthique des guides : texte, signature par les initiales, co-signature */
.charter-list { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 10px; }
.charter-list li { color: var(--ink-2); line-height: 1.5; }
.charter-list strong { color: var(--ink); }
.charter-box .charter-read { margin-bottom: 14px; }
.charter-read summary { cursor: pointer; font-weight: 600; color: var(--forest-2); min-height: 44px; display: flex; align-items: center; }
.sign-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.sign-box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 10px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fbfdfb; }
.sign-box b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--forest); letter-spacing: .04em; }
.sign-box small { color: var(--ink-2); }
@media (max-width: 420px) { .sign-pair { grid-template-columns: 1fr; } }
/* Photo de profil des guides */
.photo-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.photo-circle { width: 120px; height: 120px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #eef4ee; border: 2px solid var(--line-2); text-align: center; }
.photo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-circle-sm { width: 96px; height: 96px; margin: 8px 0; }
.photo-empty { padding: 8px; font-size: .8125rem; color: var(--ink-2); }
.photo-side { flex: 1 1 220px; min-width: 0; display: grid; gap: 10px; }
/* Bouton « Admin » de l'en-tête (compte propriétaire) */
/* Le menu s'ouvre sous l'en-tête, aligné sur son bord droit : il ne dépasse jamais de l'écran, quelle que soit la place du bouton. */
.site-header .bar { position: relative; }
.admin-menu { position: static; margin-inline-start: auto; }
.admin-menu + .prefs { margin-inline-start: 8px; }
.admin-menu summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; user-select: none;
  background: var(--gold); color: var(--night); font-size: .9375rem; font-weight: 700;
}
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu[open] summary { background: var(--gold-soft); }
.admin-menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 70; width: min(320px, calc(100vw - 2 * var(--gutter)));
  max-height: min(78vh, 560px); overflow-y: auto; padding: 14px 16px; border-radius: 18px;
  background: var(--card); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.admin-menu-title { margin: 12px 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.admin-menu-title:first-child { margin-top: 0; }
.admin-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.admin-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.admin-menu-panel a:hover { background: #eef4ee; }
.admin-menu-panel a[aria-current="page"] { background: #eef4ee; color: var(--forest-2); }
@media (min-width: 880px) { .admin-menu { margin-inline-start: 8px; } }

/* Aperçu propriétaire de l'espace guide */
.preview-banner { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--night); border: 1px solid var(--gold); font-size: .9375rem; }
.preview-banner[hidden] { display: none; }
.preview-banner a { color: var(--night); font-weight: 700; margin-inline-start: 6px; }
.cond-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; margin: 22px 0 8px; }


/* En-tête de page : une icône simple, à droite du texte, qui reflète la page (discussion, ankhtime, musique, boutique, guides, à propos) */
.page-head.has-icon { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
.page-head.has-icon > :not(.page-icon) { grid-column: 1; }
.page-head.has-icon > .page-icon { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
.page-icon {
  --size: 72px; width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 50%; color: var(--gold);
  border: 1.5px solid rgba(231, 178, 74, .55); background: radial-gradient(circle, rgba(231, 178, 74, .16), rgba(231, 178, 74, .04) 72%);
  box-shadow: 0 0 0 6px rgba(231, 178, 74, .07), 0 0 0 7px rgba(231, 178, 74, .2);
}
.page-icon svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .page-icon { --size: 150px; }
  .page-head.has-icon { column-gap: 56px; }
}

/* Panier : une icône ronde tout à droite de l'en-tête, avec le nombre d'articles ; visible seulement quand le panier n'est pas vide */
.cart-link {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--gold); text-decoration: none;
  border: 1px solid rgba(231, 178, 74, .6); background: rgba(231, 178, 74, .12);
}
.cart-link[hidden] { display: none; }
.cart-link:hover { background: rgba(231, 178, 74, .22); color: var(--gold-soft); }
.cart-link svg { width: 22px; height: 22px; }
.cart-link-count {
  position: absolute; inset-block-start: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--night);
  font-size: .75rem; font-weight: 700; line-height: 1; border: 2px solid var(--night);
}
.cart-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .cart-link.is-bumped { animation: cart-bump .6s ease; }
  @keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.28); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
}
/* Petits écrans : l'en-tête se resserre pour garder de la place à l'icône de panier (il ne bouge donc pas quand elle apparaît) */
@media (max-width: 374px) {
  .site-header .bar { gap: 8px; }
  .site-header .brand { font-size: 1.2rem; gap: 8px; }
  .site-header .brand svg { width: 26px; height: 26px; }
  .prefs summary { padding: 0 10px; gap: 6px; }
}
@media (max-width: 339px) {
  .prefs summary svg { display: none; }
  .site-header .brand { font-size: 1.05rem; }
  .site-header .brand svg { width: 24px; height: 24px; }
}

/* Candidature de guide en conversation avec Souffle Ancestral : bulles, progression par étapes, zone de réponse en bas, comme une application */
.apply-chat { display: flex; flex-direction: column; height: min(78vh, 660px); height: min(78dvh, 660px); min-height: 480px; border: 1px solid var(--line); border-radius: 22px; background: #f6f9f5; overflow: hidden; }
.apply-chat[hidden] { display: none; }
.ac-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; background: var(--night); color: var(--on-night); }
.ac-back { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--on-night); cursor: pointer; }
.ac-back:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.ac-back:disabled { opacity: .3; cursor: default; }
.ac-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-back:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ac-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold); border: 1.5px solid rgba(231, 178, 74, .65); }
.ac-avatar svg { width: 54%; height: 54%; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.ac-avatar.sm { width: 30px; height: 30px; }
.ac-who { min-width: 0; line-height: 1.25; }
.ac-who b { display: block; font-size: 1rem; }
.ac-who small { display: block; color: var(--on-night-2); font-size: .8125rem; }
.ac-count { margin-inline-start: auto; font-size: .8125rem; font-weight: 700; color: var(--gold-soft); white-space: nowrap; }
.ac-progress { display: flex; gap: 4px; padding: 2px 14px 12px; background: var(--night); }
.ac-progress i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ac-progress i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .35s ease; }
[dir="rtl"] .ac-progress i::after { transform-origin: right center; }
.ac-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; scroll-behavior: smooth; }
.ac-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.ac-msg.me { align-self: flex-end; flex-direction: row-reverse; max-width: 86%; }
.ac-msg.in { animation: acIn .25s ease both; }
@keyframes acIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ac-bubble { padding: 10px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
.ac-msg.bot .ac-bubble { border-end-start-radius: 6px; }
.ac-msg.me .ac-bubble { background: var(--forest); border-color: var(--forest); color: #fff; border-end-end-radius: 6px; white-space: pre-line; }
.ac-msg.me .ac-bubble.skip { background: transparent; border: 1px dashed var(--line-2); color: var(--ink-2); font-style: italic; }
.ac-bubble p + p { margin-top: 8px; }
.ac-typing { display: flex; gap: 5px; align-items: center; min-height: 40px; }
.ac-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .35; animation: acDot 1s ease-in-out infinite; }
.ac-typing span:nth-child(2) { animation-delay: .15s; }
.ac-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes acDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ac-thumb { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); }
.ac-bubble .charter-read { margin-top: 10px; }
.ac-bubble .charter-text { max-height: 220px; overflow-y: auto; }
.ac-review { margin-top: 12px; border-top: 1px solid var(--line); }
.ac-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ac-k { grid-column: 1 / -1; font-size: .78125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.ac-v { min-width: 0; overflow-wrap: anywhere; }
.ac-line .ac-thumb { border-color: var(--line-2); }
.ac-line .link-btn { min-height: 36px; align-self: center; }
.ac-composer { border-top: 1px solid var(--line); background: #fff; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.ac-composer.is-busy .ac-panel { visibility: hidden; }
.ac-panel[hidden] { display: none; }
.ac-row { display: flex; align-items: flex-end; gap: 8px; }
.ac-input { flex: 1; min-width: 0; }
.ac-input textarea { min-height: 48px; max-height: 120px; resize: none; border-radius: 24px; padding: 12px 16px; line-height: 1.4; }
.ac-input input { border-radius: 24px; }
.ac-send { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; cursor: pointer; }
.ac-send:hover { background: var(--forest-2); }
.ac-send svg { width: 22px; height: 22px; fill: currentColor; }
.ac-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ac-note { margin: 6px 4px 0; font-size: .8125rem; }
.ac-note:empty { display: none; }
.ac-panel .link-btn { margin-top: 6px; min-height: 40px; }
.ac-suggest, .ac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ac-suggest[hidden] { display: none; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-actions .btn { flex: 1 1 180px; }
.ac-photo { display: flex; align-items: center; gap: 16px; }
.ac-photo-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; position: relative; }
.ac-photo-side input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-photo-side input[type="file"]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.ac-composer .check { margin-bottom: 12px; font-size: .9375rem; }
.ac-composer .status { min-height: 0; margin-top: 8px; font-size: .9375rem; }
@media (prefers-reduced-motion: reduce) {
  .ac-msg.in, .ac-typing span { animation: none; }
  .ac-progress i::after { transition: none; }
  .ac-log { scroll-behavior: auto; }
}
@media (min-width: 560px) {
  .apply-chat { height: min(70vh, 640px); height: min(70dvh, 640px); }
  .ac-log { padding: 20px 18px; }
}

/* Page Ankhtime : le texte « Ce qui est affiché avant de réserver » et, à droite, l'image de la représentation choisie */
.clear-block { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
@media (min-width: 880px) { .clear-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.clear-art { margin: 0; border-radius: 22px; overflow: hidden; background: var(--night); border: 1px solid rgba(231, 178, 74, .4); box-shadow: 0 18px 44px rgba(11, 31, 24, .22); }
.clear-art img { display: block; width: 100%; height: auto; }

/* Compte propriétaire : le bouton Admin s'ajoute à l'en-tête. Sur téléphone, langue et devise passent en icône seule, et le nom du site laisse la place sur les plus petits écrans. */
@media (max-width: 519px) {
  .site-header .bar.has-admin .prefs summary { padding: 0; width: 44px; justify-content: center; }
  .site-header .bar.has-admin .prefs summary [data-prefs-label] { display: none; }
  .site-header .bar.has-admin .admin-menu summary { padding: 0 13px; }
}
@media (max-width: 359px) {
  .site-header .bar.has-admin .brand span { display: none; }
}

/* Téléphone : le panneau langue et devise s'accroche à l'en-tête et non au bouton, pour ne jamais sortir de l'écran */
@media (max-width: 600px) {
  .site-header .bar .prefs { position: static; }
  .site-header .bar .prefs-panel { inset-inline-end: var(--gutter); }
  /* Réglages : sur téléphone, la roue crantée seule (le détail langue et devise est dans le panneau). */
  .site-header .bar .prefs summary { padding: 0; width: 44px; justify-content: center; }
  .site-header .bar .prefs summary [data-prefs-label] { display: none; }
  .site-header .bar .prefs summary svg { display: block; }
}
/* Compte propriétaire : le nom du site laisse la place jusqu'à 449 px, mais le logo reste une cible à toucher */
@media (max-width: 449px) {
  .site-header .bar.has-admin .brand span { display: none; }
  .site-header .bar.has-admin .brand { min-width: 44px; justify-content: center; }
}

/* Tablette et petit portable : la navigation, le compte, le bouton Admin et le panier tiennent sur une ligne (langue et devise en icône seule) */
@media (min-width: 880px) and (max-width: 1099px) {
  .site-header .bar .prefs summary { padding: 0; width: 44px; justify-content: center; }
  .site-header .bar .prefs summary [data-prefs-label] { display: none; }
  .top-nav a:not(.btn) { padding: 0 10px; }
  .top-nav .btn { margin-inline-start: 4px; }
}
@media (min-width: 880px) and (max-width: 999px) {
  /* Propriétaire : la navigation reste sur la première ligne, Admin, langue et panier passent à la seconde plutôt que de sortir de l'écran */
  .site-header .bar.has-admin { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
  .site-header .bar.has-admin .admin-menu { margin-inline-start: auto; }
}

/* ---------- Radio Ancestral et précepte de l'heure ---------- */
@keyframes radio-pulse { 0% { box-shadow: 0 0 0 0 rgba(231, 178, 74, .6); } 70% { box-shadow: 0 0 0 8px rgba(231, 178, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 178, 74, 0); } }
.radio-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) { .radio-live-dot { animation: radio-pulse 2.4s ease-out infinite; } }

/* Bouton de l'en-tête */
.radio-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px; margin-inline-start: 4px;
  border: 1.5px solid rgba(231, 178, 74, .65); border-radius: 999px; background: rgba(231, 178, 74, .1); color: var(--gold-soft);
  font: 700 .875rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
}
.radio-chip:hover { background: rgba(231, 178, 74, .2); color: var(--on-night); }
.radio-chip.is-playing { background: var(--gold); color: var(--night); border-color: var(--gold); }
.radio-chip.is-playing .radio-live-dot { background: var(--night); animation: none; }
.radio-chip .radio-ico svg, .radio-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Petits écrans : le bouton se resserre pour laisser sa place au choix de langue (d'abord sans l'icône, puis sans le mot). */
@media (max-width: 419px) { .radio-chip { padding: 0 12px; } .radio-chip .radio-ico { display: none; } }
@media (max-width: 339px) { .radio-chip { padding: 0 11px; } .radio-chip .radio-chip-label { display: none; } .radio-chip .radio-ico { display: inline-flex; } }

/* Petit lecteur sous l'en-tête */
.radio-panel {
  position: absolute; inset-inline-start: var(--gutter); top: calc(100% + 6px); z-index: 75; width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 16px 18px 14px; border-radius: 20px; background: var(--night-2); color: var(--on-night); border: 1px solid rgba(231, 178, 74, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.radio-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.radio-panel-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.radio-panel-close { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -8px -10px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-night-2); cursor: pointer; }
.radio-panel-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.radio-panel-title { margin: 6px 0 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.radio-panel-meta { margin: 0 0 12px; font-size: .875rem; color: var(--on-night-2); }
.radio-panel-progress { height: 4px; border-radius: 2px; background: rgba(244, 247, 242, .18); overflow: hidden; }
.radio-panel-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.radio-panel-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.radio-panel-link { margin-inline-start: auto; color: var(--gold-soft); font-weight: 600; font-size: .9375rem; }
.radio-panel-link:hover { color: var(--on-night); }
.radio-panel .radio-btn { background: rgba(244, 247, 242, .1); color: var(--on-night); border-color: rgba(244, 247, 242, .25); }
.radio-panel .radio-btn.radio-play { background: var(--gold); color: var(--night); border-color: var(--gold); }

/* Boutons du lecteur (page et petit lecteur) */
.radio-btn {
  position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--forest); cursor: pointer;
}
.radio-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.radio-btn:hover { border-color: var(--forest-2); }
.radio-btn.radio-play { width: 64px; height: 64px; background: var(--forest); color: var(--on-night); border-color: var(--forest); }
.radio-btn.radio-play svg { width: 28px; height: 28px; }
.radio-btn.radio-play .ico-play { fill: currentColor; stroke: none; }
.radio-btn.radio-play .ico-pause { display: none; stroke-width: 3; }
.radio-btn.radio-play.is-playing .ico-play { display: none; }
.radio-btn.radio-play.is-playing .ico-pause { display: block; }
.radio-btn.radio-play.is-loading::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--gold); animation: radio-spin 1s linear infinite; }
@keyframes radio-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radio-btn.radio-play.is-loading::after { animation: none; border-color: var(--gold); } }

/* Page Radio */
.radio-wrap, .vh-wrap { max-width: 760px; }
.radio-wrap .card, .vh-wrap .card { margin-top: 16px; }
.radio-player { margin-top: 0 !important; }
.radio-status { margin: 0; color: var(--ink-2); }
.radio-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.radio-eyebrow::before { display: none; }
.radio-now h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.15; }
.radio-bar { margin: 20px 0 6px; }
.radio-bar input[type="range"] { width: 100%; accent-color: var(--forest); height: 28px; }
.radio-times { display: flex; justify-content: space-between; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.radio-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.radio-error { margin: 14px 0 0; color: var(--err); }
.radio-text summary { cursor: pointer; font-weight: 700; color: var(--forest); min-height: 44px; display: flex; align-items: center; }
.radio-text[open] summary { margin-bottom: 10px; }
.radio-part { margin-bottom: 16px; }
.radio-part h3 { font-size: 1.05rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; color: var(--forest-2); }
.radio-part p { margin: 0 0 8px; }
.radio-passage { font-weight: 600; color: var(--gold-deep); }
.radio-explore, .radio-sources, .radio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.radio-explore-link { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--ink); }
.radio-explore-link:hover { border-color: var(--forest-2); background: #f4f9f4; }
.radio-explore-link strong { color: var(--forest); }
.radio-sources a { word-break: break-word; }
.radio-list-item { display: grid; gap: 2px; width: 100%; text-align: start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.radio-list-item[aria-current="true"] { border-color: var(--forest); background: #eef4ee; box-shadow: 0 0 0 2px var(--gold); }
.radio-cta .btn { margin-top: 6px; }

/* Page Précepte de l'heure */
.vh-wrap .precept { margin-bottom: 0; }
.vh-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vh-sub .cta-row { margin-top: 4px; }
.vh-sub select { max-width: 360px; }
#vhStatus { margin: 12px 0 0; min-height: 1.4em; color: var(--forest-2); font-weight: 600; }
#vhStatus.error { color: var(--err); }
.precept-link { display: inline-block; margin-top: 14px; color: var(--gold-soft); font-weight: 600; }
.precept-link:hover { color: var(--on-night); }
@media print { .radio-chip, .radio-panel { display: none !important; } }
.radio-controls { flex-wrap: nowrap; }
@media (max-width: 419px) {
  .radio-controls { gap: 8px; }
  .radio-btn { width: 42px; height: 42px; }
  .radio-btn svg { width: 20px; height: 20px; }
  .radio-btn.radio-play { width: 58px; height: 58px; }
  .radio-btn.radio-play svg { width: 26px; height: 26px; }
  .radio-panel .radio-btn { width: 44px; height: 44px; }
  .radio-panel .radio-btn.radio-play { width: 52px; height: 52px; }
}

/* Paramètres : jeux et animations (rien ne s'affiche sans le choix de la personne) */
.games-box { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.games-box legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.games-box p { margin: 0 0 10px; line-height: 1.4; }
.prefs-panel .games-box label.check, .games-box label.check { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 0; min-height: 40px; font-weight: 500; font-size: .9375rem; cursor: pointer; }
.games-box input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }

/* ---------- Jeux (facultatifs) : message « jeu masqué », mots croisés ---------- */
.game-off { text-align: center; margin-top: 0; }
.game-off h2 { margin-bottom: 6px; }
.game-off .btn { margin-top: 8px; }

.mc-wrap { max-width: 640px; }
.mc-wrap .card { margin-top: 14px; padding: clamp(14px, 4vw, 24px); }
.mc-head .eyebrow { margin: 0 0 4px; }
.mc-stats { margin: 0 0 12px; color: var(--ink-2); font-size: .9375rem; }
#mcDate::first-letter { text-transform: uppercase; }
.mc-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-status { min-height: 1.4em; margin: 8px 0 0; color: var(--forest-2); font-weight: 600; }
.mc-clue { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 52px; }
.mc-clue-text { flex: 1; margin: 0; line-height: 1.35; font-size: .96875rem; }
.mc-clue-text b { color: var(--gold-deep); margin-inline-end: 4px; }
.mc-step { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--forest); padding: 0; }
.mc-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-grid { --cols: 13; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; width: 100%; max-width: 460px; margin-inline: auto; padding: 4px; background: var(--forest); border-radius: 10px; direction: ltr; }
.mc-block { background: var(--forest); aspect-ratio: 1; }
.mc-cell { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.mc-cell .mc-num { position: absolute; top: 1px; left: 2px; font-size: clamp(.45rem, 1.8vw, .62rem); line-height: 1; color: var(--ink-2); font-weight: 700; }
.mc-letter { font: 700 clamp(.9rem, 4.2vw, 1.35rem)/1 var(--font-body); color: var(--ink); }
.mc-cell.inword { background: #fbf1d4; }
.mc-cell.sel { background: var(--gold); box-shadow: inset 0 0 0 2px var(--forest); }
.mc-cell.rev .mc-letter { color: var(--gold-deep); }
.mc-cell.wrong { background: #fde2e0; }
@media (prefers-reduced-motion: no-preference) { .mc-cell.wrong { animation: mc-shake .3s; } }
@keyframes mc-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }
.mc-keys { margin-top: 14px; display: grid; gap: 6px; direction: ltr; }
.mc-key-row { display: flex; justify-content: center; gap: 5px; }
.mc-key { flex: 1 1 0; max-width: 40px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 700 1rem/1 var(--font-body); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.mc-key:active { background: var(--gold-soft); }
.mc-key-wide { flex: 1.6 1 0; max-width: 64px; }
.mc-key svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-win { border-color: var(--gold) !important; background: #fffaf0; }
.mc-refs { margin: 8px 0 14px; padding-inline-start: 20px; columns: 2; font-size: .9rem; color: var(--ink-2); }
.mc-clues summary { cursor: pointer; font-weight: 700; color: var(--forest); min-height: 44px; display: flex; align-items: center; }
.mc-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.mc-list li { padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: .9375rem; line-height: 1.35; }
.mc-list li.current { background: #fbf1d4; }
.mc-list li.done { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(18, 38, 30, .35); }
.mc-list b { color: var(--gold-deep); }

/* ---------- Jeux : légion de Maât, accueil des jeux, rappels ---------- */
.lg-pause { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(244, 247, 242, .45); background: transparent; color: var(--on-night); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lg-pause svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lg-precept { margin: 0 0 14px; padding: 12px 14px; border-inline-start: 3px solid var(--gold); background: #fffaf0; border-radius: 0 12px 12px 0; }
.lg-precept p { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.4; }
.lg-precept cite { font-style: normal; font-size: .875rem; color: var(--gold-deep); font-weight: 700; }
.lg-halos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lg-halo { min-height: 40px; padding: 0 14px 0 34px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 600 .9375rem var(--font-body); color: var(--ink); cursor: pointer; position: relative; }
.lg-halo::before { content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 0 2px rgba(0, 0, 0, .1); }
.lg-halo[aria-pressed="true"] { border-color: var(--forest); background: #fbf1d4; }
.lg-how { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: .9375rem; }

.jx-wrap { max-width: 640px; }
.jx-wrap .card { margin-top: 14px; padding: clamp(14px, 4vw, 24px); }
.jx-idle { border-color: var(--gold) !important; background: #fffaf0; }
.jx-rank { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.jx-rank b { font: 600 1.5rem/1.2 var(--font-display); color: var(--forest); }
.jx-rank span { font-weight: 700; color: var(--gold-deep); }
.jx-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; direction: ltr; }
.jx-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .3s; }
.jx-progress p { margin: 8px 0 0; }
.jx-list, .jx-games, .jx-badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jx-quest { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jx-quest:last-child { border-bottom: 0; }
.jx-quest-label { flex: 1; min-width: 160px; }
.jx-game { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.jx-game:last-child { border-bottom: 0; }
.jx-game-text { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.jx-game-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jx-done { color: var(--ok); font-weight: 600; }
.jx-badges { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.jx-badge { padding: 8px 12px; border-radius: 999px; background: #fbf1d4; color: var(--gold-deep); font-weight: 600; font-size: .875rem; text-align: center; }

.nt .nt-topics { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.nt .nt-topics legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.nt .nt-topics .check { margin-bottom: 6px; }
.nt .nt-status { min-height: 1.4em; color: var(--forest-2); font-weight: 600; }
.nt .nt-status.error { color: var(--err); }

/* ---------- Jeu des 7 erreurs ---------- */
.se-wrap { max-width: 920px; }
.se-wrap .card { margin-top: 14px; padding: clamp(14px, 4vw, 24px); }
.se-head .eyebrow { margin: 0 0 4px; }
.se-stats { margin: 0 0 10px; color: var(--ink-2); font-size: .9375rem; }
.se-dots { display: flex; gap: 8px; margin-bottom: 12px; }
.se-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.se-dot.on { background: var(--gold); border-color: var(--gold-deep); }
.se-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.se-board { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .se-board { grid-template-columns: 1fr 1fr; } }
.se-fig { margin: 0; display: grid; gap: 6px; }
.se-fig figcaption { font-weight: 700; font-size: .9375rem; color: var(--forest); }
.se-img { position: relative; aspect-ratio: 4 / 3; border: 2px solid var(--forest); border-radius: 14px; overflow: hidden; background: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
.se-img svg { display: block; width: 100%; height: 100%; }
.se-img .se-over { position: absolute; inset: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .se-hint { animation: se-pulse 1s ease-in-out infinite; } }
@keyframes se-pulse { 50% { stroke-opacity: .35; } }

/* ---------- Détente spirituelle : cartes qui défilent ---------- */
.dt-wrap { max-width: 980px; }
.dt-wrap .card { margin-top: 14px; padding: clamp(14px, 4vw, 24px); }
.dt-sec { margin-top: 28px; }
.dt-sec > h2 { margin: 0 0 4px; }
.dt-sec > p { margin: 0 0 10px; }
.dt-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.dt-rail:focus-visible { outline-offset: 0; }
.dt-rail > .dt-card { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
.dt-rail-single > .dt-card { flex: 1 1 100%; }
@media (min-width: 900px) {
  .dt-rail { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
  .dt-rail > .dt-card { flex: 1 1 calc(33.33% - 14px); max-width: calc(33.33% - 10px); }
  .dt-rail-single > .dt-card { max-width: none; }
}
.dt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; align-content: start; gap: 10px; box-shadow: 0 6px 18px rgba(20, 56, 45, .06); }
.dt-card p { margin: 0; }
.dt-card h3 { margin: 0; font: 600 1.25rem/1.2 var(--font-display); color: var(--forest); }
.dt-card-wide { gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .dt-card { animation: dt-in .45s ease both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes dt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.dt-head { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(20, 56, 45, .08); color: var(--forest); font-weight: 700; font-size: .8125rem; }
.dt-chip-gold { background: #fbf1d4; color: var(--gold-deep); }
.dt-level-2 { background: #fbf3de; color: #5a4208; }
.dt-level-3 { background: #f6e1de; color: #7a1c14; }
.dt-fact-text, .dt-statement { font-size: 1.0625rem; line-height: 1.5; }
.dt-statement { font-weight: 600; }
.dt-tf-buttons { display: flex; gap: 10px; }
.dt-tf-buttons .btn { flex: 1; min-height: 48px; }
.dt-tf-buttons .btn.is-right { background: #e3f4ea; border-color: #1b7a4a; color: #0f4a2c; }
.dt-tf-buttons .btn.is-wrong { background: #fde2e0; border-color: #b3261e; color: #7a1c14; }
.dt-clues { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.dt-clue-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dt-ankh { font-weight: 800; color: var(--gold-deep); }
.dt-nudge { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px dashed var(--gold); }
.dt-wallet .eyebrow { margin: 0 0 2px; }
.dt-wallet h2 { margin: 0 0 6px; }
.dt-wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dt-balance { margin: 0; font: 600 1.75rem/1.1 var(--font-display); color: var(--forest); }
.dt-more .btn { justify-self: start; }
.dt-renew { margin: 18px 0 0; text-align: center; }
.dt-choices { margin: 0; }
/* Espace détente : onglets collés en haut (les jeux sont à un geste de l'arrivée), jeux et rubriques en grandes tuiles. */
.dt-tabbar { position: sticky; top: 0; z-index: 14; margin: 0 -2px; padding: 10px 2px 8px; background: linear-gradient(var(--paper) 84%, rgba(245, 248, 243, 0)); }
.dt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 999px; background: #e7eee8; box-shadow: inset 0 0 0 1px var(--line); }
.dt-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .96875rem/1 var(--font-body); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.dt-tab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt-tab:hover { color: var(--forest); }
.dt-tab[aria-selected="true"] { background: var(--forest); color: #fff; }
.dt-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 400px) { .dt-tab { flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 4px; font-size: .8125rem; } }
.dt-sec-first { margin-top: 12px; }
.dt-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dt-grid { grid-template-columns: repeat(2, 1fr); } }
.dt-game { grid-template-columns: 56px 1fr; align-items: start; column-gap: 14px; row-gap: 0; }
.dt-game-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--forest); box-shadow: inset 0 0 0 2px var(--tone-bar, var(--line)); }
.dt-game-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dt-game-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dt-game-body .btn { justify-self: start; min-height: 46px; }
#dtPanelToday:focus-visible, #dtPanelGames:focus-visible, #dtPanelDiscover:focus-visible { outline: none; }
/* Une teinte pâle par carte : on distingue d'un coup d'œil le défi, les anecdotes, les vrai ou faux, les énigmes et chaque rubrique. */
.dt-card { background: var(--tone, #fff); border-color: var(--tone-edge, var(--line)); box-shadow: inset 0 4px 0 var(--tone-bar, transparent), 0 6px 18px rgba(20, 56, 45, .06); }
.dt-tone-challenge { --tone: #e7f5ec; --tone-edge: #bddfca; --tone-bar: #4fa874; }
.dt-tone-fact { --tone: #fdf5dc; --tone-edge: #ecd9a0; --tone-bar: #d9a92f; }
.dt-tone-tf { --tone: #e8f1fb; --tone-edge: #bcd5ee; --tone-bar: #5b94cf; }
.dt-tone-riddle { --tone: #f1ebfa; --tone-edge: #d3c5ec; --tone-bar: #9272d0; }
.dt-tone-mystery { --tone: #fbebee; --tone-edge: #efc3cb; --tone-bar: #d56f84; }
.dt-tone-quiz { --tone: #fdeed6; --tone-edge: #f0cf96; --tone-bar: #e0953a; }
.dt-tone-legion { --tone: #edeafc; --tone-edge: #cdc6ee; --tone-bar: #7466c7; }
.dt-tone-erreurs { --tone: #fdece4; --tone-edge: #f1c8b6; --tone-bar: #e0825a; }
.dt-tone-mots { --tone: #e3f4f4; --tone-edge: #b5dcdc; --tone-bar: #3fa3a3; }
.dt-tone-radio { --tone: #fbe9e6; --tone-edge: #f0c4bd; --tone-bar: #d9695a; }
.dt-tone-chat { --tone: #e6f5e8; --tone-edge: #bfe0c4; --tone-bar: #62b06e; }
.dt-tone-ankhtime { --tone: #e5eefb; --tone-edge: #b9cdee; --tone-bar: #4f7fcf; }
.dt-tone-chant { --tone: #f6e8f5; --tone-edge: #e1c3de; --tone-bar: #b46aae; }
.dt-card .quiz-choice { background: rgba(255, 255, 255, .86); }

/* Écouter et partager : deux boutons ronds en bas de chaque carte. */
.dt-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.dt-tool { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid rgba(20, 56, 45, .22); border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--forest); cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.dt-tool:hover { background: #fff; }
.dt-tool:active { transform: scale(.94); }
.dt-tool[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.dt-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt-tool svg .fill { fill: currentColor; }
.dt-share-menu { position: fixed; z-index: 90; min-width: 200px; display: grid; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(11, 31, 24, .22); }
.dt-share-menu[hidden] { display: none; }
.dt-share-item { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 1rem/1.2 var(--font-body); text-align: start; text-decoration: none; cursor: pointer; }
.dt-share-item:hover, .dt-share-item:focus-visible { background: rgba(20, 56, 45, .08); outline: none; }
.dt-toast { position: fixed; z-index: 95; inset-inline: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: fit-content; max-width: min(420px, calc(100vw - 32px)); margin: 0 auto; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 600; text-align: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.dt-toast.is-on { opacity: 1; transform: none; }


/* ---------- Quiz : invitation à créer un compte, Ankh gagnés ---------- */
.quiz-cta, .quiz-ankh { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fffaf0; border: 1px solid var(--gold); }
.quiz-ankh-title, .quiz-cta-title { margin: 0; font-weight: 800; color: var(--forest); }
.quiz-ankh-title { font: 600 1.5rem/1.1 var(--font-display); color: var(--gold-deep); }
.quiz-cta-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 3px; font-size: .9375rem; }

/* ---------- Chat : quota atteint ---------- */
.msg-quota .bubble { background: #fffaf0; border: 1px solid var(--gold); color: var(--ink); }
.quota-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Mon tableau de bord ---------- */
.tb-wrap { max-width: 760px; }
.tb-wrap .card { margin-top: 14px; padding: clamp(14px, 4vw, 24px); }
.tb-wrap h2 { margin: 0 0 8px; }
.tb-wrap h3 { margin: 16px 0 6px; font: 600 1.25rem/1.2 var(--font-display); color: var(--forest); }
.tb-balance { text-align: center; background: linear-gradient(160deg, #fffaf0, #fff); border-color: var(--gold) !important; }
.tb-balance .eyebrow { margin: 0; }
.tb-big { margin: 4px 0 6px; font: 600 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--font-display); color: var(--forest); }
.tb-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.tb-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tb-item:last-child { border-bottom: 0; }
.tb-item-text { display: grid; gap: 2px; min-width: 0; }
.tb-item-action { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 55%; text-align: end; }
.tb-plus { color: var(--ok); }
.tb-minus { color: var(--err); }
.tb-copy { display: flex; gap: 8px; margin: 10px 0; }
.tb-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; background: #fff; direction: ltr; }
.tb-rank { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.tb-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; }
.tb-rank li.is-you { background: #fbf1d4; }
.tb-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; direction: ltr; }
.tb-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .3s; }
#tbChatText { margin: 8px 0 0; }

/* Combat spirituel : tout ce qui concerne la page (salle de préparation, partie, bilan, progression) est dans combat.css. */
