/* ISR Loch Ness (Pierre du jour, créations, pierres) — feuille de style commune.
   Couleurs : variables réglées dans l'admin (/pwa/assets/colors.php ou dans la page). */
:root {
  --accent: #165a0b; --accent-rgb: 22, 90, 11; --accent-light: #c4f7bb; --accent-light-rgb: 196, 247, 187;
  --btn-color: #165a0b; --btn-text: #ffffff; --primary: #000; --text-main: #000; --text-muted: #000;
  --bg-color: #fff; --card-bg: #fcfffb;
  --muted: color-mix(in srgb, var(--text-muted) 62%, var(--bg-color));
  --line: rgba(var(--accent-rgb), .13);
  --tint: rgba(var(--accent-light-rgb), .38);
  --tint-2: rgba(var(--accent-rgb), .07);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(var(--accent-rgb), .08);
  --shadow-lg: 0 24px 60px rgba(var(--accent-rgb), .18);
  --r: 20px; --r-s: 12px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --side: 248px; --bnav: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-color); color: var(--text-main); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--primary); font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); }
h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--btn-color); color: var(--btn-text); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- structure ---------- */
.shell { min-height: 100vh; }
.side { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: color-mix(in srgb, var(--bg-color) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); min-width: 0; }
.logo img { height: 30px; width: auto; display: block; }
.logo-txt { font: 700 1.2rem var(--serif); white-space: nowrap; }
.logo-app { font: 800 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 6px 9px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.side .snav, .side .side-cta { display: none; }
.langs { margin-left: 0; display: flex; gap: 2px; font: 700 .78rem var(--sans); }
.langs a, .langs strong { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs strong { color: var(--accent); background: var(--tint); }
.langs a:hover { color: var(--accent); }
.install { display: none; }
.side-legal { display: none; }
.main { padding: 18px 16px calc(var(--bnav) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }

.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bnav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg-color) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font: 700 .66rem var(--sans); position: relative; min-width: 0; }
.bnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bnav i { font-size: 1.15rem; }
.bnav a[aria-current] { color: var(--accent); }
.bnav a[aria-current]::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--btn-color); color: var(--btn-text); font: 800 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .22); transition: transform .18s, box-shadow .18s, filter .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(var(--accent-rgb), .3); filter: brightness(1.05); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn, .fav { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-bg); color: var(--accent); cursor: pointer; font-size: 1.1rem; transition: transform .15s, background .15s; }
.icon-btn:hover, .fav:hover { background: var(--tint); }
.fav[aria-pressed="true"] { color: #d6336c; border-color: rgba(214, 51, 108, .3); background: rgba(214, 51, 108, .07); }
.fav[aria-pressed="true"] i { font-weight: 900; animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.back { display: inline-flex; align-items: center; gap: 7px; font: 700 .85rem var(--sans); color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.back:hover { color: var(--accent); }

/* ---------- pastilles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); font: 700 .78rem/1.3 var(--sans); }
.chip::first-letter { text-transform: uppercase; }

/* ---------- héros (pierre du jour, fiche) ---------- */
.hero { position: relative; display: grid; gap: 8px; padding: 26px 20px 24px; border-radius: 28px; overflow: hidden; background:
  radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-light-rgb), .75), transparent 62%),
  linear-gradient(180deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-media { position: relative; display: grid; place-items: center; height: 230px; }
.halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-light-rgb), .9), rgba(var(--accent-light-rgb), 0) 68%); filter: blur(4px); animation: breathe 6s ease-in-out infinite; }
.halo::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), .22); animation: spin 60s linear infinite; }
.bead { display: block; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
.bead-xl { position: relative; width: 190px; height: 190px; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes breathe { 50% { transform: scale(1.07); opacity: .85; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-body { text-align: center; }
.hero-body .chips { justify-content: center; }
.eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; font: 800 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.eyebrow span { color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 700; }
.intention { font: italic 500 1.08rem/1.5 var(--serif); color: var(--text-main); max-width: 34em; margin: 0 auto 14px; }
.assoc { font: 800 .72rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.lead { font-size: 1.04rem; color: var(--text-main); max-width: 40em; margin: 14px auto; }
.actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.link-compose { display: inline-flex; gap: 8px; align-items: center; font: 800 .88rem var(--sans); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid rgba(var(--accent-rgb), .25); }
.link-compose:hover { border-color: var(--accent); }

/* ---------- blocs ---------- */
.block { margin: 34px 0; }
.block-h { margin-bottom: 14px; }
.block-h.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font: 800 .86rem var(--sans); text-decoration: none; white-space: nowrap; }

/* humeurs */
.moods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mood { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-s); background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; color: var(--text-main); transition: transform .16s, box-shadow .16s, border-color .16s; min-width: 0; }
.mood:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(var(--accent-rgb), .35); }
.mood-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--accent); font-size: 1.05rem; }
.mood-ic.big { width: 64px; height: 64px; border-radius: 20px; font-size: 1.6rem; margin: 0 auto 12px; }
.mood-t { min-width: 0; display: flex; flex-direction: column; }
.mood-t strong { font: 800 .9rem/1.25 var(--sans); }
.mood-t small { color: var(--muted); font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* cartes pierres */
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px 14px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scard-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scard .bead { width: 84px; height: 84px; transition: transform .4s; }
.scard:hover .bead { transform: rotate(12deg) scale(1.06); }
.scard h3 { margin: 0; }
.scard .chips { justify-content: center; }
.scard .chip { font-size: .7rem; padding: 3px 8px; }
.scard .fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; font-size: .95rem; }
.scard[hidden] { display: none; }
.own { margin-top: 2px; border: 0; background: transparent; color: var(--muted); font: 700 .78rem var(--sans); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.own[aria-pressed="true"] { color: var(--accent); background: var(--tint); }

/* promo (configurateur / créations) */
.duo { display: grid; gap: 14px; margin: 34px 0; }
.promo { display: grid; gap: 14px; align-items: center; padding: 24px; border-radius: var(--r); color: var(--btn-text); background:
  radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.16), transparent 60%), var(--btn-color); box-shadow: var(--shadow-lg); }
.promo h2 { color: inherit; }
.promo p { margin: 0; opacity: .88; }
.promo .btn { background: var(--btn-text); color: var(--btn-color); box-shadow: none; justify-self: start; }
.promo-alt { color: var(--text-main); background: radial-gradient(90% 120% at 100% 0%, rgba(var(--accent-light-rgb), .7), transparent 60%), var(--card-bg); border: 1px solid var(--line); box-shadow: none; }
.promo-alt h2 { color: var(--primary); }
.promo-alt .btn { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .35); }

/* page humeur */
.mood-head { text-align: center; padding: 10px 0 6px; }
.mood-head .back { display: flex; justify-content: center; }
.trio { margin: 22px 0; padding: 22px 16px; border-radius: 26px; background: radial-gradient(100% 70% at 50% 0%, rgba(var(--accent-light-rgb), .6), transparent 70%), var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; position: relative; }
.trio-h h2 { margin-bottom: 2px; }
.trio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.tcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--bg-color); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.tcard .bead { width: 76px; height: 76px; }
.tcard strong { font: 800 .86rem/1.25 var(--sans); }
.tcard .chips { justify-content: center; }
.tcard .chip { font-size: .66rem; padding: 2px 7px; }
.tcard.reveal { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.tcard.reveal:nth-child(2) { animation-delay: .12s; } .tcard.reveal:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.ghost { filter: blur(1.5px); }
.ghost-bead { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(var(--accent-light-rgb), .9) 40%, rgba(var(--accent-rgb), .45)); animation: breathe 3s ease-in-out infinite; }
.ghost-line { width: 70%; height: 10px; border-radius: 6px; background: var(--tint); }
.ghost-line.short { width: 45%; }
.trio-lock p { max-width: 30em; margin: 0 auto 12px; font-weight: 700; }
.trio-after { display: grid; justify-items: center; gap: 8px; }
.trio-after[hidden], .trio-lock[hidden] { display: none; }

/* fiche */
.cols { display: grid; gap: 14px; margin: 18px 0; }
.panel { padding: 20px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); margin-bottom: 14px; }
.panel h2 { font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.panel h2 i { color: var(--accent); font-size: .95rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 12px 40px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-color); color: var(--btn-text); font: 800 .8rem var(--sans); }
.care { margin: 0; padding-left: 18px; }
.care li { margin-bottom: 6px; }

/* toutes les pierres */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px 8px; padding-left: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: var(--card-bg); color: var(--text-main); padding: 8px 14px; border-radius: 999px; font: 700 .82rem var(--sans); cursor: pointer; }
.fchip.on { background: var(--btn-color); border-color: var(--btn-color); color: var(--btn-text); }
.collection { padding: 14px 16px; border-radius: var(--r-s); background: var(--tint-2); margin-bottom: 16px; }
.collection p { margin: 0 0 4px; }
.ccount { font-weight: 800; color: var(--accent); }
.ccount:empty { display: none; }
.suggest a { font-weight: 800; }
.empty { text-align: center; padding: 30px 10px; }

/* pied de page */
.foot { margin-top: 40px; padding: 22px 0 6px; border-top: 1px solid var(--line); text-align: center; }
.disclaimer { font-size: .8rem; color: var(--muted); max-width: 46em; margin: 0 auto 10px; }
.foot-links { font-size: .82rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* fenêtre d'inscription */
.modal { width: min(440px, calc(100vw - 28px)); border: 0; border-radius: 26px; padding: 28px 24px 24px; background: var(--bg-color); color: var(--text-main); box-shadow: 0 30px 80px rgba(0,0,0,.3); text-align: center; }
.modal::backdrop { background: rgba(15, 25, 15, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.modal-x { position: absolute; top: 10px; right: 10px; margin: 0; }
.modal-x button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--tint-2); color: var(--text-main); font: 400 24px/38px Arial, sans-serif; cursor: pointer; }
.modal-ic { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-size: 1.5rem; }
.modal h2 { font-size: 1.5rem; }
.modal form#gateForm { display: grid; gap: 12px; text-align: left; margin-top: 8px; }
.modal label { display: grid; gap: 5px; font: 700 .85rem var(--sans); }
.modal input:not([type=checkbox]) { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card-bg); font: 600 1rem var(--sans); color: var(--text-main); }
.modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.modal .check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-weight: 600; font-size: .8rem; color: var(--muted); }
.modal .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-err { margin: 0; color: #b42318; font-weight: 700; font-size: .86rem; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bnav) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--primary); color: var(--bg-color); padding: 10px 18px; border-radius: 999px; font: 700 .88rem var(--sans); box-shadow: var(--shadow-lg); }

/* ---------- tablette ---------- */
@media (min-width: 640px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .moods { grid-template-columns: repeat(3, 1fr); }
  .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr 1fr; }
  .promo { align-content: space-between; }
  .filters { margin: 0 0 8px; padding-left: 2px; flex-wrap: wrap; overflow: visible; }
  .trio { padding: 28px; }
  .tcard .bead { width: 96px; height: 96px; }
}

/* ---------- ordinateur : menu à gauche, contenu en 2 colonnes ---------- */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--side) 1fr; }
  .side { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: stretch; gap: 18px; padding: 26px 18px; border-bottom: 0; border-right: 1px solid var(--line); background: var(--card-bg); }
  .logo { flex-direction: column; align-items: flex-start; gap: 10px; }
  .logo img { height: 38px; }
  .side .snav { display: grid; gap: 4px; margin-top: 8px; }
  .snav a { position: relative; display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--text-main); font: 700 .95rem var(--sans); }
  .snav a i { width: 20px; text-align: center; color: var(--muted); }
  .snav a:hover { background: var(--tint-2); }
  .snav a[aria-current] { background: var(--tint); color: var(--accent); }
  .snav a[aria-current] i { color: var(--accent); }
  .fav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--btn-color); color: var(--btn-text); font-size: .72rem; text-align: center; }
  .side .side-cta { display: inline-flex; margin-top: 6px; }
  .langs { margin: auto 0 0; justify-content: flex-start; }
  .install:not([hidden]) { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px dashed var(--line); background: transparent; color: var(--accent); padding: 10px; border-radius: 12px; font: 700 .85rem var(--sans); cursor: pointer; }
  .side-legal { display: block; margin: 0; font-size: .74rem; line-height: 1.6; color: var(--muted); }
  .side-legal a { color: var(--muted); text-decoration: none; }
  .side-legal a:hover { color: var(--accent); }
  .bnav { display: none; }
  .main { padding: 34px 40px 30px; width: 100%; }
  .toast { bottom: 28px; }
  .hero { grid-template-columns: minmax(300px, 42%) 1fr; align-items: center; gap: 30px; padding: 40px 44px; }
  .hero-media { height: 340px; }
  .halo { width: 340px; height: 340px; }
  .bead-xl { width: 270px; height: 270px; }
  .hero-body { text-align: left; }
  .hero-body .chips, .actions, .eyebrow { justify-content: flex-start; }
  .intention, .lead { margin-left: 0; }
  .moods { grid-template-columns: repeat(4, 1fr); }
  .moods-s { grid-template-columns: repeat(4, 1fr); }
  .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sgrid-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .mood-head { text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
  .mood-head .back { grid-column: 1 / -1; justify-content: flex-start; }
  .mood-head .mood-ic.big { grid-row: span 2; margin: 0; width: 84px; height: 84px; font-size: 2rem; }
  .mood-head .lead { margin: 4px 0 0; }
  .trio-cards { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) and (max-width: 1240px) { .sgrid-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =====================================================================
   Pages de l'ISR : créations, pierres, bracelets, listes (contenu dans .isr)
   ===================================================================== */
.isr { --gold: var(--accent); --ink: var(--text-main); }
.isr > header { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.isr > header .brand { display: none; }
.isr > header .sub { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; color: transparent; }
.isr > header .sub a { font: 700 .82rem var(--sans); color: var(--muted); text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-bg); }
.isr > header .sub a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); }
.crumb { font: 600 .82rem var(--sans); color: var(--muted); margin: 0 0 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.isr .hero { display: block; text-align: center; }
.isr .hero .bead { width: 150px; height: 150px; margin: 0 auto 6px; object-fit: contain; animation: float 7s ease-in-out infinite; }
.isr .hero .ring { width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; display: block; box-shadow: var(--shadow-lg); }
.isr .hero h1 { margin-top: 6px; }
.isr .intro { font-size: 1.04rem; max-width: 40em; margin: 0 auto 10px; }
.isr .price { font-size: 1.05rem; margin: 8px 0 0; }
.isr .price b { color: var(--accent); font-size: 1.35rem; }
.isr .retired { display: inline-block; margin: 6px 0 10px; padding: 7px 14px; border-radius: 999px; background: var(--tint-2); color: var(--muted); font-weight: 700; font-size: .88rem; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.facts > div { background: var(--bg-color); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; text-align: center; min-width: 96px; }
.facts span { display: block; color: var(--muted); font: 800 .66rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.facts b { font-weight: 800; font-size: .9rem; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 6px; }
.buy a, .buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font: 800 .95rem/1.2 var(--sans); transition: transform .18s, box-shadow .18s; }
.buy .b1 { background: var(--btn-color); color: var(--btn-text); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .22); }
.buy .b1:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(var(--accent-rgb), .3); }
.buy .b2 { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .35); }
.buy .b2:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.buy-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.isr-actions { display: flex; justify-content: center; gap: 10px; margin: 8px 0 0; }
.isr section { padding: 20px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); margin: 14px 0; }
.isr section > h2 { font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.isr section h3 { font: 800 .98rem/1.35 var(--sans); margin: 16px 0 6px; color: var(--primary); }
.isr section h3:first-child, .isr section h2 + h3 { margin-top: 4px; }
.isr p.muted, .isr .muted { color: var(--muted); font-size: .86rem; }
.isr ul.tags { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.isr ul.tags li { padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); font: 700 .8rem/1.3 var(--sans); }
.isr ul.tags li::first-letter { text-transform: uppercase; }
.isr ul.tags li a { color: inherit; text-decoration: none; }
.isr ul.tags li .qty { opacity: .7; }
.isr .note { border-left: 4px solid var(--accent); }
.isr .note .sig { font-size: .84rem; color: var(--muted); font-style: italic; }
.compat, .care, ul.virtues { list-style: none; padding: 0; margin: 0; }
.compat li, .care li, ul.virtues li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.compat li:last-child, .care li:last-child, ul.virtues li:last-child { border-bottom: 0; }
.compat a { text-decoration: none; }
.tier { display: inline-block; font: 800 .7rem var(--sans); padding: 3px 9px; border-radius: 999px; margin-left: 6px; white-space: nowrap; background: var(--tint); color: var(--accent); }
.tier-b { background: rgba(var(--accent-rgb), .08); }
.tier-c { background: var(--tint-2); color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text-main); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-color); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; display: block; background: var(--tint-2); }
.card span { display: block; font: 800 .86rem/1.35 var(--sans); padding: 9px 11px 0; }
.card small { display: block; color: var(--accent); font-weight: 800; padding: 2px 11px 11px; }
table.mineral, .mineral table, table.sizes, .ptable { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.mineral th, .mineral th, table.sizes th, .ptable th { text-align: left; color: var(--muted); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
table.mineral th, .mineral th { width: 42%; }
table.mineral td, .mineral td, table.sizes td, .ptable td { padding: 8px 10px 8px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
table.mineral tr:last-child th, table.mineral tr:last-child td, .mineral tr:last-child th, .mineral tr:last-child td { border-bottom: 0; }
.mineral { margin: 0 0 16px; } .mineral:last-child { margin: 0; }
.mineral h3 { margin-top: 0; }
.tw, .ptable-wrap { overflow-x: auto; }
.ptable th:last-child, .ptable td:last-child { text-align: right; padding-right: 0; }
.ptable tfoot td { font-weight: 800; border-bottom: 0; }
.dims { margin: 0; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hub a { position: relative; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text-main); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg-color); transition: transform .16s, box-shadow .16s; }
.hub a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hub img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.hub b { display: block; font-weight: 800; }
.hub small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.hub .own-dot { position: absolute; top: 6px; right: 8px; color: var(--accent); font-size: .8rem; }
.disclaimer { font-size: .8rem; color: var(--muted); text-align: center; margin: 18px auto 0; max-width: 46em; }
form.order, .devis form { display: grid; gap: 12px; }
form.order label, .devis label { display: grid; gap: 5px; font: 700 .85rem var(--sans); }
form.order input, form.order select, form.order textarea, .devis input:not([type=checkbox]), .devis textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-color); font: 600 .95rem var(--sans); color: var(--text-main); }
form.order input:focus, form.order select:focus, form.order textarea:focus, .devis input:focus, .devis textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
form.order textarea, .devis textarea { min-height: 96px; resize: vertical; }
form.order button, .devis button { justify-self: start; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--btn-color); color: var(--btn-text); font: 800 .95rem var(--sans); cursor: pointer; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .22); }
.devis .row { display: grid; gap: 12px; }
.devis .hp, form.order .hp { display: none !important; }
.devis .price-line { font-size: 1rem; }
.devis .price-line b { color: var(--accent); font-size: 1.2rem; }
.form-legal { font-size: .76rem; color: var(--muted); margin: 0; }
/* blocs « Créez votre bracelet » / « Pierre du jour » dans les pages de l'ISR (priorité sur .isr section) */
.isr .promo { display: grid; gap: 14px; align-content: space-between; padding: 24px; border: 0; color: var(--btn-text); background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.16), transparent 60%), var(--btn-color); box-shadow: var(--shadow-lg); }
.isr .promo h2 { color: var(--btn-text); }
.isr .promo p { color: var(--btn-text); opacity: .9; }
.isr .promo > .btn, .isr .promo .btn-light { background: var(--btn-text); color: var(--btn-color); box-shadow: none; justify-self: start; }
.isr .promo .btn-line { background: transparent; color: var(--btn-text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.isr .promo .promo-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.isr .promo-alt { color: var(--text-main); background: radial-gradient(90% 120% at 100% 0%, rgba(var(--accent-light-rgb), .8), transparent 65%), var(--card-bg); border: 1px solid var(--line); box-shadow: none; }
.isr .promo-alt h2 { color: var(--primary); }
.isr .promo-alt p { color: var(--text-main); }
.isr .promo-alt > .btn, .isr .promo-alt .promo-btns .btn { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), .35); }
.isr .duo .promo { margin: 0; }
/* page création */
.cre-hero { display: grid; gap: 18px; padding: 22px 18px; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-light-rgb), .7), transparent 62%), linear-gradient(180deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.cre-photo { margin: 0; }
.cre-photo img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-lg); background: var(--bg-color); }
.cre-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.score { font: 700 4.2rem/1 var(--serif); color: var(--accent); margin: 6px 0 4px; }
.score small { font: 800 1.3rem var(--sans); color: var(--muted); }
.archetype-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--accent); font: 800 .78rem var(--sans); letter-spacing: .04em; }
.mode-toggle { display: inline-flex; gap: 4px; margin: 10px auto 2px; background: var(--tint-2); border-radius: 999px; padding: 4px; }
.mode-toggle button { border: 0; cursor: pointer; font: 800 .82rem var(--sans); padding: 8px 16px; border-radius: 999px; color: var(--muted); background: transparent; }
.mode-toggle button.active { background: var(--bg-color); color: var(--accent); box-shadow: 0 2px 8px rgba(var(--accent-rgb), .15); }
.cre-hero .intro { margin: 12px auto 0; }
ul.alerts { list-style: none; padding: 0; margin: 12px auto 0; max-width: 40em; display: grid; gap: 8px; text-align: left; }
ul.alerts li { font-size: .86rem; padding: 9px 13px; border-radius: 12px; border-left: 3px solid var(--muted); background: var(--tint-2); }
ul.alerts li.al-danger { border-color: #c0392b; background: #fdecec; color: #8e1f15; }
ul.alerts li.al-warn { border-color: #d35400; background: #fff4e5; color: #8a4a0f; }
ul.alerts li.al-caution { border-color: #c9a227; background: #fef9e3; color: #6f5a12; }
ul.alerts li.al-info { border-color: #2e86c1; background: #eaf3fb; color: #1f5f8b; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 34px; align-items: center; gap: 12px; margin: 9px 0; font-size: .88rem; }
.score-row .bar { height: 9px; background: var(--tint-2); border-radius: 6px; overflow: hidden; }
.score-row .bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.score-row b { color: var(--accent); text-align: right; }
.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 6px; }
.share a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: var(--text-main); background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; font: 800 .85rem var(--sans); }
.share a:hover { border-color: rgba(var(--accent-rgb), .4); color: var(--accent); }
.share a i { font-size: 1.05rem; }
.similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq h3 { margin-top: 14px; }
.faq p { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
/* listes de créations */
.list-head { text-align: center; padding: 6px 0 4px; }
.list-head .eyebrow { display: flex; justify-content: center; }
.list-head p { color: var(--muted); }
.author { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); margin: 18px 0; }
.author img { border-radius: 50%; flex: none; }
.author .who { font: 700 1.1rem var(--serif); margin: 2px 0 6px; }
.author p { font-size: .9rem; margin: 0 0 10px; }
.author .links { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 800 .8rem var(--sans); }
.author .eyebrow { display: block; margin: 0; }
.author .links a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.list-intro { text-align: center; max-width: 44em; margin: 0 auto 18px; }
.cgrid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
.ccard { display: flex; flex-direction: column; text-decoration: none; color: var(--text-main); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card-bg); transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ccard .ci { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint-2); }
.ccard .ci img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.ccard:hover .ci img { transform: scale(1.05); }
.ccard .cb { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard h2 { font-size: 1.2rem; margin: 0; }
.ccard p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.ccard .go { display: flex; justify-content: space-between; align-items: center; font: 800 .8rem var(--sans); color: var(--accent); }
.ccard .sc { padding: 4px 10px; border-radius: 999px; background: var(--tint); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 0; }
.pager a, .pager span { min-width: 42px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); text-align: center; font: 800 .86rem var(--sans); text-decoration: none; color: var(--text-main); background: var(--card-bg); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .current { background: var(--btn-color); border-color: var(--btn-color); color: var(--btn-text); }
.pager .gap { border: 0; background: none; min-width: 0; }
@media (min-width: 640px) {
  .cards, .similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devis .row { grid-template-columns: 1fr 1fr; }
  .isr section { padding: 24px 26px; }
}
@media (min-width: 1024px) {
  .isr .hero { display: grid; grid-template-columns: 300px 1fr; column-gap: 40px; align-items: center; text-align: left; padding: 40px 44px; }
  .isr .hero { row-gap: 2px; }
  .isr .hero > img { grid-row: 1 / span 6; justify-self: center; }
  .isr .hero .bead { width: 240px; height: 240px; }
  .isr .hero .ring { width: 300px; height: 300px; }
  .isr .hero .intro { margin-left: 0; }
  .isr .hero .facts, .isr .hero .buy, .isr-actions { justify-content: flex-start; }
  .isr .hero > :not(img) { grid-column: 2; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cre-hero { grid-template-columns: minmax(0, 44%) 1fr; align-items: center; text-align: left; padding: 34px 40px; gap: 34px; }
  .cre-hero .buy, .cre-hero .isr-actions { justify-content: flex-start; }
  .cre-hero .buy-note { text-align: left; }
  .cre-hero .intro { margin-left: 0; }
  .isr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .isr-cols > section { margin: 0 0 14px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Bracelet d'intention et chemin de vie
   ===================================================================== */
.top-fav { margin-left: auto; position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--accent); background: var(--tint); text-decoration: none; }
.top-fav .fav-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--btn-color); color: var(--btn-text); font: 800 .62rem/18px var(--sans); text-align: center; }
@media (max-width: 430px) { .logo-app { display: none; } }
.pillar-head { text-align: center; padding: 10px 0 4px; }
.pillar-head .eyebrow { display: flex; justify-content: center; }
.pillar-head .lead { margin: 10px auto 0; }
.how { list-style: none; counter-reset: h; padding: 0; margin: 0; display: grid; gap: 12px; }
.how li { counter-increment: h; position: relative; padding: 18px 18px 18px 64px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.how li::before { content: counter(h); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-color); color: var(--btn-text); font: 800 .95rem var(--sans); }
.how li span { color: var(--muted); font-size: .92rem; }
.faq-list { display: grid; gap: 8px; }
details.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); padding: 0 16px; }
details.qa summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; line-height: 1; }
details.qa[open] summary::after { content: '–'; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.affirm { margin: 18px 0; padding: 22px 20px; border-radius: 22px; text-align: center; background: radial-gradient(100% 90% at 50% 0%, rgba(var(--accent-light-rgb), .7), transparent 70%), var(--card-bg); border: 1px dashed rgba(var(--accent-rgb), .35); }
.affirm .eyebrow { display: flex; justify-content: center; }
.affirm-text { font: italic 600 clamp(1.2rem, 4vw, 1.6rem)/1.4 var(--serif); color: var(--primary); margin: 6px auto 8px; max-width: 30em; }
ul.why { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
ul.why li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--line); }
ul.why .bead { width: 52px; height: 52px; flex: none; }
ul.why a { text-decoration: none; }
.ntiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ntile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; color: var(--text-main); text-align: center; transition: transform .16s, box-shadow .16s; }
.ntile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ntile b { font: 700 1.9rem/1 var(--serif); color: var(--accent); }
.ntile span { font: 700 .76rem/1.25 var(--sans); color: var(--muted); }
.ntile.master { background: radial-gradient(100% 100% at 50% 0%, rgba(var(--accent-light-rgb), .7), transparent 70%), var(--card-bg); border-color: rgba(var(--accent-rgb), .35); }
.ntile.debt b { color: var(--primary); }
.num-hero { position: relative; text-align: center; padding: 22px 18px 24px; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-light-rgb), .75), transparent 62%), linear-gradient(180deg, var(--card-bg), var(--bg-color)); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
.num-hero .back { display: flex; justify-content: center; }
.num-hero .chips { justify-content: center; margin-bottom: 8px; }
.num-hero .lead { margin: 12px auto; }
.num-hero .actions { justify-content: center; }
.num-big { display: grid; place-items: center; width: 132px; height: 132px; margin: 8px auto 6px; border-radius: 50%; font: 700 4.4rem/1 var(--serif); color: var(--btn-text); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), var(--btn-color); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .3); animation: breathe 6s ease-in-out infinite; }
.num-big.master { box-shadow: 0 0 0 6px rgba(var(--accent-light-rgb), .9), 0 16px 40px rgba(var(--accent-rgb), .35); }
.num-big.debt { background: var(--primary); }
.num-name { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 8px 0 6px; }
.cols2 { display: grid; gap: 12px; margin: 14px 0; text-align: left; }
.cols2 .panel { margin: 0; }
.cols2 .panel h2, .cols2 .panel h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; margin-top: 0; }
.cols2 .panel h2 i { color: var(--accent); font-size: .9rem; }
.calc { padding: 22px 18px; border-radius: 24px; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 18px 0; }
.calc form { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.calc label { display: grid; gap: 6px; font: 700 .86rem var(--sans); }
.calc input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-color); font: 600 1rem var(--sans); color: var(--text-main); }
.calc input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.calc .calc-row { display: grid; gap: 12px; }
.calc .muted { margin: -4px 0 0; }
.calc .btn { justify-self: start; }
.calc-privacy { font-size: .8rem; color: var(--muted); margin: 0; }
.life-result { margin-top: 10px; }
.life-result h3 { margin: 18px 0 10px; }
.life-result .affirm { margin: 14px 0; }
.sgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgrid-3 .scard { padding: 14px 8px 12px; }
.sgrid-3 .scard .bead { width: 64px; height: 64px; }
.life-full { text-align: left; }
.life-full > h2 { text-align: center; }
.life-full-body.reveal { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.nrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.nrow p { margin: 2px 0 6px; }
.nbadge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--btn-color); color: var(--btn-text); font: 700 1.3rem var(--serif); }
.nbadge.master { box-shadow: 0 0 0 4px rgba(var(--accent-light-rgb), .9); }
.nbadge.lesson, .nbadge.debt { background: var(--tint); color: var(--accent); font-size: 1rem; }
.note-name { padding: 12px 14px; border-radius: 12px; background: var(--tint-2); font-size: .9rem; }
.bracelet3 { margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--bg-color); border: 1px solid var(--line); }
.bracelet3 h3 { margin-top: 0; text-align: center; font: 700 1.3rem var(--serif); }
.zone { margin: 12px 0; }
.zone .eyebrow { margin: 0; }
.zone .muted { margin: 0 0 8px; }
@media (min-width: 640px) {
  .ntiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols2 { grid-template-columns: 1fr 1fr; }
  .calc .calc-row { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .calc { padding: 28px; }
}
@media (min-width: 1024px) {
  .top-fav { display: none; }
  .side .langs { margin-top: auto; }
  .ntiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pillar-head { text-align: left; }
  .pillar-head .eyebrow { justify-content: flex-start; }
  .pillar-head .lead { margin-left: 0; }
  .num-hero { padding: 34px 40px; }
}

/* bloc héros sans photo (répertoire, pierres retirées) : centré */
@media (min-width: 1024px) {
  .isr .hero:not(:has(> img)) { display: block; text-align: center; }
  .isr .hero:not(:has(> img)) .intro { margin: 0 auto 10px; }
  .isr .hero:not(:has(> img)) .buy { justify-content: center; }
  .isr .hero:not(:has(> img)) .buy-note { text-align: center; }
}
.life-full .trio-lock { text-align: center; }
.life-full .trio-lock .btn { margin: 0 auto; }
/* boutons des calculs (chemin de vie) */
.modes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 6px -16px 4px; padding-left: 16px; }
.modes::-webkit-scrollbar { display: none; }
.mode { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-bg); color: var(--text-main); text-decoration: none; font: 800 .84rem var(--sans); transition: transform .15s, box-shadow .15s, border-color .15s; }
.mode i { color: var(--accent); }
.mode:hover { transform: translateY(-1px); border-color: rgba(var(--accent-rgb), .45); box-shadow: var(--shadow); }
.mode.on { background: var(--btn-color); border-color: var(--btn-color); color: var(--btn-text); box-shadow: 0 8px 20px rgba(var(--accent-rgb), .25); }
.mode.on i { color: var(--btn-text); }
.mode-full:not(.on) { background: radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-light-rgb), .8), transparent 70%), var(--card-bg); border-color: rgba(var(--accent-rgb), .35); }
.calc label[hidden] { display: none; }
.calc .calc-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.calc-role { text-align: center; margin: 0 auto 14px; max-width: 40em; color: var(--muted); }
.calc-role b { color: var(--accent); }
.next-calc { margin: 22px 0 6px; text-align: center; }
.next-calc .eyebrow { display: flex; justify-content: center; }
.next-calc .modes { justify-content: flex-start; }
@media (min-width: 640px) { .modes { flex-wrap: wrap; overflow: visible; margin: 6px 0 4px; padding-left: 2px; } .next-calc .modes { justify-content: center; } }
@media (min-width: 1024px) { .pillar-head + .modes { justify-content: flex-start; } }

/* ---------- Parcours : notifications, badges, Mon chemin ---------- */
.nudge { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bnav) + 12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 14px 14px; border-radius: 18px;
  background: var(--bg-color); color: var(--text-main); border: 1px solid rgba(var(--accent-rgb), .22); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.nudge.in { opacity: 1; transform: none; }
.nudge-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--accent); font-size: 1.05rem; }
.nudge-b { min-width: 0; }
.nudge-b p { margin: 0 0 6px; font: 600 .92rem/1.45 var(--sans); }
.nudge-go { display: inline-block; font: 800 .88rem var(--sans); color: var(--accent); text-decoration: none; margin-right: 12px; }
.nudge-off { border: 0; background: none; padding: 0; color: var(--muted); font: 600 .74rem var(--sans); text-decoration: underline; cursor: pointer; }
.nudge-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tint-2); color: var(--text-main); font: 400 20px/30px Arial, sans-serif; cursor: pointer; }
@media (min-width: 640px) { .nudge { left: auto; right: 24px; bottom: 24px; width: 380px; } }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px 14px; border-radius: var(--r-s); border: 1px dashed rgba(var(--accent-rgb), .25); background: var(--card-bg); }
.badge-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tint-2); color: var(--muted); font-size: 1.35rem; margin-bottom: 4px; filter: grayscale(1); }
.badge b { font: 800 .9rem/1.25 var(--sans); }
.badge small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.badge-st { margin-top: 4px; font: 700 .72rem var(--sans); color: var(--muted); }
.badge-bar { width: 80%; height: 6px; border-radius: 999px; background: var(--tint-2); overflow: hidden; margin-top: 6px; }
.badge-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.badge.on { border-style: solid; border-color: rgba(var(--accent-rgb), .35); background: linear-gradient(180deg, var(--tint), var(--card-bg)); }
.badge.on .badge-ic { background: var(--accent); color: var(--btn-text); filter: none; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3); }
.badge.on .badge-st { color: var(--accent); }
.badge-count { font: 800 .9rem var(--sans); color: var(--accent); background: var(--tint); padding: 4px 12px; border-radius: 999px; }
#pathPage label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
#pathPage label.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.remember { margin: 14px 0; }
.remember .btn { white-space: normal; text-align: left; }
.remember-ok { color: var(--accent); font-weight: 700; }
.cycles { margin: 12px 0; text-align: left; }
.icon-btn[hidden], .btn[hidden] { display: none; }

/* ---------- Le ciel : lune et signes ---------- */
.sky { margin: 18px 0 8px; }
.sky-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sky-card, .phase { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--card-bg); border: 1px solid var(--line); text-decoration: none; color: var(--text-main); transition: transform .16s, box-shadow .16s; }
.sky-card:hover, .phase:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sky-card b, .phase b { display: block; font-weight: 800; }
.sky-card small, .phase small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.sky-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #10172a; font-size: 1.6rem; line-height: 1; }
.sky-ic.sym, .zsym { background: var(--tint); color: var(--accent); font-size: 1.4rem; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif; }
.phase-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.moon-big { font-size: 5.2rem; line-height: 1; margin: 6px auto 10px; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #1d2a4a, #0b1020); box-shadow: 0 18px 50px rgba(16, 23, 42, .35); }
.moon-mid { font-size: 2.2rem; display: block; margin-bottom: 4px; }
.moon-next { margin-top: 12px; font-weight: 600; }
.phase-card { display: block; text-decoration: none; color: var(--text-main); transition: transform .16s, box-shadow .16s; }
.phase-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.num-big.sym { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif; }
.zodiac-grid a.on { border-color: rgba(var(--accent-rgb), .45); background: var(--tint); }
.zsym { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.sign-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; text-align: left; }
.sign-facts div { padding: 10px 12px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--line); }
.sign-facts small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sign-facts b { font-weight: 800; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-form label { flex: 1 1 200px; }
@media (min-width: 640px) { .sky-row, .phase-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sign-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Offrir : carte cadeau imprimable ---------- */
.mode-special { border-style: dashed; }
.gift-card { position: relative; margin: 20px 0 12px; padding: 30px 22px 22px; border-radius: var(--r); text-align: center; background: radial-gradient(circle at 50% 0, var(--tint), var(--card-bg) 70%); border: 2px solid rgba(var(--accent-rgb), .25); box-shadow: var(--shadow); }
.gift-card::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(var(--accent-rgb), .3); border-radius: calc(var(--r) - 6px); pointer-events: none; }
.gift-card .chips { justify-content: center; }
.gift-card .affirm-text { margin: 14px 0; }
.gift-stones { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 14px; }
.gift-stones span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; }
.gift-stones img { filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.gift-sig { font: 700 .78rem var(--sans); color: var(--muted); letter-spacing: .04em; margin: 0; }
.gift-actions { justify-content: center; flex-wrap: wrap; }
@media print {
  body.print-gift * { visibility: hidden !important; }
  body.print-gift #giftCard, body.print-gift #giftCard * { visibility: visible !important; }
  body.print-gift #giftCard { position: fixed; left: 0; top: 0; width: 100%; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-gift .bnav, body.print-gift .side, body.print-gift .nudge { display: none !important; }
}

/* ---------- Calendrier de l'Avent ---------- */
.advent-promo { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 12px 16px; border-radius: var(--r-s); text-decoration: none; color: #fff; background: linear-gradient(120deg, #0f3d2a, #165a0b 60%, #8a1c1c); box-shadow: var(--shadow); }
.advent-promo b { display: block; font-weight: 800; } .advent-promo small { display: block; opacity: .85; font-size: .8rem; }
.advent-promo .fa-arrow-right { margin-left: auto; }
.advent-promo .sky-ic { background: rgba(255,255,255,.15); }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.door { position: relative; aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); font: inherit; color: var(--text-main); }
.door-n { font: 700 1.5rem/1 var(--serif, Georgia), serif; }
.door small { font-size: .62rem; color: var(--muted); font-weight: 700; text-align: center; line-height: 1.2; }
.door.locked { background: repeating-linear-gradient(135deg, var(--tint-2) 0 8px, transparent 8px 16px), var(--card-bg); }
.door.open { cursor: pointer; background: linear-gradient(160deg, var(--tint), var(--card-bg)); transition: transform .2s, box-shadow .2s; }
.door.open:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: var(--shadow); }
.door.open .door-n { position: absolute; top: 6px; left: 8px; font-size: .95rem; color: var(--accent); }
.door.open.on { outline: 2px solid var(--accent); }
.door.today { background: linear-gradient(160deg, #165a0b, #0f3d2a); color: #fff; }
.door.today small, .door.today .door-n { color: #fff; }
.door.pulse { animation: doorPulse 1.6s ease-in-out 3; }
@keyframes doorPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18); } }
.door-panel { margin: 10px 0 24px; padding: 20px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.2,.8,.2,1); }
.door-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 12px; }
.door-head h3 { margin: 0 0 6px; }
.door-code { padding: 10px 14px; border-radius: 12px; background: var(--tint); font-weight: 600; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Compatibilité duo ---------- */
.duo-nums { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 8px 0 12px; }
.duo-nums span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.duo-nums small { font: 800 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.duo-nums em { font-style: normal; font-weight: 700; font-size: .85rem; }
.duo-nums .num-big { width: 88px; height: 88px; font-size: 2.6rem; margin: 0; }
.duo-nums > i { color: #c0396b; font-size: 1.6rem; }
.compat-list .nrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.compat-row a.nbadge { text-decoration: none; }
.lv-mirror .nbadge, .lv-harmony .nbadge { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }

/* ---------- Carte du monde des pierres ---------- */
.mapbox { margin: 14px 0 6px; padding: 10px; border-radius: var(--r); background: var(--card-bg); border: 1px solid var(--line); }
.worldmap { display: block; width: 100%; height: auto; }
.worldmap .sea { fill: rgba(var(--accent-rgb), .05); stroke: rgba(var(--accent-rgb), .12); }
.worldmap .c { fill: color-mix(in srgb, var(--text-main) 10%, var(--bg-color)); stroke: var(--bg-color); stroke-width: .5; }
.worldmap .c.on { cursor: pointer; transition: fill .2s; }
.worldmap .c.l1 { fill: rgba(var(--accent-rgb), .35); } .worldmap .c.l2 { fill: rgba(var(--accent-rgb), .55); } .worldmap .c.l3 { fill: rgba(var(--accent-rgb), .75); } .worldmap .c.l4 { fill: var(--accent); }
.worldmap .c.on:hover, .worldmap .c.sel, .worldmap .c.on:focus { fill: #c0396b; outline: none; }
.worldmap .dot { fill: #fff; stroke: var(--accent); stroke-width: 1.5; cursor: pointer; }
.worldmap .dot.sel { fill: #c0396b; stroke: #fff; }
.worldmap.focus .c.on:not(.me) { fill: rgba(var(--accent-rgb), .18); }
.worldmap.focus .dot:not(.me) { display: none; }
.worldmap .c.me { fill: #c0396b; } .worldmap .dot.me { fill: #c0396b; stroke: #fff; }
.map-tap { text-align: center; margin: 8px 0 0; }
.map-panel { margin-top: 10px; padding: 14px; border-radius: var(--r-s); background: var(--bg-color); border: 1px solid var(--line); animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.map-panel h3 { margin: 0 0 10px; } .map-panel h3 small { color: var(--muted); font: 700 .8rem var(--sans); }
.schips { display: flex; flex-wrap: wrap; gap: 6px; }
.schip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--tint); color: var(--text-main); text-decoration: none; font: 700 .82rem var(--sans); }
.schip img { width: 28px; height: 28px; }
.mapbox-mini { padding: 6px; }
.mapbox-mini .worldmap { max-height: 300px; margin: 0 auto; }

/* ---------- Le mot de Camille ---------- */
.camille { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, var(--tint), var(--card-bg)); border: 1px solid var(--line); }
.camille img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.camille-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--btn-text); font-size: 1.2rem; }
.camille p { margin: 0 0 6px; }
.camille .eyebrow { margin-bottom: 4px; }
.camille-sig { font: italic 700 .95rem var(--serif, Georgia), serif; color: var(--accent); }
