/* ==========================================================
   Kétogenic — Abonnement (violet), Ebook (rose), accueil, décor
   ========================================================== */
:root { --shop: #7f77dd; --shop-soft: #eeedfe; --shop-ink: #3c3489; --book: #d4537e; --book-soft: #fbeaf0; --book-ink: #72243e; }
.zone-shop, body[data-zone="shop"] { --z: var(--shop); --zs: var(--shop-soft); --zi: var(--shop-ink); }
.zone-book, body[data-zone="book"] { --z: var(--book); --zs: var(--book-soft); --zi: var(--book-ink); }
.spot-shop { --z: var(--shop); --zs: var(--shop-soft); }
.spot-book { --z: var(--book); --zs: var(--book-soft); }
.side-nav button[data-z="shop"] { --c: var(--shop); }
.side-nav button[data-z="book"] { --c: var(--book); }
.nav-sep { display: block; height: 1px; background: var(--line); margin: 10px 12px; }

/* ---------- Pages Abonnement / Ebook ---------- */
.shop { display: grid; gap: 30px; }
.sh-h { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.sh-hero { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; padding: 30px; border-radius: 28px; background: var(--zs); color: var(--zi); overflow: hidden; }
.sh-hero h2 { margin: 12px 0 10px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; color: var(--zi); }
.sh-hero p { margin: 0; font-size: 17px; max-width: 46ch; }
.sh-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: #fff; color: var(--zi); }
.sh-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.sh-cta span { font-size: 14px; opacity: .8; }
.shop .btn-primary { background: var(--zi); border-color: var(--zi); }
.sh-mine { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 16px !important; }
.sh-hero-art { position: relative; height: 180px; }
.sh-orb { position: absolute; inset: 0; margin: auto; width: 130px; height: 130px; border-radius: 40px; display: grid; place-items: center; background: var(--z); transform: rotate(-6deg); animation: bob 5s ease-in-out infinite; }
.sh-hero-art i { position: absolute; border-radius: 50%; background: var(--z); opacity: .25; animation: bob 6s ease-in-out infinite; }
.sh-hero-art i:nth-of-type(1) { width: 30px; height: 30px; top: 6px; right: 20%; animation-delay: -2s; }
.sh-hero-art i:nth-of-type(2) { width: 16px; height: 16px; bottom: 12px; left: 18%; animation-delay: -4s; }
.sh-hero-art i:nth-of-type(3) { width: 60px; height: 60px; bottom: -10px; right: 0; opacity: .12; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
.sh-sims { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sh-sim { display: grid; gap: 6px; padding: 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); animation: tileIn 500ms var(--e-out) both; animation-delay: calc(var(--i) * 70ms); }
.sh-sim .spot { width: 52px; height: 52px; border-radius: 16px; background: var(--track); color: #fff; margin-bottom: 4px; }
.sh-sim .spot i { background: #fff; opacity: .25; }
.sh-sim b { font-size: 16px; }
.sh-sim small { color: var(--text-2); font-size: 13.5px; }
.sh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-steps div { padding: 20px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); }
.sh-steps .ic-svg { color: var(--z); }
.sh-steps b { display: block; margin: 10px 0 4px; font-size: 16px; }
.sh-steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.sh-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sh-plan { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); }
.sh-plan.best { border: 2px solid var(--z); }
.sh-plan.mine { box-shadow: 0 0 0 4px var(--zs); }
.sh-badge { position: absolute; top: -12px; left: 20px; background: var(--z); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; }
.sh-name { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.sh-price b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; color: var(--zi); }
.sh-price small { color: var(--text-2); font-size: 13px; }
.sh-plan ul { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.sh-plan li { position: relative; padding-left: 26px; font-size: 15px; }
.sh-plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--zs) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f77dd' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.sh-plan .btn { justify-self: start; }
.sh-faq details { border-bottom: 1px solid var(--line); }
.sh-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; color: var(--z); font-size: 22px; line-height: 1; }
.sh-faq details[open] summary::after { content: "–"; }
.sh-faq p { margin: 0 0 16px; color: var(--text-2); }

/* Ebook */
.eb-hero { grid-template-columns: auto 1fr; gap: 34px; }
.eb-cover { position: relative; width: 170px; aspect-ratio: 3 / 4; border-radius: 6px 16px 16px 6px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; background: var(--book); box-shadow: 14px 16px 0 -4px rgba(114,36,62,.18); transform: rotate(-4deg); animation: book 6s ease-in-out infinite; }
@keyframes book { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }
.eb-cover b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.05; }
.eb-cover small { opacity: .85; }
.eb-cover .ic-svg { position: absolute; top: 18px; right: 16px; }
.eb-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0,0,0,.14); border-radius: 6px 0 0 6px; }
.eb-toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eb-toc li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); animation: tileIn 500ms var(--e-out) both; animation-delay: calc(var(--i) * 60ms); }
.eb-toc span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--zs); color: var(--zi); font-weight: 700; }
.eb-toc b { display: block; font-size: 15.5px; }
.eb-toc small { color: var(--text-2); font-size: 13.5px; }
.eb-deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eb-deal { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); }
.eb-deal.hl { border: 2px solid var(--shop); background: var(--shop-soft); }
.eb-deal.hl .btn-primary { background: var(--shop-ink); border-color: var(--shop-ink); }
.eb-p { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.eb-deal small { color: var(--text-2); font-size: 13px; }
.eb-free { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px !important; }
.eb-free > span { color: var(--day); }
.eb-free p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }

/* ---------- Accueil : parcours et ventes ---------- */
.home-journey { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--more-soft); }
.hj-head { display: flex; align-items: center; gap: 14px; }
.hj-head h3 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.hj-spot { width: 52px; height: 52px; border-radius: 16px; background: var(--more); color: #fff; }
.hj-spot .ic-svg { width: 26px; height: 26px; }
.home-journey .j-strip { background: #fff; border: 0; border-radius: 16px; }
.home-journey .dm.card, .home-journey .next-step { border: 0 !important; border-radius: 18px !important; background: #fff; }
.upsells { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.up-card { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer; padding: 16px; border-radius: 22px; border: 0; transition: transform 200ms var(--e-out); animation: tileIn 500ms var(--e-out) both 260ms; }
.up-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .up-card:hover { transform: translateY(-3px); } }
.up-card span:not(.spot) { flex: 1; }
.up-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.up-card small { font-size: 13.5px; opacity: .85; }
.up-card em { font-style: normal; font-weight: 700; font-size: 18px; white-space: nowrap; }
.up-card em small { font-size: 12px; }
.up-card .spot { width: 56px; height: 56px; border-radius: 18px; color: #fff; }
.up-card .spot i { background: #fff; opacity: .25; }
.up-abo { background: var(--shop-soft); color: var(--shop-ink); } .up-abo .spot { background: var(--shop); }
.up-book { background: var(--book-soft); color: var(--book-ink); } .up-book .spot { background: var(--book); }

/* ---------- Décor : illustrations flottantes ---------- */
.deco { position: absolute; display: block; width: 56px; height: 56px; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(28,33,24,.14)); animation: float 6s ease-in-out infinite; }
.deco svg { width: 100%; height: 100%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, -8deg) + 8deg)); } }
.day-head { position: relative; }
.day-deco { position: absolute; top: 0; right: 0; width: 160px; height: 110px; }
.day-deco .h1 { top: 6px; right: 70px; width: 58px; height: 58px; --r: -12deg; }
.day-deco .h2 { top: 40px; right: 10px; width: 46px; height: 46px; --r: 10deg; animation-delay: -2s; }
.day-deco .h3 { top: 70px; right: 100px; width: 34px; height: 34px; --r: 0deg; animation-delay: -4s; }
.dhero { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; padding: 6px 0 4px; }
.dhero-txt h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; color: var(--zi); }
.dhero-txt p { margin: 0; color: var(--text-2); font-size: 16.5px; max-width: 42ch; }
.dhero-art { position: relative; padding: 14px; }
.dhero-photo { aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: var(--zs); box-shadow: 0 0 0 8px var(--zs); }
.dhero-photo img { width: 100%; height: 100%; object-fit: cover; animation: zoomIn 1.4s var(--e-out) both; }
@keyframes zoomIn { from { transform: scale(1.08); } }
.dhero-art .d1 { top: -6px; left: -6px; width: 70px; height: 70px; --r: -14deg; }
.dhero-art .d2 { bottom: -8px; right: 20px; width: 60px; height: 60px; --r: 10deg; animation-delay: -2s; }
.dhero-art .d3 { top: 18px; right: -8px; width: 44px; height: 44px; --r: 0deg; animation-delay: -4s; }
.dstrip { position: relative; height: 150px; border-radius: 22px; overflow: visible; margin: 0 0 18px; }
.dstrip img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 0 0 6px var(--zs, #fff); }
.dstrip .s1 { top: -16px; right: 40px; width: 62px; height: 62px; --r: -10deg; }
.dstrip .s2 { bottom: -14px; right: 120px; width: 46px; height: 46px; --r: 12deg; animation-delay: -3s; }

@media (max-width: 760px) {
  .sh-hero, .eb-hero { grid-template-columns: 1fr; padding: 22px; }
  .sh-hero-art { display: none; }
  .eb-cover { width: 130px; }
  .sh-steps, .sh-plans, .eb-toc, .eb-deals, .dhero { grid-template-columns: 1fr; }
  .eb-free { grid-template-columns: auto 1fr; } .eb-free .btn { grid-column: 1 / -1; justify-self: start; }
  .day-deco { width: 110px; height: 90px; top: -6px; }
  .day-deco .h1 { right: 40px; width: 46px; height: 46px; }
  .day-deco .h2 { right: 0; width: 36px; height: 36px; }
  .day-deco .h3 { display: none; }
  .dstrip { height: 110px; }
  .up-card em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .deco, .sh-orb, .sh-hero-art i, .eb-cover, .dhero-photo img { animation: none !important; } }
@media (max-width: 900px) { .nav-sep { display: none; } .side-nav button { font-size: 10.5px !important; padding: 8px 2px !important; } .day-deco { top: 46px; } }
@media (max-width: 560px) { .day-deco { display: none; } }
@media (max-width: 560px) { .dhero-txt p { display: none; } .dhero-txt h2 { font-size: 26px; } .dhero { gap: 10px; } }

/* ---------- Ma journée : 2 colonnes, illustrations autour du score ---------- */
.dayc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 28px; align-items: center; padding: 26px 28px; }
.dayc-l { display: grid; gap: 18px; justify-items: start; }
.dayc-r { display: grid; gap: 14px; }
.dayc-ringwrap { position: relative; flex: none; padding: 10px; }
.dayc-ringwrap .deco { z-index: 1; }
.dayc-ringwrap .r1 { top: -8px; left: -14px; width: 40px; height: 40px; --r: -14deg; }
.dayc-ringwrap .r2 { bottom: -6px; right: -16px; width: 38px; height: 38px; --r: 12deg; animation-delay: -2s; }
.dayc-ringwrap .r3 { top: -4px; right: -10px; width: 26px; height: 26px; --r: 0deg; animation-delay: -4s; }
.dayc-mini .mini { padding: 14px 6px; }
.dayc .btn-light { box-shadow: 0 6px 14px -10px rgba(39,80,10,.6); }
@media (max-width: 900px) { .dayc { grid-template-columns: 1fr; } .dayc-l { justify-items: stretch; } .dayc .btn-light { justify-self: start; } }

/* ---------- Bloc « Mon parcours » ---------- */
.home-journey { gap: 10px; }
.home-journey .dm.card, .home-journey .next-step { display: flex !important; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px !important; }
.home-journey .dm > div:not(.dm-day) { flex: 1 1 260px; min-width: 0; }
.home-journey .dm .btn { flex: none; width: auto !important; padding: 12px 22px; }
.home-journey .dm h3 { font-size: 20px; margin: 2px 0 2px; }
.home-journey .ns-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--more-soft); color: var(--more); }
.home-journey .dm-day { flex: none; width: 56px; height: 56px; display: grid; place-content: center; border-radius: 16px; background: var(--more-soft) !important; }
.home-journey .dm-day b, .home-journey .dm-day span { color: var(--more) !important; }
.home-journey .dm-day b { font-size: 24px; }
.home-journey .j-strip { padding: 12px 18px; }
.home-journey .j-strip .js-steps i.done, .home-journey .j-strip .js-steps i.on { background: var(--more); }
.home-journey .j-strip em { color: var(--more); }
@media (max-width: 560px) { .home-journey .dm .btn { width: 100% !important; } }
