/* Muffino — page Tarifs. Grammaire « Studio » de l'application (web/DESIGN.md) : un gris très sombre, des bordures d'1 px,
   une seule couleur d'action (vert-jaune), rose réservé à la promo, badge olive pour la mise en avant. */

.price-head { padding-block: clamp(22px, 3vw, 36px) clamp(26px, 3.4vw, 44px); }
.price-head h1 { font-size: clamp(38px, 4.6vw, 68px); margin: 12px 0 14px; }
.price-head h1 .dim { display: inline; }
.price-head .lede { font-size: 16px; }

.pricing {
  --p-bg: #101113; --p-panel: #131416; --p-card: #17181a; --p-well: #1f2022; --p-chip: #2a2b2d; --p-seg-on: #4b4c4e;
  --p-line: #232427; --p-line-2: #2b2c2e; --p-ink: #f5f5f6; --p-muted: #898a8b; --p-faint: #6e6f72;
  --p-hot: #d93572; --p-accent: #dafd55; --p-accent-soft: rgba(218, 253, 85, .12); --p-accent-line: rgba(218, 253, 85, .45); --p-new: #3b4323;
  background: radial-gradient(ellipse 60% 420px at 50% 0, rgba(255, 244, 224, .07), transparent 70%), var(--p-bg); color: var(--p-ink);
  padding-block: clamp(22px, 3vw, 36px) clamp(44px, 5vw, 72px);
  font-size: 14px;
}

/* Barre : onglets + facturation */
.price-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(20px, 2.6vw, 30px); }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--p-panel); box-shadow: inset 0 0 0 1px var(--p-line-2); }
.seg button { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--p-muted); font: 600 14px/1 var(--font-body); cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.seg button:hover { color: var(--p-ink); }
.seg button[aria-selected="true"] { color: #fff; background: var(--p-seg-on); }
.seg button:focus-visible, .switch:focus-visible, .tier-labels button:focus-visible { outline: 2px solid #a3c7fa; outline-offset: 2px; }
.bill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 18px; font-size: 14px; border-radius: 999px; background: var(--p-panel); box-shadow: inset 0 0 0 1px var(--p-line-2); color: var(--p-muted); font-weight: 500; }
.bill span.on { color: var(--p-ink); }
.switch { position: relative; width: 46px; height: 26px; border: 0; border-radius: 999px; background: var(--p-seg-on); cursor: pointer; transition: background-color .25s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] { background: var(--p-accent); }
.switch[aria-checked="true"]::after { background: #131517; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Étiquettes */
.tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag-off { background: var(--p-hot); color: #fff; }
.tag-best { background: var(--p-new); color: var(--p-accent); }
.bill .tag-off { margin-right: 4px; }

/* Grille des offres */
.plans { display: grid; gap: 16px; align-items: start; margin-inline: auto; }
.plans.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.plans.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }

.plan { position: relative; border-radius: 18px; background: var(--p-card); box-shadow: inset 0 0 0 1px var(--p-line); }
.plan.is-best { background: radial-gradient(ellipse 80% 220px at 50% 0, rgba(255, 244, 224, .07), transparent 75%), var(--p-card); box-shadow: inset 0 0 0 1.5px var(--p-accent-line), 0 30px 60px -40px rgba(218, 253, 85, .25); }
.plan-in { padding: 20px 18px 22px; display: grid; gap: 12px; }
.plan.is-custom { background: var(--p-panel); box-shadow: inset 0 0 0 1px var(--p-line-2); }
.plan-ribbon { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--p-line-2); color: var(--p-ink); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.plan-ribbon svg { width: 18px; height: auto; --m-body: #fff; --m-eyes: var(--p-panel); }

.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.plan-head h3 { margin: 0 4px 0 0; font: 800 30px/.9 var(--font-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; }
.plan-for { margin: -6px 0 0; color: var(--p-muted); font-size: 13.5px; }

.plan-credits { padding: 14px 14px 12px; border-radius: 14px; background: var(--p-well); box-shadow: inset 0 0 0 1px var(--p-line-2); }
.plan-credits .cr { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 16.5px; font-weight: 600; }
.plan-credits .cr i { font-style: normal; color: var(--p-accent); font-size: 13px; }
.plan-credits .cr b { font-weight: 700; font-variant-numeric: tabular-nums; }
.eq { list-style: none; margin: 6px 0 0; padding: 0 0 0 21px; display: grid; gap: 2px; color: var(--p-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fixed-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--p-line-2); color: var(--p-muted); font-size: 13px; }
.fixed-note svg, .plan-feats svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Curseur de crédits */
.tiers { margin-top: 10px; }
.tiers input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: none; cursor: pointer; }
.tiers input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--p-accent) var(--fill, 0%), var(--p-chip) var(--fill, 0%)); }
.tiers input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--p-chip); }
.tiers input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--p-accent); }
.tiers input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M11 9l-4 4 4 4M15 9l4 4-4 4' fill='none' stroke='%2315160f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.tiers input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.tiers input[type="range"]:focus-visible { outline: 2px solid #a3c7fa; outline-offset: 4px; border-radius: 8px; }
.tier-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.tier-labels button { border: 0; background: none; padding: 4px 2px; color: var(--p-faint); font: 600 12.5px/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.tier-labels button::before { content: "✦"; font-size: 11px; }
.tier-labels button.on { color: var(--p-ink); }
.tier-labels button.on::before { color: var(--p-accent); }

/* Prix */
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.plan-price s { font: 800 24px/1 var(--font-display); font-stretch: 85%; color: var(--p-faint); text-decoration-thickness: 2px; }
.plan-price strong { font: 800 44px/.95 var(--font-display); font-stretch: 75%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #f2f2f2 0%, #bdbdbd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price strong.talk { font-size: 40px; }
.plan-price span { color: var(--p-muted); font-size: 13px; }

/* Bouton + économie */
.plan-cta { width: 100%; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); position: relative; z-index: 1; }
.plan-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.plan-cta { background: var(--p-chip); color: #fff; box-shadow: inset 0 0 0 1px var(--p-line-2); }
.plan-cta:hover { background: #37383b; }
.is-best .plan-cta { background: linear-gradient(160deg, #e2ff57 0%, #f3ff5f 45%, #ffff74 100%); color: #131517; box-shadow: inset 0 -4px 0 #8a9c3c; }
.is-best .plan-cta:hover { background: linear-gradient(160deg, #e2ff57 0%, #f3ff5f 45%, #ffff74 100%); filter: brightness(1.04); }
.plan-save { margin: -22px 0 0; padding: 24px 10px 9px; border-radius: 0 0 14px 14px; background: var(--p-well); text-align: center; color: var(--p-muted); font-size: 12.5px; }
.plan-save b { color: var(--p-ink); }

/* Encadré « inclus sans crédit » */
.plan-box { border-radius: 14px; background: var(--p-well); box-shadow: inset 0 0 0 1px var(--p-line-2); padding: 12px 12px 4px; }
.box-t { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; font: 800 14.5px/1 var(--font-display); font-stretch: 85%; text-transform: uppercase; }
.box-t svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.plan-box ul { list-style: none; margin: 0; padding: 0; }
.plan-box li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--p-line-2); font-size: 13px; }
.plan-box li:first-child { border-top: 0; }
.plan-box em { flex: none; font: 500 10px/1 var(--font-mono); letter-spacing: .04em; font-style: normal; padding: 5px 8px; border-radius: 999px; background: var(--p-accent-soft); color: var(--p-accent); }

/* Liste des fonctionnalités */
.plan-feats { list-style: none; margin: 2px 0 0; padding: 0 4px; display: grid; gap: 7px; font-size: 13.5px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats li svg { margin-top: 2px; width: 14px; height: 14px; }
.plan-feats li.no { color: var(--p-faint); }

.price-note { margin: 20px 0 0; text-align: center; color: var(--p-faint); font-size: 12.5px; }

/* Coût des créations */
.costs { padding-block: clamp(48px, 6vw, 80px) 0; }
.costs-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.costs h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 12px 0 14px; }
.costs h2 .dim { color: #a2a592; display: block; }
.costs .prose { font-size: 15px; }
.costs .prose table { font-size: 14px; }
.costs .prose th, .costs .prose td { padding: 9px 12px; }
.costs tr.free td:last-child { font-weight: 700; }
.costs tr.free td:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd08a; margin-right: 8px; }
.price-faq { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.price-faq h2 { font-size: clamp(32px, 3.6vw, 52px); }
.price-faq .qa summary { font-size: 16.5px; padding-block: 16px; }
.price-faq .qa p { font-size: 15px; }

@media (max-width: 1080px) {
  .plans.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .plans.n2, .plans.n3 { grid-template-columns: 1fr; }
  .costs-in { grid-template-columns: 1fr; }
  .price-bar { flex-direction: column; align-items: stretch; }
  .seg button { flex: 1; padding: 0 12px; }
  .bill { justify-content: center; }
  .plan-price strong { font-size: 40px; }
}
